[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-grub] Re: what replaces "emergency"?
From: |
Jason Thomas |
Subject: |
Re: [Bug-grub] Re: what replaces "emergency"? |
Date: |
Sat, 6 Oct 2001 10:48:45 +1000 |
User-agent: |
Mutt/1.3.22i |
I use this from grub, but I type it in manually when needed.
e.g edit a menu option and append to the end 'init=/bin/sh'
you could also have a menu option with this appended to the end permanently
like:
title Debian GNU/Linux, kernel 2.4.10-ac4
root (hd0,0)
kernel /boot/vmlinuz-2.4.10-ac4 root=/dev/hda1 ro
title Debian GNU/Linux, kernel 2.4.10-ac4, single
root (hd0,0)
kernel /boot/vmlinuz-2.4.10-ac4 root=/dev/hda1 ro single
title Debian GNU/Linux, kernel 2.4.10-ac4, recovery
root (hd0,0)
kernel /boot/vmlinuz-2.4.10-ac4 root=/dev/hda1 ro init=/bin/sh
On Fri, Oct 05, 2001 at 09:26:32PM +0200, Robert Siemer wrote:
> Okay, here is the thread. Please read my
> mail `LILO's "emergency" (?)'. It explains a lot.
>
>
> > LILO boot: linux emergency
>
> > In emergency mode, you are booted into the most minimal
> > environment possible. The root filesystem will be mounted
> > read-only and almost nothing will be set up. The main
> > advantage of this over linux single is that your init
> > files are not loaded. If init is corrupted or not
> > working, you can still mount filesystems to recover data
> > that could be lost during a re-installation."
>
> Not true. If init is corrupted, "emergency" may not help, as this
> depends on a working init. Instead boot with kernel parameter init set
> to a different executable:
>
> init=/bin/sh
>
> LILO: linux init=/bin/sh
> GRUB: kernel .../vmlinuz root=... ...=... init=/bin/sh
>
>
>
> Bye,
> Robert
>
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-grub
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> http://mail.topic.com.au/cgi-bin/mailman/listinfo/bug-grub
--
Jason Thomas Phone: +61 2 6257 7111
System Administrator - UID 0 Fax: +61 2 6257 7311
tSA Consulting Group Pty. Ltd. Mobile: 0418 29 66 81
1 Hall Street Lyneham ACT 2602 http://www.topic.com.au/
pgpYyW6WgKZJP.pgp
Description: PGP signature