View previous topic :: View next topic |
Author |
Message |
KarlH420 n00b
Joined: 25 Apr 2005 Posts: 45
|
Posted: Sat Jul 23, 2005 10:32 am Post subject: [solved] UML booting -- Populating /dev with device nodes |
|
|
Hello all, I'm following the gentoo UML guide http://www.gentoo.org/doc/en/uml.xml
I used a 2005.0 stage3 to create my root_fs
When booting, it apears my file system is read only, and the gentoo startup is failing. Any idea how to fix this?
Below is the startup:
#./linux-2.6.11.4 ubd0=root_fs ubd1=swap_fs
Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
tracing thread pid = 25171
Linux version 2.6.11.4 (root@smoke) (gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)) #1 Tue Jul 5 21:26:22 CEST 2005
Built 1 zonelists
Kernel command line: ubd0=root_fs ubd1=swap_fs 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: 29128k available
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
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)
NET: Registered protocol family 16
mconsole (version 2) initialized on /root/.uml/E37pZD/mconsole
ubd: Synchronous mode
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
io scheduler deadline registered
io scheduler cfq registered
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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
ubdb: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
line_ioctl: tty0: ioctl KDSIGACCEPT called
INIT: version 2.86 booting
line_ioctl: tty0: ioctl TIOCLINUX called
Gentoo Linux; http://www.gentoo.org/
Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2
* Mounting proc at /proc ... [ ok ]
* Mounting sysfs at /sys ... [ ok ]
* Mounting /dev for udev ... [ ok ]
* Configuring system to use udev ...
* Populating /dev with device nodes ...
[ oops ]
* The "tar" command failed with error:
rd/c6d31p5: Cannot mknod: No space left on device
tar: rd/c6d31p6: Cannot mknod: No space left on device
tar: rd/c6d31p7: Cannot mknod: No space left on device
tar: rd/c7d10p1: Cannot mknod: No space left on device
tar: rd/c7d10p2: Cannot mknod: No space left on device
tar: rd/c7d10p3: Cannot mknod: No space left on device
tar: rd/c7d10p4: Cannot mknod: No space left on device
** and the errors continue due to ready only fs*
Last edited by KarlH420 on Fri Sep 09, 2005 9:20 am; edited 1 time in total |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Sun Jul 24, 2005 12:52 pm Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
Guybrush Tux's lil' helper
Joined: 06 Feb 2003 Posts: 99 Location: 48°27'N, 11°8'O
|
Posted: Thu Aug 04, 2005 7:58 am Post subject: |
|
|
Hi KarlH420,
had the same problem. But when playing around with the minimal root console after all the error messages, I realized that my UML guest system only had an amount of 32MB of memory assigned, and that seemed not to be enough for the tmpfs filesystem needed by udev.
So I added mem=128MB to the startup command line (and changed ubd1=... ubd2=... to ubda=... ubdb=... because udev creates the nodes /dev/ubda and /dev/ubdb) and changed /etc/fstab inside the guest system:
Code: | vpn ~ # cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03
:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <
dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext2 noauto,noatime 1
1
/dev/ubda / ext2 noatime 0
0
/dev/ubdb none swap sw 0
0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0
0
#/dev/fd0 /mnt/floppy auto noauto 0
0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0
0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0
0
|
After that, the uml guest system booted without problems and 6 virtual terminals showed up. If you need only one terminal comment out the following lines in /etc/inittab:
Code: | ...
# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
#c2:12345:respawn:/sbin/agetty 38400 tty2 linux
#c3:12345:respawn:/sbin/agetty 38400 tty3 linux
#c4:12345:respawn:/sbin/agetty 38400 tty4 linux
#c5:12345:respawn:/sbin/agetty 38400 tty5 linux
#c6:12345:respawn:/sbin/agetty 38400 tty6 linux
... |
That's it. Now I'm gonna play with network configuration.
|
|
Back to top |
|
|
Guybrush Tux's lil' helper
Joined: 06 Feb 2003 Posts: 99 Location: 48°27'N, 11°8'O
|
Posted: Thu Aug 04, 2005 8:18 am Post subject: |
|
|
Ooops,
almost forgot to post the startup line:
Code: | linux ubda=root_fs ubdb=swap_fs mem=128MB |
Hope this solves your problem... |
|
Back to top |
|
|
softchill n00b
Joined: 28 Jun 2003 Posts: 73 Location: Quebec, Canada
|
Posted: Thu Aug 18, 2005 9:59 pm Post subject: |
|
|
Thanks a lot, That solved my problem !!! |
|
Back to top |
|
|
Guybrush Tux's lil' helper
Joined: 06 Feb 2003 Posts: 99 Location: 48°27'N, 11°8'O
|
Posted: Thu Sep 08, 2005 7:45 pm Post subject: |
|
|
Hi softchill,
could you change the title to solved please? |
|
Back to top |
|
|
sirfoxey n00b
Joined: 19 May 2004 Posts: 5
|
Posted: Tue Nov 01, 2005 5:18 am Post subject: |
|
|
That is exactly what I just encounted also.
Thanks so much for the fix. Glad I searched here also |
|
Back to top |
|
|
Geddy Leon n00b
Joined: 06 Jul 2007 Posts: 22
|
Posted: Fri Jul 06, 2007 3:17 pm Post subject: |
|
|
Hey!
almost 2 years later.... this post help to solve my problem too. Thanks! |
|
Back to top |
|
|
|