From: Vincent G. <gu...@au...> - 2005-02-11 11:14:49
|
the devices uTomasz Wegrzanowski wrote: > Some things about Debian-3.0r0.ext2: > > > First, the /etc/fstab tries to mount /dev/ubd/0, but the correct name is /dev/ubd0. > It may or may not have something to do with devfs. In either case, it needs > to be corrected for the image to work right. > > > Second, why ext2 instead of ext3 ? It's just a matter of tune2fs -j and changing ext2 to ext3 > in the /etc/fstab. All reasonably new kernels grok ext3, and those that don't can > still mount it as ext2. It seems to me that it's not the only image affected. > > > The third thing is, /etc/inittab is weird. > The funny part is: > > 0:2345:respawn:/sbin/getty 38400 ttys/0 > 1:2345:respawn:/sbin/getty 38400 ttys/1 > 2:2345:respawn:/sbin/getty 38400 ttys/2 > c:2345:respawn:/sbin/getty 38400 serial/0 > > #0:2345:respawn:/sbin/getty 38400 tty0 > #2:23:respawn:/sbin/getty 38400 tty2 > #3:23:respawn:/sbin/getty 38400 tty3 > #4:23:respawn:/sbin/getty 38400 tty4 > #5:23:respawn:/sbin/getty 38400 tty5 > #6:23:respawn:/sbin/getty 38400 tty6 > > But it simply doesn't work. All I get is: > INIT: Id "0" respawning too fast: disabled for 5 minutes > INIT: Id "1" respawning too fast: disabled for 5 minutes > INIT: Id "2" respawning too fast: disabled for 5 minutes > INIT: Id "c" respawning too fast: disabled for 5 minutes > INIT: no more processes left in this runlevel > > That is, the gettys die immediately. > > Running getty 38400 ttys/0 etc. by hand confirms it. > On the other hand, getty 38400 tty0 etc. work fine, and I can even get > xterm login screens if I chance the ttys/N to ttyN in /etc/inittab > and pass con{0,1,2}=xterm as a command line argument. > > So unless I'm not getting it (I have no idea what are those ttys/N, ttyN seem > to be text vts on normal kernel), I suggest changing those lines to: > > 0:2345:respawn:/sbin/getty 38400 tty0 > 1:2345:respawn:/sbin/getty 38400 tty1 > 2:2345:respawn:/sbin/getty 38400 tty2 The device name used in inittab and /etc/fstab only need to be consistent but both are correct, Either you use devfs and have in you fstab /dev/ubd/0 and in you inittab /dev/ttys/0 or you don't use devfs and you have /dev/ubd0 and /dev/tty0. In that case you start uml with linux ubd0=Debian-3.0r0 devfs=nomount The filesystem is probably ext2 because this is the default install for that debian release ? -- Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman |