public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Allan Gottlieb <gottlieb@nyu.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] whither booting into single user mode
Date: Thu, 21 Jul 2005 08:29:55 -0400	[thread overview]
Message-ID: <yu9ll40gx4s.fsf@nyu.edu> (raw)
In-Reply-To: <20050720075224.GA19203@lisa.tutaj> (Mariusz Pękala's message of "Wed, 20 Jul 2005 09:52:24 +0200")

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



      reply	other threads:[~2005-07-21 12:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yu9ll40gx4s.fsf@nyu.edu \
    --to=gottlieb@nyu.edu \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox