Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm attempting to configure a server for a debian lenny on software raid0 and a LVM root filesystem via the serial console and the hosting company's recovery console (basically an ubuntu liveCD).

After configuring the raid0, establishing LVM, running debootstrap, installing grub, etc, I reboot, and the server hangs in boot, before reaching init. Based on the kernel log messages, the raid array was brought online, and possibly LVM as well (sorry, don't have the exact log messages right now, but will tomorrow).

There is absolutely no error output from the initramfs scripts themselves - only kernel log messages. How can I get the initramfs to produce some useful debug output so I can at least determine where it dies?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

It appears that the problem was the console was specified twice on the kernel command line:

.... console=ttyS0,57600 console=tty0

Although kernel messages went to both consoles, userspace messages presumably only went to the latter.

share|improve this answer

Kernel messages get copied to all devices specified on the kernel command line (/proc/cmdline). However, for scenarios where input is necessary (e.g., a command shell), output goes only to the last console= device (and that's from where input is taken of course).

As far as the initramfs stuff, debug= can be set on the kernel command line (e.g., done through a boot loader such as GrUB) to show the commands being executed at whatever level: top, premount, init, etc. I've looked at the initramfs version of init, and be careful: the value is minus the "init-" part which you see while booting. I was hoping to see all levels by using just "debug", but alas, it doesn't work like that.

BTW...not that it'd be different, but for me this is Ubuntu 10.04

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.