Gentoo Archives: gentoo-user

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