1 |
On 2005-08-31 09:25:48 -0400 (Wed, Aug), Philip Webb wrote: |
2 |
> Is it still possible to boot into 'single' mode, |
3 |
> ie directly into a no-login root system (for emergencies) ? |
4 |
> |
5 |
> The kernel dox suggest this should work in Lilo |
6 |
> |
7 |
> image = /boot/kernel-2.6.9-gentoo-r1 |
8 |
> label = Single |
9 |
> root = /dev/hda3 |
10 |
> append="S" |
11 |
> read-only |
12 |
> |
13 |
> but it boots to a login prompt as usual. |
14 |
> Replacing 'S' with 'single' doesn't work either. |
15 |
> |
16 |
> Does anyone have single mode set up satisfactorily ? |
17 |
|
18 |
Not tested but found in 'man init', section 'BOOTFLAGS': |
19 |
|
20 |
-b, emergency |
21 |
Boot directly into a single user shell without running any |
22 |
other startup scripts. |
23 |
|
24 |
..so, try with append="emergency" |
25 |
|
26 |
The difference lies in that 'single' tells the init process to read and |
27 |
execute entries in /etc/inittab, while 'emergency' tells to not do it. |
28 |
|
29 |
You may also try with append="init=/bin/bash" or that nice rescue-shell |
30 |
which name just slipped out of my memory.. /bin/sash maybe. |
31 |
|
32 |
-- |
33 |
No virus found in this outgoing message. |
34 |
Checked by 'grep -i virus $MESSAGE' |
35 |
Trust me. |