OK,
trying with my x86 I didn't have any problem on mounting cdroms.
The only problem now is how to mount my usb pen drive.

I ran the script posted by Anthony, I also comiled vfat module, but the only message is:
mount: /dev/ubdc1 is not a valid block device.
I added to my kernel command line: ubdc1=/dev/sda1.

The dmesg output on my guest system shows the line below:
failed to open '/dev/hdc', errno = 123

I don't know if it regards my problem.
Thanks a lot,

Flavio

2006/11/6, Flavio <fbcyborg@gmail.com>:
My last attempt was to compile iso9660 as module...
these are my modules in UML:

~# modprobe -l
/lib/modules/2.6.18.2-bb2/kernel/fs/isofs/isofs.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/lockd/lockd.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/binfmt_misc.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/autofs4/autofs4.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/ntfs/ntfs.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/nfsd/nfsd.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/nfs/nfs.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/exportfs/exportfs.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/smbfs/smbfs.ko
/lib/modules/2.6.18.2-bb2/kernel/fs/msdos/msdos.ko
/lib/modules/2.6.18.2-bb2/kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
/lib/modules/2.6.18.2-bb2/kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
/lib/modules/2.6.18.2-bb2/kernel/net/sunrpc/sunrpc.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/block/loop.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/block/nbd.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/net/slhc.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/net/dummy.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/net/ppp_generic.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/net/slip.ko
/lib/modules/2.6.18.2-bb2/kernel/drivers/net/tun.ko
/lib/modules/2.6.18.2-bb2/kernel/sound/soundcore.ko
/lib/modules/2.6.18.2-bb2/kernel/crypto/des.ko
/lib/modules/2.6.18.2-bb2/kernel/crypto/md5.ko
/lib/modules/2.6.18.2-bb2/kernel/arch/um/drivers/hostaudio.ko
/lib/modules/2.6.18.2-bb2/kernel/lib/crc32.ko

....
doing a modprobe isofs I'm getting this error:
`isofs' likely not compiled with -mcmodel=kernel
O_O

What can I do????
It seems to be impossible to mount some cd-rom.


2006/11/5, Flavio <fbcyborg@gmail.com >:
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 <fbcyborg@gmail.com>:
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 < brocka@sterlingcgi.com >:
-----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.