* Single-user mode from MILO
@ 1998-02-09 5:00 John Armstrong
1998-02-09 5:00 ` Florian Burg
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: John Armstrong @ 1998-02-09 5:00 UTC (permalink / raw)
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!
Thanks
John Armstrong
john@lrf.leeds.ac.uk
john@leva.leeds.ac.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Single-user mode from MILO
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
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Florian Burg @ 1998-02-09 5:00 UTC (permalink / raw)
John Armstrong 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!
>
> Thanks
>
> John Armstrong
> john@lrf.leeds.ac.uk
> john@leva.leeds.ac.uk
After the normal boot string type init 1
--
________________________________________________________________________
Florian Burg
Universitaet Augsburg Mathematik
E-Mail: fburg@malaga.uni-augsburg.de
URL http://malaga.math.uni-augsburg.de/~fburg
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Single-user mode from MILO
1998-02-09 5:00 ` Florian Burg
@ 1998-02-09 5:00 ` Miquel van Smoorenburg
0 siblings, 0 replies; 7+ messages in thread
From: Miquel van Smoorenburg @ 1998-02-09 5:00 UTC (permalink / raw)
In article <34DF3480.2C67@math.uni-augsburg.de>,
Florian Burg <Florian.Burg@math.uni-augsburg.de> wrote:
>After the normal boot string type init 1
That's not entirely correct but might work. the "init" keyword is probably
ignored, and the "1" keyword tells init to go to runlevel 1 - which is
effectively single user mode. You might still need to enter a password
then, but see my other posting for more details.
Mike.
--
Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed
miquels@cistron.nl | awake all night wondering if there is a doG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Single-user mode from MILO
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-11 5:00 ` Mika Kortelainen
1998-02-11 5:00 ` John Armstrong
3 siblings, 0 replies; 7+ messages in thread
From: Miquel van Smoorenburg @ 1998-02-09 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Single-user mode from MILO
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-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
3 siblings, 1 reply; 7+ messages in thread
From: Mika Kortelainen @ 1998-02-11 5:00 UTC (permalink / raw)
john@leva.leeds.ac.uk (John Armstrong) writes:
>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?
Yup, and it's quite logical if I may say... add 'single' at the end.
I.e. something like "boot sda2:vmlinux.gz root=/dev/sda2 single"
at MILO prompt.
Actually, I don't remember if this asks for the password, but at
least it goes to single user mode.
Another possibility is to boot from RH's install floppy and after
you've chosen the installation media (I chose ftp), change to
console #2 using Alt-F2 (you should have a shell there at this
point) and from there mount your real root partition at /tmp/realroot
or whatever. And then just go and edit /tmp/realroot/etc/passwd.
(I had to do this just a few days ago because I managed to broke
my /etc/fstab and I got kernel panics... and booting to single
user mode failed, too, because it couldn't mount /usr.)
Mika Kortelainen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Single-user mode from MILO
1998-02-09 5:00 Single-user mode from MILO John Armstrong
` (2 preceding siblings ...)
1998-02-11 5:00 ` Mika Kortelainen
@ 1998-02-11 5:00 ` John Armstrong
3 siblings, 0 replies; 7+ messages in thread
From: John Armstrong @ 1998-02-11 5:00 UTC (permalink / raw)
A public thank you to all those people who responded to my plea for help with
booting single-user mode from MILO.
It was as easy and trivial as I had suspected, but it is comforting to have
confirmation *before* messing about with something as critical as a mail
server!
I used the first option suggested, which was the word 'single' appended to the
MILO boot command line - this worked fine.
Thanks once again
John Armstrong
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Single-user mode from MILO
1998-02-11 5:00 ` Mika Kortelainen
@ 1998-02-12 5:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
0 siblings, 0 replies; 7+ messages in thread
From: His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated @ 1998-02-12 5:00 UTC (permalink / raw)
>>>>> "MK" == Mika Kortelainen <k125374@kaarne.cs.tut.fi> writes:
MK> Yup, and it's quite logical if I may say... add 'single' at
MK> the end. I.e. something like "boot sda2:vmlinux.gz
MK> root=/dev/sda2 single" at MILO prompt.
I don't think anyone's mentioned the 'init=' kernel parameter. To
totally bypass init, do something similar to the following (make sure
whatever you execute is statically linked!):
boot sdb4:vmlinux.gz root=/dev/sdb4 init=/bin/ash.static
Once up you'll have to (re)mount the various files systems by hand, of
course, and to shut down you'll need to unmount everything (or remount
'em read-only) and hit the BRS.
HTH.
--
D His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated, D
O Discordian Episkopos of AMbidextrous THinking, ExTemporalaritily Ordained U
O SubGenius Minister, Patron Saint of All Things Plastic fnord, Member of the M
M Cuddle Cabal (TINC), and `Salted Litter' of rhit.gas.stations.bigfoot. B
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-02-12 5:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox