From: William S. <wst...@po...> - 2000-06-18 02:51:36
|
Good evening, Jeff, On Sat, 17 Jun 2000, William Stearns wrote: > I'm trying to set up Tom's root/boot root filesystem as a uml > root_fs. I'm getting an error during the boot process; it looks like > something in init, but I don't know what. The kernel is 2.3.99-pre9-1um. > > INIT: version 2.60 booting > INIT: Switching to runlevel: 5 > /usr/doc/*.gz: No such file or directory > .: Can't open /usr/doc/rc.custom > Kernel panic: Kernel mode fault at addr 0x0, ip 0xbf7ffcec > Kernel panic: fix_range fixing wrong address space This comes from the end of /etc/rc.M . This is the only modified file, so far, from the original distribution; because Tomsrtbt runs completely off a 1.7M floppy, it has to go through some conniptions to decompress the filesystem. I comment out the uncompress lines. The last three lines: gzip -d /usr/doc/*.gz . /usr/doc/rc.custom #umount /fl OK, so rc.M finishes and control transfers back to init. Here's the entire inittab: id:4:initdefault: si:S:sysinit:/etc/rc.S rc:5:wait:/etc/rc.M ca::ctrlaltdel:/bin/shutdown -t5 -rfn now "CtlAltDel" l0:0:wait:/etc/rc.0 l6:6:wait:/etc/rc.6 c1:5:respawn:/usr/bin/agetty 38400 tty1 c2:5:respawn:/usr/bin/agetty 38400 tty2 c3:5:respawn:/usr/bin/agetty 38400 tty3 c4:5:respawn:/usr/bin/agetty 38400 tty4 Is agetty the problem? AHA! Change the last 4 lines to: c1:5:respawn:/usr/bin/agetty 38400 console #c2:5:respawn:/usr/bin/agetty 38400 tty2 #c3:5:respawn:/usr/bin/agetty 38400 tty3 #c4:5:respawn:/usr/bin/agetty 38400 tty4 and we get: /usr/doc/*.gz: No such file or directory .: Can't open /usr/doc/rc.custom (none) login: root /bin/login: cannot open /etc/passwd: no such file LOGIN FAILED OK, so uml doesn't like tty1-4? Back to LOGIN FAILED; add a password file with an empty root password and: /usr/doc/*.gz: No such file or directory .: Can't open /usr/doc/rc.custom (none) login: root Password: ile rev.2.01 ile: unable to allocate pty/tty pair (none) login: Hmmm. Why? Here are the pty/tty's from the dev directory: [root@sparrow dev]# ls -al [pt]ty* | less crw-rw-rw- 1 root root 2, 0 May 7 1999 ptyp0 crw-rw-rw- 1 root root 2, 1 May 7 1999 ptyp1 crw-rw-rw- 1 root root 2, 2 May 7 1999 ptyp2 crw-rw-rw- 1 root root 2, 3 May 7 1999 ptyp3 crw-rw-rw- 1 root root 2, 4 May 7 1999 ptyp4 crw-rw-rw- 1 root root 2, 5 May 7 1999 ptyp5 crw-rw-rw- 1 root root 2, 6 May 7 1999 ptyp6 crw-rw-rw- 1 root root 2, 7 May 7 1999 ptyp7 crw-rw-rw- 1 root root 5, 0 May 7 1999 tty crw-rw-rw- 1 root root 4, 0 May 8 1999 tty0 crw-rw-rw- 1 root root 4, 1 May 7 1999 tty1 crw-rw-rw- 1 root root 4, 2 May 7 1999 tty2 crw-rw-rw- 1 root root 4, 3 May 7 1999 tty3 crw-rw-rw- 1 root root 4, 4 May 7 1999 tty4 crw-rw-rw- 1 root root 4, 5 May 7 1999 tty5 crw-rw-rw- 1 root root 4, 6 May 7 1999 tty6 crw-rw-rw- 1 root root 4, 7 May 7 1999 tty7 crw-rw-rw- 1 root root 4, 8 May 7 1999 tty8 crw-rw-r-- 1 root root 4, 64 Mar 1 1998 ttyS0 crw-rw-rw- 1 root root 4, 65 Apr 28 1999 ttyS1 crw-r--r-- 1 root root 4, 66 May 7 1999 ttyS2 crw-rw-r-- 1 root root 4, 67 May 7 1999 ttyS3 crw-rw-rw- 1 root root 3, 0 May 7 1999 ttyp0 crw-rw-rw- 1 root root 3, 1 May 7 1999 ttyp1 crw-rw-rw- 1 root root 3, 2 May 7 1999 ttyp2 crw-rw-rw- 1 root root 3, 3 May 7 1999 ttyp3 crw-rw-rw- 1 root root 3, 4 May 7 1999 ttyp4 crw-rw-rw- 1 root root 3, 5 May 7 1999 ttyp5 crw-rw-rw- 1 root root 3, 6 May 7 1999 ttyp6 crw-rw-rw- 1 root root 3, 7 May 7 1999 ttyp7 And now I'm lost. The only changes I've made from the file I mailed you are the passwd file: root::0:0:root:/root:/bin/ash guest::500:500:guest:/tmp:/bin/ash and the 4 line change at the end of inittab I listed above. Cheers, - Bill --------------------------------------------------------------------------- Like the ad says, at 300 dpi you can tell she's wearing a swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you can tell it's painted on. I suppose at 2400 dpi you can tell if the paint is giving her a rash. (So says Joshua R. Poulson) (Courtesy of Bob Taylor <brt...@qt...>) -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, named2hosts, and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com -------------------------------------------------------------------------- |