[sclug] UML root mount FS

Leon Ward leon.ward at added-dimension.co.uk
Sat Oct 25 09:05:49 UTC 2003


Hello!

	I am having a confusing time with UML, A while back I created an
image of a RH system.
I have just done an apt-get install user-mode-linux on a woody box, and have
run straight into a problem.


When i start the UML instance with

linux ubd0=./root_fs eth0=tuntap,,,ip.add.re.ss

she starts to boot, but then fails with....

--snip--
Checking root file system
/dev/ubd/0:
The superblock could not be read or does not describe a correct ext2
filesystem. Blah Blah yadda yadda......

Give root pass for maintenance.

This is where i get real confused....

# cd /proc
# cat ./mounts
/dev/ubd/0 / ext2 ro 0 0
/proc /proc proc rw 0 0

So to me this means that the root FS I am using exists on /dev/ubd/0

# mount
/dev/ubd/0 on / type ext2 (rw)
none on /proc type proc (rw)
devfs on /dev type devfs (rw)

Just making sure that mount says the same as me.


# cd /
# ls
bin  boot  dev  etc  halt  home  initrd  lib  lost+found  mnt 
opt  proc  root  sbin  tmp  usr  var

OK, I can see that I am definatly mounted (well otherwise I would not have
got this far.)


#ls /dev/u*
 /dev/urandom
  
 /dev/usb:
 dabusb0   dabusb14  dabusb6  dc2xx10  dc2xx2  dc2xx8  lp12  
 lp4  mdc8000   mdc80014  mdc8006   scanner1   scanner15  
 scanner7  ttyUSB11  ttyUSB3  ttyUSB9
 dabusb1   dabusb15  dabusb7  dc2xx11  dc2xx3  dc2xx9  lp13  
 lp5  mdc8001   mdc80015  mdc8007   scanner10  scanner2   
 scanner8  ttyUSB12  ttyUSB4
 dabusb10  dabusb2   dabusb8  dc2xx12  dc2xx4  lp0     lp14  
 lp6  mdc80010  mdc8002   mdc8008   scanner11  scanner3   
 scanner9  ttyUSB13  ttyUSB5
 dabusb11  dabusb3   dabusb9  dc2xx13  dc2xx5  lp1     lp15  
 lp7  mdc80011  mdc8003   mdc8009   scanner12  scanner4   
 ttyUSB0   ttyUSB14  ttyUSB6
 dabusb12  dabusb4   dc2xx0   dc2xx14  dc2xx6  lp10    lp2   
 lp8  mdc80012  mdc8004   rio500    scanner13  scanner5   
 ttyUSB1   ttyUSB15  ttyUSB7
 dabusb13  dabusb5   dc2xx1   dc2xx15  dc2xx7  lp11    lp3   
 lp9  mdc80013  mdc8005   scanner0  scanner14  scanner6   
 ttyUSB10  ttyUSB2   ttyUSB8
 
No /dev/ubd/0
This would be the obvious reason that fsck dies, but how the hell does the
box boot and mount root?

/etc/fstab does mention that / = /dev/udb/0  before anyone asks.

Any ideas people?

-NArd







This E-mail and its attachments have been scanned for viruses before delivery.
We recommend that all attachments are also checked by recipients before being viewed.
For more information contact postmaster at added-dimension.co.uk.



More information about the Sclug mailing list