* [gentoo-user] whither booting into single user mode
@ 2005-07-19 18:28 Allan Gottlieb
2005-07-20 7:52 ` Mariusz Pękala
0 siblings, 1 reply; 3+ messages in thread
From: Allan Gottlieb @ 2005-07-19 18:28 UTC (permalink / raw
To: gentoo-user
Previously I could boot into single user mode with the following line
in grub
kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
After a recent emerge sync and update of world, the above is just a
normal multiuser boot.
I can use
kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 softlevel=single
but this is not the same as booting into single user mode. For
example, there are virtual terminals, and hitting ^D does not then put
you into multiuser mode.
I like single user mode for doing (incremental) backups each day
before logging in. I realize I can write "init.d scripts" and will
probably do so, but having an interactive shell "on the way up to"
full multiuser mode seems useful.
Does anyone know the current method of achieving what
kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
use to do a few weeks ago?
Thanks,
allan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] whither booting into single user mode
2005-07-19 18:28 [gentoo-user] whither booting into single user mode Allan Gottlieb
@ 2005-07-20 7:52 ` Mariusz Pękala
2005-07-21 12:29 ` Allan Gottlieb
0 siblings, 1 reply; 3+ messages in thread
From: Mariusz Pękala @ 2005-07-20 7:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]
On 2005-07-19 14:28:20 -0400 (Tue, Jul), Allan Gottlieb wrote:
> Previously I could boot into single user mode with the following line
> in grub
>
> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
>
> After a recent emerge sync and update of world, the above is just a
> normal multiuser boot.
>
> I can use
>
> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 softlevel=single
>
> but this is not the same as booting into single user mode. For
> example, there are virtual terminals, and hitting ^D does not then put
> you into multiuser mode.
>
> I like single user mode for doing (incremental) backups each day
> before logging in. I realize I can write "init.d scripts" and will
> probably do so, but having an interactive shell "on the way up to"
> full multiuser mode seems useful.
>
> Does anyone know the current method of achieving what
>
> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
>
> use to do a few weeks ago?
>
I am not sure and I cannot test it right now, but for last few years if
I was in need of single user mode a kernel parmaeter 's' was doing its job.
So, check whether:
kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 s
works.
It should be the same as 'single' but maybe there is some magic in it ;-)
'man init' has some info about runlevel 'emergency' or '-b' which promises
to enter single user mode without running any scripts from /etc/inittab.
kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 emergency
I believe that's what you're looking for.
HTH
--
No virus found in this outgoing message.
Checked by 'grep -i virus $MESSAGE'
Trust me.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] whither booting into single user mode
2005-07-20 7:52 ` Mariusz Pękala
@ 2005-07-21 12:29 ` Allan Gottlieb
0 siblings, 0 replies; 3+ messages in thread
From: Allan Gottlieb @ 2005-07-21 12:29 UTC (permalink / raw
To: gentoo-user
At Wed, 20 Jul 2005 09:52:24 +0200 Mariusz Pękala <skoot@qi.pl> wrote:
> On 2005-07-19 14:28:20 -0400 (Tue, Jul), Allan Gottlieb wrote:
>> Previously I could boot into single user mode with the following line
>> in grub
>>
>> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
>>
>> After a recent emerge sync and update of world, the above is just a
>> normal multiuser boot.
>>
>> I can use
>>
>> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 softlevel=single
>>
>> but this is not the same as booting into single user mode. For
>> example, there are virtual terminals, and hitting ^D does not then put
>> you into multiuser mode.
>>
>> I like single user mode for doing (incremental) backups each day
>> before logging in. I realize I can write "init.d scripts" and will
>> probably do so, but having an interactive shell "on the way up to"
>> full multiuser mode seems useful.
>>
>> Does anyone know the current method of achieving what
>>
>> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 single
>>
>> use to do a few weeks ago?
>>
>
> I am not sure and I cannot test it right now, but for last few years if
> I was in need of single user mode a kernel parmaeter 's' was doing its job.
>
> So, check whether:
> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 s
> works.
> It should be the same as 'single' but maybe there is some magic in it ;-)
No magic found.
> 'man init' has some info about runlevel 'emergency' or '-b' which promises
> to enter single user mode without running any scripts from /etc/inittab.
>
> kernel /boot/kernel-2.6.8-gentoo-r3 root=/dev/hdc7 emergency
>
> I believe that's what you're looking for.
This does work, thanks. It is not the same as the old single (or s)
as you mention (no scripts run).
Thanks for the pointer and tip.
allan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-21 12:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19 18:28 [gentoo-user] whither booting into single user mode Allan Gottlieb
2005-07-20 7:52 ` Mariusz Pękala
2005-07-21 12:29 ` Allan Gottlieb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox