Gentoo Archives: gentoo-user

From: Philip Webb <purslow@×××××××××.ca>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] booting into single mode
Date: Wed, 31 Aug 2005 14:37:57
Message-Id: 20050831141758.GA7871@sympatico.ca
In Reply to: Re: [gentoo-user] booting into single mode by "Mariusz Pękala"
1 050831 Mariusz P?kala wrote:
2 > On 2005-08-31 09:25:48 -0400 (Wed, Aug), Philip Webb wrote:
3 >> Is it still possible to boot into 'single' mode,
4 >> ie directly into a no-login root system (for emergencies) ?
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 >> Does anyone have single mode set up satisfactorily ?
16 > Not tested but found in 'man init', section 'BOOTFLAGS':
17 > -b, emergency
18 > Boot directly into a single user shell without running any
19 > other startup scripts.
20 > so try with append="emergency"
21
22 Yes, that does make progress: the start-up process suspends,
23 while you have a chance to enter the root password "for maintenance";
24 after that, you have to exit with 'exit', when the process resumes
25 (or you can enter ^d & it skips maintenance mode).
26 "maintenance mode" seems to be equivalent to booting as root, but ...
27
28 > The difference lies in that 'single' tells the init process to read and
29 > execute entries in /etc/inittab, while 'emergency' tells to not do it.
30
31 ... presumably it stops just before looking at inittab .
32
33 > You may also try with append="init=/bin/bash"
34 > or that nice rescue-shell which name just slipped out of my memory.
35
36 Do you mean Busybox ?
37
38 > /bin/sash maybe.
39
40 That got superseded IIRC.
41
42 Thanx for the advice. Does anyone else have further light to throw ?
43
44 --
45 ========================,,============================================
46 SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca
47 ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
48 TRANSIT `-O----------O---' University of Toronto
49 --
50 gentoo-user@g.o mailing list