-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSD boot problem #3858
Comments
Hi, many thanks for your report. Looks like your system has issues to boot from SSD as you are running in some time out, resulting in the extrem long boot time you are facing. Some question on this
|
What is
So it's this Ubuntu-originated Docker-like snap container daemon, right? However the cause of your issues is most likely:
The USB ports are not designed to power external 2,5" HDDs. They get undervolted, causing various issues up to data loss. So you either need to use a USB stick only, or attach the SSD via docking station with dedicated power supply. That is true for all SBCs btw, for RPi you find it documented here: https://www.raspberrypi.org/documentation/hardware/raspberrypi/power/README.md I regularly see other hardware parts of SBCs producing failures as well when the USB ports leach too much power, so let's continue investigating the issue with snapd and time sync when you have sorted the USB power. |
I guess this could be something to try as well? #3754 (comment) |
Ah okay, didn't think about the UAS issue, worth to give it a try. About power: If it works stable with the UAS blacklist quirk, we found the issue, but I highly recommend to keep the drive attached with external power supply. There are USB devices where under-voltage is not a drama, but when it's the root file system itself, I'd not risk that 😉. |
I hope you can fix the issue - would appreciate that. Thanks for the info with power supply, you are right. I use my ssd now only with attached power supply. 👌 |
This is nothing that we can fix. The official RPi kernel has UAS enabled by default for USB-attached drives on RPi 4, but not all drives support it, or at least certain firmware versions do not. UAS then needs to be disabled for the particular drives. The link by Joulinar basically explains how: #3754 (comment)
|
I understand now. Thanks. I tested again with a newer ssd on usb 3.0 port and it works perfect. I think you can close the issue. |
ok I'm going to close this. Feel free to reopen if needed. |
Just to make it clear: It is no big deal to fix support for the other SSD, not using UAS has no significant downsides, and it is default on all RPi models prior to RPi 4. UAS has been added to the kernel not for UAS support itself but because the module ships a list of other USB quirks/info required for a certain drive type (have to digging to find the issue on RPi GitHub). On prior RPi models UAS is not used at all (hence no such issues) since they use a different USB driver ( Ah and now I remember the other obvious solution, even simpler and more consequent than adding the USB quirk:
This disables the UAS kernel module and scatter-gather, which is then obsolete. |
Hmm, if it works on one port but not on the other, it's not UAS causing the issue here. It looks like the the drive is not detected at all as it hangs at firmware stage. Does the USB drive have a dedicated power supply or is it a USB stick only? |
Yes, it's work on USB 2 only |
Is anything else detected on that USB port? And could you paste the following when booted from SD card and having the USB stick attached?
|
|
Okay, with this particular chip, issues seem to be known:
You said you ran And since you have a lot of USB drives attached, actually it's better to disable UAS only for this single device:
|
dietpi@raspberrypi:~$ cat /etc/modprobe.d/disable_uas.conf |
Btw, as a general background for related issues: https://www.raspberrypi.org/forums/viewtopic.php?t=245931 Your kernel is up-to-date, isn't it? |
dietpi@raspberrypi:~$ uname -r dietpi@raspberrypi:~$ sudo rpi-eeprom-update -a |
Let me try this https://www.raspberrypi.org/forums/viewtopic.php?t=245931 ;) Thanks again ! |
Okay, that is all fine, so let's see if the USB quirk on cmdline works, see last part of my post above with the entry forget: #3858 (comment) Another idea, did you try to detach all other USB devices to rule out power-related issues? |
When I do dmesg with SSD on USB 3 : [ 168.701250] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? |
Another idea, did you try to detach all other USB devices to rule out power-related issues? Yes I do ;) |
dietpi@raspberrypi:~$ sudo cat /boot/cmdline.txt ;) Btw it's ok, maybe it's my USB 3.0 case ;) |
Jep, so if with this USB quirk and the affected drive attached as only USB device it still does not work, I'm also out of ideas. And indeed those kernel errors look like the issue is on an earlier level than UAS. So switching cable or case/docking station could be tested. |
Ok thanks for ur help ;) |
Creating a bug report/issue
Required Information
Please see attached screenhot for further details
Additional Information (if applicable)
First the software was installed and it was working very well. After a first reboot of the device, the error occurs.
After approxminately 6 minutes, the login screen is there and i can login and start the ultra light weight desktop with the
startx command.
No, the error occurs after a reboot of dietpi 64 bit.
echo $G_HW_UUID
Steps to reproduce
Expected behaviour
Actual behaviour
The text was updated successfully, but these errors were encountered: