[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I messed up bootmisc.sh - now can't log in!



On 8/29/05, dwilliams1066@netscape.net <dwilliams1066@netscape.net> wrote:

> Can anyone recommend a good disk recovery company?
> 
> Thanks in advance,
> 
> Dave Williams

You don't need one for this. Which bootloader are you using, LILO or
GRUB? You can pass init=/bin/sh using it.

For grub, select the boot menu option, press 'e', select the line
beginning with kernel, press 'e', go to the end of the line and add
'init=/bin/sh'. Then press enter, then 'b'.

For LILO, hold shift until you get a lilo prompt. Then type linux init=/bin/sh.

Either way will get you a command prompt. Then:
mount -t proc proc /proc
mount -o remount,rw /
[edit, fix bootmisc.sh]
mount -o remount,ro /
umount /proc
exec /sbin/init



Reply to: