Re: System Hangs on Activating Swap
Tim Nelson wrote:
----- Original Message -----
On Fri, 04 Feb 2011 20:40:01 +0100, Tim Nelson scribbled:
Greetings fellow Debian'ers-
I've got a system (Lenny, kernel 2.6.26-2-486)that occasionally
boot fully. The last item noted on the console is 'Activating Swap',
I've enabled bootlogd (/etc/default/bootlogd) and verbose mode
(/etc/default/rcS) but nothing of importance is shown. I've even
reinstalled Debian from scratch and the issue persists. I've tried
different hard drives, no change.
Now, here comes the odd part. If I remove the swap entry from fstab,
system will still hang at times! If there is no swap being made
available to the system, how can it still hang? Do the init scripts
for and use any partition with a swap partition type?
Also, is it possible the problem is soemthing else but it simply
manifests itself as a hang at the 'activating swap' part of the boot
process? I've extracted the Debian initrd and looked through the
there and in /etc/rcS* on the root partition. Nothing is jumping out
me for a possible cause.
How should I proceed to troubleshoot? Any ideas?
I'd first verify that you are indeed running through the scripts of
rcS.d and not rc3.d or the like.
Then, since you're seeing the hang whether or not there is a swap,
likely what FOLLOWS checkroot.sh or mountall.sh. Add console messages
the scripts indicating you're exiting one and starting the next. Once
you find in which script your hang is located, comment the ^&%^% out
it to locate the command. Then follow your nose ;)
I can verify I've been in rcS.d, not rc3.d. Your suggestions are sound, I'll give them a shot. Thank you!
You can also run 'blkid' as root and get the UUID for the swap partition
and then verify that the UUID is correct in 'fstab and then run 'swapon
/dev/sdax', what ever the name of the swap partition is.
Debian Sid - KDE 4.5.3 - EXT4 - 64 Bit at sda14
Registered Linux User #380263