public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mariusz Pękala" <skoot@qi.pl>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] whither booting into single user mode
Date: Wed, 20 Jul 2005 09:52:24 +0200	[thread overview]
Message-ID: <20050720075224.GA19203@lisa.tutaj> (raw)
In-Reply-To: <yu9ek9usla3.fsf@nyu.edu>

[-- 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 --]

  reply	other threads:[~2005-07-20  8:02 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 [this message]
2005-07-21 12:29   ` Allan Gottlieb

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=20050720075224.GA19203@lisa.tutaj \
    --to=skoot@qi.pl \
    --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