Gentoo Archives: gentoo-user

From: "Mariusz Pękala" <skoot@××.pl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] whither booting into single user mode
Date: Wed, 20 Jul 2005 08:02:50
Message-Id: 20050720075224.GA19203@lisa.tutaj
In Reply to: [gentoo-user] whither booting into single user mode by Allan Gottlieb
1 On 2005-07-19 14:28:20 -0400 (Tue, Jul), Allan Gottlieb wrote:
2 > Previously I could boot into single user mode with the following line
3 > in grub
4 >
5 > kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
6 >
7 > After a recent emerge sync and update of world, the above is just a
8 > normal multiuser boot.
9 >
10 > I can use
11 >
12 > kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 softlevel=single
13 >
14 > but this is not the same as booting into single user mode. For
15 > example, there are virtual terminals, and hitting ^D does not then put
16 > you into multiuser mode.
17 >
18 > I like single user mode for doing (incremental) backups each day
19 > before logging in. I realize I can write "init.d scripts" and will
20 > probably do so, but having an interactive shell "on the way up to"
21 > full multiuser mode seems useful.
22 >
23 > Does anyone know the current method of achieving what
24 >
25 > kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
26 >
27 > use to do a few weeks ago?
28 >
29
30 I am not sure and I cannot test it right now, but for last few years if
31 I was in need of single user mode a kernel parmaeter 's' was doing its job.
32
33 So, check whether:
34 kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 s
35 works.
36 It should be the same as 'single' but maybe there is some magic in it ;-)
37
38 'man init' has some info about runlevel 'emergency' or '-b' which promises
39 to enter single user mode without running any scripts from /etc/inittab.
40
41 kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 emergency
42
43 I believe that's what you're looking for.
44
45 HTH
46
47
48 --
49 No virus found in this outgoing message.
50 Checked by 'grep -i virus $MESSAGE'
51 Trust me.

Replies

Subject Author
Re: [gentoo-user] whither booting into single user mode Allan Gottlieb <gottlieb@×××.edu>