No longer booting from SSD Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
RollingDutch
Posts: 55
Joined: Thu Mar 18, 2021 9:08 am
Contact:

No longer booting from SSD

Post by RollingDutch »

Maybe you can help me once again.

Couple of weeks ago I asked for help on setting up my Raspberry Pi 3b with an external SSD drive. With some help from here I got it working as webserver. WordPress complained about a missing component (bcmath), so I installed that with sudo install php-bcmath (I think this was the command, but not sure). After that installed I did a reboot and that was the start of problems. The Pi didn't boot anymore. Tried placing the sd-card and boot from there. That did work. Wa happy and hoping it would be a matter of minutes before everything would work again.

The Pi only boots with SD card installed, so I first tried to see if the OTP switch was set, and in dietpi-config I see that USB support was set to 'On'.

Then I did a check to see if the SSD drive could been 'seen' from the Pi it self with lsusb, and that also was the case.

root@WebServ:~# lsusb
Bus 001 Device 004: ID 1058:2642 Western Digital Technologies, Inc. Game Drive
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@WebServ:~#

(btw when using a powered USB-hub it doesn't work)

So, next I tried to once again boot from USB, and waited for about 40 -45 minutes, but to no avail.

Would #3 on this post be able fix this?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: No longer booting from SSD

Post by Joulinar »

Are you able to connect a screen? Otherwise it would be quite hard to find out what the issue is.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: No longer booting from SSD

Post by MichaIng »

(btw when using a powered USB-hub it doesn't work)
But this is the only way it gonna work reliably. Without an external power supply, 2.5" drives (including SSDs) usually draw too much power from the RPi's USB port. Especially during boot, where you have a power usage peak already, the USB drive may then simply remain unconnected/undetected. And you don't want to loose your data due to root drive crashes. So you need to get it working/detected as external drive when its attached via powered USB hub or enclosure with a dedicated power supply first, before it makes sense to debug booting from it.
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: No longer booting from SSD

Post by MichaIng »

@Joulinar
sudo install php-bcmath
This is btw how users install PHP8.0 (now PHP8.1) on Stretch systems with Ondrej's PHP repo, as Wordpress, Nextcloud and others complain about modules they don't really require. sudo install php7.3-bcmath would be fine, but the above as meta package pulls the moving target PHP version. Hence I won't ever again add Ondrej's PHP repo to keep supporting software on old distro versions ;). This means we need to disable or hardcode Nextcloud to v23 for Buster, as v24 won't support PHP7.3 anymore :(.

@RollingDutch
No worries, on Buster and Bullseye and all future Debian versions, you can install the meta package as you did without issues.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: No longer booting from SSD

Post by Joulinar »

@MichaIng
Can't wait for next year to drop Stretch support and to get ride of Ondrey PHP repository.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
RollingDutch
Posts: 55
Joined: Thu Mar 18, 2021 9:08 am
Contact:

Re: No longer booting from SSD

Post by RollingDutch »

I will see what I can do on putting the pi to a monitor. Don't have any HDMI monitors atm. Might put it on a tv but then I still lack keyboard. Going to try and see again tomorrow.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: No longer booting from SSD

Post by Joulinar »

Connecting TV would be fine to see if there are error messages
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
RollingDutch
Posts: 55
Joined: Thu Mar 18, 2021 9:08 am
Contact:

Re: No longer booting from SSD

Post by RollingDutch »

Don't really know what happend, but when I connected the PI to the TV and the cable to my Plex-server (thus pulling the cable from the Plex), everything worked. When I plug the UTP back in the router (ASUS) or the TP-Link the PI isnt vissible anymore. So either I am going crazy of the PI is. Suspect the last. :)

Before you ask, I have the following setup:

modem --- Router (ASUS)
| | | |
Plex Bridge* Domoticz TP-Link (4 connections on the ASUS router
|
|
iMac Printer PI-Hole Dashticz** MotionEye KODI Wordpress (these are 6 machines on a 16 port TP-link router)
Last edited by RollingDutch on Sun Nov 14, 2021 2:36 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: No longer booting from SSD

Post by Joulinar »

hmm this looks like some issues with cable and or port on the router? Did you tried to change cable and maybe use a different port?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
RollingDutch
Posts: 55
Joined: Thu Mar 18, 2021 9:08 am
Contact:

Re: No longer booting from SSD

Post by RollingDutch »

Yes changed cables and ports, not working either. So.. Am I crazy now or what ;)
Post Reply