Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] UML booting -- Populating /dev with device nodes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
KarlH420
n00b
n00b


Joined: 25 Apr 2005
Posts: 45

PostPosted: Sat Jul 23, 2005 10:32 am    Post subject: [solved] UML booting -- Populating /dev with device nodes Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Jul 24, 2005 12:52 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Guybrush
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 99
Location: 48°27'N, 11°8'O

PostPosted: Thu Aug 04, 2005 7:58 am    Post subject: Reply with quote

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.
Code:
cat /proc/meminfo


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.
:lol: :lol: :lol:
Back to top
View user's profile Send private message
Guybrush
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 99
Location: 48°27'N, 11°8'O

PostPosted: Thu Aug 04, 2005 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
softchill
n00b
n00b


Joined: 28 Jun 2003
Posts: 73
Location: Quebec, Canada

PostPosted: Thu Aug 18, 2005 9:59 pm    Post subject: Reply with quote

Thanks a lot, That solved my problem !!! :)
Back to top
View user's profile Send private message
Guybrush
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2003
Posts: 99
Location: 48°27'N, 11°8'O

PostPosted: Thu Sep 08, 2005 7:45 pm    Post subject: Reply with quote

Hi softchill,

could you change the title to solved please?
Back to top
View user's profile Send private message
sirfoxey
n00b
n00b


Joined: 19 May 2004
Posts: 5

PostPosted: Tue Nov 01, 2005 5:18 am    Post subject: Reply with quote

That is exactly what I just encounted also.

Thanks so much for the fix. Glad I searched here also
Back to top
View user's profile Send private message
Geddy Leon
n00b
n00b


Joined: 06 Jul 2007
Posts: 22

PostPosted: Fri Jul 06, 2007 3:17 pm    Post subject: Reply with quote

Hey!

almost 2 years later.... this post help to solve my problem too. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum