Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a PC with certainly a hardware problem, the installed Ubuntu doesn't boot, neither does Live CDs. (Although Ubuntu is correctly installed).

(the 'normal' boot freezes after some filesystem checks / networking startup)

However, GRUB2 seems to be ok, but I can't find any way to start a simple root shell, bash for instance. What can I tell GRUB 1.97-b4 to start such a shell ?

(I guess some

linux /boot/...
initrd /boot/...


thanks for your help and point of views

share|improve this question
depending on your distro adding 1 or init 1 to the end of the kernel boot line should drop you to a single user mode root shell – RobotHumans Nov 27 '10 at 11:33
@aking1012 init 1 might/seems to be too much, I see some apparmor, fsck, ... that could not be loaded (although I don't know yet for sure that the init 1 is taken into consideration) – Kevin Nov 27 '10 at 12:07
@aking1012 I don't know how relevant it is regarding your comment, but my ubuntu uses UpStart – Kevin Nov 27 '10 at 12:56
up vote 5 down vote accepted

Try editing your regular boot entry in grub (e shortcut and appending init=/bin/sh to end of the line beginning with linux .... After you will boot it (Ctrl-x), you will get a root shell immediately.

share|improve this answer
exactly what I was looking for, many thanks!! – Kevin Nov 27 '10 at 13:44
@Kevin: Once you have that shell, try /bin/bash to have a nicer interactive shell. You may need to run mount -t proc proc /proc and mount -t sysfs sysfs /sys for various system utilities to work. – Gilles Nov 27 '10 at 13:50

I didn't understand why Ubuntu does't boot. So, if u wanna get a shell, which also means that u MUST have a kernel loaded, u need to find the kernel.

For the right installation of ubuntu, but unable to boot, use

linux /boot/vmlinuz... the kernel installed by Ubuntu installer.
initrd /boot/initrd.img...

If something wrong with the installation, u can boot from ISO file. using:

loopback loop /path/to/ISOfile
linux (loop)/casper/vmlinuz boot=casper [iso-scan/filename=/path/to/ISOfile]
initrd (loop)/casper/initrd

Thats all i know.

share|improve this answer

Your Answer


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.