Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: miquels@cistron.nl (Miquel van Smoorenburg)
Subject: Re: Single-user mode from MILO
Date: 1998/02/09	[thread overview]
Message-ID: <6bnhad$33o$1@defiant.cistron.nl> (raw)
In-Reply-To: 1998Feb9.161617.27520@leeds.ac.uk


In article <1998Feb9.161617.27520@leeds.ac.uk>,
John Armstrong <john@leva.leeds.ac.uk> wrote:
>This may be another of those FAQs that I invariably ask if I post to a 
>newsgroup ...
>
>Is there a way at the MILO prompt to restart my Linux/Alpha machine in
>single-user mode? I haven't found anything in any of the MILO documentation
>that I have access to.
>
>Somehow my root password has 'become corrupted' so I have no privileged account
>on this machine.  I cannot do a controlled shutdown from any of my
>non-privileged accounts, nor can I edit the password file.  I hoped to do a
>single-user startup so I can remedy the situation - I imagined that there might
>be a suitable MILO boot-string to pass to the kernel for this.  Is there?
>
>I don't want to shutdown and 'try it out' at the moment, because this machine
>acts as a mail server for some of our incoming email, and is set to restart
>without the network interfaces activated ... no root, no networks, no mail!

Something like:

MILO> boot sda1:/vmlinux.gz root=/dev/sda1 single

should give you a sulogin prompt, but you still need to enter the root
password. Sulogin does do a good job in finding out it the root password,
or the password file, has been corrupted and skips the password: prompt
if so (at least it accepts everything as a password then).

Another option is:

MILO> boot sda1:/vmlinux.gz root=/dev/sda1 init=/bin/sh

Which starts up a shell instead of init. You'll have to remount root rw
(mount -n -oremount,rw) at that point and then you can edit the password
file. Remount the root file system ro after that and reboot.

Mike.

-- 
 Miquel van Smoorenburg |  The dyslexic, agnostic, insomniac lay in his bed
    miquels@cistron.nl  |  awake all night wondering if there is a doG



  parent reply	other threads:[~1998-02-09  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-09  5:00 Single-user mode from MILO John Armstrong
1998-02-09  5:00 ` Florian Burg
1998-02-09  5:00   ` Miquel van Smoorenburg
1998-02-09  5:00 ` Miquel van Smoorenburg [this message]
1998-02-11  5:00 ` Mika Kortelainen
1998-02-12  5:00   ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-02-11  5:00 ` John Armstrong
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox