Kernel sometimes takes four or five resets to boot successfully

Bernd Eggink monoped at sudrala.de
Sun Dec 4 20:52:18 UTC 2011


On 04.12.2011 18:04, Sean Whitton wrote:
> Hello,
>
> Running CRUX dual-booted with Windows 7 on two machines.  On one
> everything is fine.  On the other, when I turn the machine on for the
> first time in a day OR when I’ve just been in Windows and am switching
> back OR a few other random times, it takes me four or five pushes of the
> reset button to get it to boot.
>
> I get part of the startup output and then just after the lines:
> umount: /sys: device is busy.
> (In some cases useful info about processes that use
> the device is found by lsof(8) or fuser(1))
> mount: sysfs already mounted or /sys busy

I've been getting this message for quite a long time (don't remember 
since which kernel vesion), but all my Crux systems boot and run 
perfectly, so that's most probably not the reason for the kernel panic.

Anyway, I just looked into /etc/rc again, and got the impression that 
the eroor is caused by the fact that /sys is already mounted when 
/etc/rc starts. So I made the following changes in /etc/rc:

Comment out this line (ca. 13):
	/bin/mount -n -t sysfs none /sys
and replace this (ca. 55):
	/bin/umount /sys /proc
by
	/bin/umount /proc

And indeed, the error message disappears, while /sys is still correctly 
mounted. Give it a try, but keep in mind that I'm not a kernel 
specialist! No guarantee!

As to the real boot problem: Could it be a problem with your harddisk? 
Does the system boot reliably from CD-ROM?

Bernd

-- 
Bernd Eggink
http://sudrala.de



More information about the CRUX mailing list