bug-grub
[Top][All Lists]
Advanced

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

Re: what replaces "emergency"?


From: Carlo Kok
Subject: Re: what replaces "emergency"?
Date: Mon, 1 Oct 2001 14:10:35 +0200

----- Original Message ----- 
From: "Robert Siemer" <address@hidden>
To: <address@hidden>
Cc: <address@hidden>
Sent: Sunday, September 30, 2001 5:49 AM
Subject: Re: what replaces "emergency"?


> From: Tom <address@hidden>
> 
> > I had to try to repair a friend's machine last night,
> > however, and I could not (even searching the net on
> > another computer) find the equivalent to LILO's
> > "emergency" command (bring the system up in single user
> > mode, with only the root partition mounted, and that
> > mounted read only).
> > 
> > It seems like grub should do that. Can someone tell me
> > how? Thanks.
> 
> I don't know lilo's "emergency" command, but lilo (and grub) is not in
> the position to do want you want. Maybe lilo has some shortcuts to
> instruct the _kernel_ to do so. This is usually done via kernel
> command line arguments (you can see them in /proc/cmdline).

Wasn't that (lilo format, don't know grub very well):

init=/bin/bash

> 
> You can do the same with grub. Provide "single" as an argument to boot
> in single user mode. And give "ro" to the kernel to mount root
> read-only (but that's done often as default).
> 
> So, load the kernel this way:
> 
> kernel /somewhere/mykernel single ro root=/dev/rootpartition
> 
> Note that options to boot in single user mode get interpreted by
> /sbin/init, so in reality bypassing the kernel.
> 
> See man-page "bootparam" or other sources for information about kernel
> parameters...
> 
> 
> Bye,
> Robert
> 
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-grub
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]