Ok!
I tried that script in /dev directory... I see a lot of ubdc* now....
I also tried to mount my pen drive getting the same result:

~# mount -t vfat /dev/ubdc1 /mnt/pendrive/
mount: /dev/ubdc1 is not a valid block device

my command line was: $ linux ubd0=rootfs.debian.etch ubd1=swapfs.debian ubdc1=/dev/sda1 eth0=tuntap,,,192.168.1.101 mem=512M noprocmm

As regard CD-ROM problem????


2006/11/5, Flavio <[EMAIL PROTECTED]>:
Ok, but,
when I installed my Debian guest system, after mounting and "chrooting" the UML system,
I did the following, after positioning on /dev directory:

for i in 0 1 2 3 4 5 6 7; do mknod ubd$i b 98 $[ $i * 16 ]; done

Is it the same you said before??? (does the script sobstitute above command line??)

Thank you.

2006/11/5, Anthony Brock < [EMAIL PROTECTED] >:
-----Original Message-----
> DebianUM:~# mount -t vfat /dev/ubdc1 /mnt/pendrive
> mount: special device /dev/ubdc1 does not exist
>
> How can I create it???

There are several resources one the Internet that would tell you how to do
this. However, the short answer is something like the following script:


#!/bin/sh

major=98
for devicenum in 0 1 2 3 4 5 6 7
do
        device=ubd`echo -n $devicenum | tr 0-7 a-h`
        baseminor=`expr $devicenum \* 16`
        mknod -m 0660 $device b $major $baseminor
        chgrp disk $device
        for partition in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
        do
                minor=`expr $baseminor + $partition`
                mknod -m 0660 $device$partition b $major $minor
                chgrp disk $device$partition
        done
done


> Here's my /etc/fstab :
>
> DebianUM:~# cat /etc/fstab
> # UNCONFIGURED FSTAB FOR BASE SYSTEM
> /dev/ubd0   /    ext3  defaults 0 0
> /dev/ubd1   none swap  sw       0 0
> /dev/ubd2   /mnt/cdrom iso9660 user,noauto,ro 0 0

These will need to be updated to reflect the recommended device names of
/dev/ubda, /dev/ubdb, /dev/ubdc, etc.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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