:: Re: [DNG] Boot hangs with usb disk …
Startseite
Nachricht löschen
Nachricht beantworten
Autor: g4sra
Datum:  
To: dng
Betreff: Re: [DNG] Boot hangs with usb disk active in fstab
On 12/06/2020 16:01, J. Fahrner via Dng wrote:
> Hi,

Hi, I know *nothing* about Odroid

> I'm running Devuan Beowulf on an Odroid C2 mini computer. Since it's internal flash disk is limited, I run it with an external usb drive attached.
> When this disk is active in /etc/fstab the boot process hangs forever. I can ping it, so networking is started, but I cannot login, because sshd is not running. Since this is a headless system, I cannot see boot messages to find out where it hangs. I cannot attach a monitor because I have no suitable cable.
>
> Any ideas how to debug this problem?

I would inspect services which start after networking but before ssh.
A udev rule can easily hang a boot as the calls often block.
I would then try only starting essential services (reduce the runlevel if possible, only networking & ssh).

>
> This is the fstab entry:
>
> LABEL=Elements /hdd ext4 defaults  0 2

I would replace the LABEL statement with the partition id (/dev/hdd1 ?), parsing label's and uuid's can occasionally trip up.

>
> Booting with this entry commented out works fine, and I can mount the disk as normal after boot. But this way many daemons are missing its data and have to be restarted after mount.

Restarting a service as a root login is not the same as starting a service at boot.
Any one of these services may be hanging the boot but not hang from a root login (commonly root's environment, e.g. $PATH masks an issue).

This advice is worth exactly what you paid for it, good luck.

>
> Jochen
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng