I've got another cannot-boot problem.  My UML is built from 2.6.16-rc4
source, with Jeff's patch set and the defconfig configuration.  My root
filesystem is
http://www.stearns.org/uml-root/root_fs.fc-3-base.pristine.20050605.bz2,
with MAKEDEV std, generic, and the ubd0 etc. devices created per the
website, and inittab and fstab modified to use those /dev entries.

-------------------
[EMAIL PROTECTED] l]$ ./vmlinux mem=48M ubd0=../fc3_root_working
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking if syscall restart handling in host can be skipped...OK
Checking for the skas3 patch in the host:
  - /proc/mm...not found
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Linux version 2.6.16-rc4 ([EMAIL PROTECTED]) (gcc version 3.2 20020903 (Red Hat
Linux 8.0 3.2-7)) #1 Tue Feb 21 14:13:41 CST 2006
Built 1 zonelists
Kernel command line: mem=48M ubd0=../fc3_root_working root=98:0
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 46060k available
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with
errno 2)
/usr/include/linux/aio_abi.h not present during build
2.6 host AIO support not used - falling back to I/O thread
NET: Registered protocol family 16
mconsole (version 2) initialized on /home/jwd/.uml/SzDOnN/mconsole
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Warning: unable to open an initial console.
line_ioctl: tty0: ioctl KDSIGACCEPT called
INIT: version 2.85 booting
line_ioctl: tty0: ioctl TIOCLINUX called
                Welcome to Fedora Core
                Press 'I' to enter interactive startup.
Starting udev:  [  OK  ]
Initializing hardware...  storage network audio done[  OK  ]
raidautorun: failed to open /dev/md0: 6
Configuring kernel parameters:  [  OK  ]
Setting clock : Tue Feb 21 18:50:14 EST 2006 [  OK  ]
Setting hostname uml-test.goober.org:  [  OK  ]
Checking root filesystem
[/sbin/fsck.ext2 (1) -- /] fsck.ext2 -a /dev/ubd0
/dev/ubd0:
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate
superblock:
    e2fsck -b 8193 <device>

fsck.ext2: No such file or directory while trying to open /dev/ubd0
[FAILED]

*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):
-------------------

If I log in at this point, it is clear why the fsck failed--there is no
/dev/ubd0:

-------------------
(Repair filesystem) 1 # cd /dev
(Repair filesystem) 2 # ls
MAKEDEV  md25      ptyb0  ptyda  ptyq4  ptyse  ptyv8  ptyy2   tty13
ttyS37  ttya9  ttyd3  ttypd  ttys7  ttyv1  ttyxb
XOR      md26      ptyb1  ptydb  ptyq5  ptysf  ptyv9  ptyy3   tty14
ttyS38  ttyaa  ttyd4  ttype  ttys8  ttyv2  ttyxc
console  md27      ptyb2  ptydc  ptyq6  ptyt0  ptyva  ptyy4   tty15
ttyS39  ttyab  ttyd5  ttypf  ttys9  ttyv3  ttyxd
core     md28      ptyb3  ptydd  ptyq7  ptyt1  ptyvb  ptyy5   tty2
ttyS4   ttyac  ttyd6  ttyq0  ttysa  ttyv4  ttyxe
cpu      md29      ptyb4  ptyde  ptyq8  ptyt2  ptyvc  ptyy6   tty3
ttyS40  ttyad  ttyd7  ttyq1  ttysb  ttyv5  ttyxf
fd       md3       ptyb5  ptydf  ptyq9  ptyt3  ptyvd  ptyy7   tty4
ttyS41  ttyae  ttyd8  ttyq2  ttysc  ttyv6  ttyy0
full     md30      ptyb6  ptye0  ptyqa  ptyt4  ptyve  ptyy8   tty5
ttyS42  ttyaf  ttyd9  ttyq3  ttysd  ttyv7  ttyy1
initctl  md31      ptyb7  ptye1  ptyqb  ptyt5  ptyvf  ptyy9   tty6
ttyS43  ttyb0  ttyda  ttyq4  ttyse  ttyv8  ttyy2
input    md4       ptyb8  ptye2  ptyqc  ptyt6  ptyw0  ptyya   tty7
ttyS44  ttyb1  ttydb  ttyq5  ttysf  ttyv9  ttyy3
kmem     md5       ptyb9  ptye3  ptyqd  ptyt7  ptyw1  ptyyb   tty8
ttyS45  ttyb2  ttydc  ttyq6  ttyt0  ttyva  ttyy4
kmsg     md6       ptyba  ptye4  ptyqe  ptyt8  ptyw2  ptyyc   tty9
ttyS46  ttyb3  ttydd  ttyq7  ttyt1  ttyvb  ttyy5
log      md7       ptybb  ptye5  ptyqf  ptyt9  ptyw3  ptyyd   ttyS0
ttyS47  ttyb4  ttyde  ttyq8  ttyt2  ttyvc  ttyy6
loop0    md8       ptybc  ptye6  ptyr0  ptyta  ptyw4  ptyye   ttyS1
ttyS48  ttyb5  ttydf  ttyq9  ttyt3  ttyvd  ttyy7
loop1    md9       ptybd  ptye7  ptyr1  ptytb  ptyw5  ptyyf   ttyS10
ttyS49  ttyb6  ttye0  ttyqa  ttyt4  ttyve  ttyy8
loop2    mem       ptybe  ptye8  ptyr2  ptytc  ptyw6  ptyz0   ttyS11
ttyS5   ttyb7  ttye1  ttyqb  ttyt5  ttyvf  ttyy9
loop3    net       ptybf  ptye9  ptyr3  ptytd  ptyw7  ptyz1   ttyS12
ttyS50  ttyb8  ttye2  ttyqc  ttyt6  ttyw0  ttyya
loop4    null      ptyc0  ptyea  ptyr4  ptyte  ptyw8  ptyz2   ttyS13
ttyS51  ttyb9  ttye3  ttyqd  ttyt7  ttyw1  ttyyb
loop5    parport0  ptyc1  ptyeb  ptyr5  ptytf  ptyw9  ptyz3   ttyS14
ttyS52  ttyba  ttye4  ttyqe  ttyt8  ttyw2  ttyyc
loop6    parport1  ptyc2  ptyec  ptyr6  ptyu0  ptywa  ptyz4   ttyS15
ttyS53  ttybb  ttye5  ttyqf  ttyt9  ttyw3  ttyyd
loop7    parport2  ptyc3  ptyed  ptyr7  ptyu1  ptywb  ptyz5   ttyS16
ttyS54  ttybc  ttye6  ttyr0  ttyta  ttyw4  ttyye
lp0      parport3  ptyc4  ptyee  ptyr8  ptyu2  ptywc  ptyz6   ttyS17
ttyS55  ttybd  ttye7  ttyr1  ttytb  ttyw5  ttyyf
lp1      port      ptyc5  ptyef  ptyr9  ptyu3  ptywd  ptyz7   ttyS18
ttyS56  ttybe  ttye8  ttyr2  ttytc  ttyw6  ttyz0
lp2      ppp       ptyc6  ptyp0  ptyra  ptyu4  ptywe  ptyz8   ttyS19
ttyS57  ttybf  ttye9  ttyr3  ttytd  ttyw7  ttyz1
lp3      psaux     ptyc7  ptyp1  ptyrb  ptyu5  ptywf  ptyz9   ttyS2
ttyS58  ttyc0  ttyea  ttyr4  ttyte  ttyw8  ttyz2
md0      ptmx      ptyc8  ptyp2  ptyrc  ptyu6  ptyx0  ptyza   ttyS20
ttyS59  ttyc1  ttyeb  ttyr5  ttytf  ttyw9  ttyz3
md1      pts       ptyc9  ptyp3  ptyrd  ptyu7  ptyx1  ptyzb   ttyS21
ttyS6   ttyc2  ttyec  ttyr6  ttyu0  ttywa  ttyz4
md10     ptya0     ptyca  ptyp4  ptyre  ptyu8  ptyx2  ptyzc   ttyS22
ttyS60  ttyc3  ttyed  ttyr7  ttyu1  ttywb  ttyz5
md11     ptya1     ptycb  ptyp5  ptyrf  ptyu9  ptyx3  ptyzd   ttyS23
ttyS61  ttyc4  ttyee  ttyr8  ttyu2  ttywc  ttyz6
md12     ptya2     ptycc  ptyp6  ptys0  ptyua  ptyx4  ptyze   ttyS24
ttyS62  ttyc5  ttyef  ttyr9  ttyu3  ttywd  ttyz7
md13     ptya3     ptycd  ptyp7  ptys1  ptyub  ptyx5  ptyzf   ttyS25
ttyS63  ttyc6  ttyp0  ttyra  ttyu4  ttywe  ttyz8
md14     ptya4     ptyce  ptyp8  ptys2  ptyuc  ptyx6  random  ttyS26
ttyS7   ttyc7  ttyp1  ttyrb  ttyu5  ttywf  ttyz9
md15     ptya5     ptycf  ptyp9  ptys3  ptyud  ptyx7  shm     ttyS27
ttyS8   ttyc8  ttyp2  ttyrc  ttyu6  ttyx0  ttyza
md16     ptya6     ptyd0  ptypa  ptys4  ptyue  ptyx8  stderr  ttyS28
ttyS9   ttyc9  ttyp3  ttyrd  ttyu7  ttyx1  ttyzb
md17     ptya7     ptyd1  ptypb  ptys5  ptyuf  ptyx9  stdin   ttyS29
ttya0   ttyca  ttyp4  ttyre  ttyu8  ttyx2  ttyzc
md18     ptya8     ptyd2  ptypc  ptys6  ptyv0  ptyxa  stdout  ttyS3
ttya1   ttycb  ttyp5  ttyrf  ttyu9  ttyx3  ttyzd
md19     ptya9     ptyd3  ptypd  ptys7  ptyv1  ptyxb  systty  ttyS30
ttya2   ttycc  ttyp6  ttys0  ttyua  ttyx4  ttyze
md2      ptyaa     ptyd4  ptype  ptys8  ptyv2  ptyxc  tty     ttyS31
ttya3   ttycd  ttyp7  ttys1  ttyub  ttyx5  ttyzf
md20     ptyab     ptyd5  ptypf  ptys9  ptyv3  ptyxd  tty0    ttyS32
ttya4   ttyce  ttyp8  ttys2  ttyuc  ttyx6  ubda
md21     ptyac     ptyd6  ptyq0  ptysa  ptyv4  ptyxe  tty1    ttyS33
ttya5   ttycf  ttyp9  ttys3  ttyud  ttyx7  ubdb
md22     ptyad     ptyd7  ptyq1  ptysb  ptyv5  ptyxf  tty10   ttyS34
ttya6   ttyd0  ttypa  ttys4  ttyue  ttyx8  urandom
md23     ptyae     ptyd8  ptyq2  ptysc  ptyv6  ptyy0  tty11   ttyS35
ttya7   ttyd1  ttypb  ttys5  ttyuf  ttyx9  zero
md24     ptyaf     ptyd9  ptyq3  ptysd  ptyv7  ptyy1  tty12   ttyS36
ttya8   ttyd2  ttypc  ttys6  ttyv0  ttyxa
-------------------

However, if I shut down UML and look at the filesystem via loopback, the
ubd0, ubd1, etc. files are there, with the correct major/minor.
Comparing the two views of /dev, there are also a number of character
device files present in the loopback view that I don't see when
partially booted within UML.

So what filesystem is mounted (read-only) when the boot is interrupted?
How do I get it to contain the necessary block device files?

Or am I totally confused?

  --  John


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to