PDA

View Full Version : [ubuntu] Grub Boot init=/bin/sh?



scrop
June 11th, 2012, 11:28 PM
Hey, I want to boot directly into bash to fix a problem with my system. I used to do this all the time by editing the grub command line and adding init=/bin/sh to the kernel parameters.

With the current Ubuntu and GRUB2, I don't see able to do this. I've added init=/bin/sh but I never see output from the kernel.

scrop
June 11th, 2012, 11:31 PM
Also, is there any way to boot in all text? The framebuffer stuff is nice, but it's just obscuring what's actually happening - I'd much rather see what's going on

wilee-nilee
June 11th, 2012, 11:37 PM
.

drs305
June 11th, 2012, 11:37 PM
Do you want to boot into Recovery mode? If so, there should be an option on the Grub menu. If you don't see the menu during boot, hold down the SHIFT key.

If you don't have the recovery option on your menu but that is what you want to boot to, highlight the main entry, then press 'e' to edit it.
Cursor to the end of the "linux" line. Remove "quiet splash" and the vt handoff entry and add "single"

ctrl-x or F10 to boot.

If you want to boot to a non-recovery normal text login, remove the same as above but add "text" then F10. "text" is an Ubuntu kernel option which allows booting to a non-GUI login.