From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,8cfeb192c8426849 X-Google-Attributes: gid111c93,public From: peltz@jaka.ece.uiuc.edu (Steve Peltz) Subject: Re: booting into run levels Date: 1998/05/28 Message-ID: <6kkcf3$acc$1@jaka.ece.uiuc.edu>#1/1 X-Deja-AN: 357388274 References: <356B62E9.5C860AD1@chem.utoronto.ca> Organization: NovaNET Learning, Inc. Newsgroups: comp.os.linux.alpha Arguments you can pass go to the kernel (e.g. init=/bin/sh), or can go to init itself (normally a runlevel, e.g. "single" or "3"). The SysVInit scripts that come with Redhat are a problem (in my opinion) and try to do too much if you go into single-user mode. You can bypass everything by using "emergency" as the run-level. That isn't really much different from simply saying init=/bin/sh, except I think if you exit the shell, init will continue the normal boot process. If you have a Redhat CD, you can just boot off of that, then use Alt-F2 to get a shell. You could also run off of the CD with init=/bin/sh, then chroot to the "live" disk system on the CD: cd /live usr/bin/chroot . /bin/sh That will give you pretty much all the programs. Unfortunately, they left /live/proc off of the RH5.0 CD, so you can't mount /proc in any useful way (you can mount it, of course, but it won't be where programs that use it expect to see it). A read-only file system should have /etc/mtab be a symbolic link to /proc/mounts; you could even have /proc/mounts exist, with an entry for /dev/cdrom mounted at root (so df works before /proc is mounted).