From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,53ebf0b6d732c247 X-Google-Attributes: gid111c93,public From: k125374@kaarne.cs.tut.fi (Mika Kortelainen) Subject: Re: Single-user mode from MILO Date: 1998/02/11 Message-ID: <6bs11o$i2m@peippo.cs.tut.fi>#1/1 X-Deja-AN: 324075063 Distribution: inet References: <1998Feb9.161617.27520@leeds.ac.uk> Organization: Tampere University of Technology (CS) NNTP-Posting-User: k125374 Newsgroups: comp.os.linux.alpha 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