2006/11/12, Christopher Marshall <[EMAIL PROTECTED]>:

> Flavio:
>
> As Blaisorblade explains above, your usb drive has a partition table on it, 
> which is why you need
> to mount it using the device /dev/sda1 instead of /dev/sda.  You can treat 
> the drive either way
> when you put a filesystem on it.  Your usb drive was partitioned so that all 
> of the space is
> placed in the first partition rather than being broken up into multiple 
> partitions, but that still
> counts as being partitioned.  The fdisk utility in linux is one way to 
> manipulate the partition
> table on a device.
>
> Try this and see if it works:
>
> (on the host from the root account)
>    insert the usb drive
>    check that it gets assigned /dev/sda1
>    linux ubdc=/dev/sda ...
> (inside of uml linux as the root user)
>    mount /dev/udbc1 /mnt/hd

Thank you Chris,
I tried to do as you said.
First of all I get two different results depending on the PC I am using for.
If I try to do linux ubdc=/dev/sda on my 32 bit CPU notebook I get
something good then before.
ubdc is now recognized by UML and I can now hope to use my pen drive.
At the moment, the only problem I have, is that UML can't mount the
USB pen-drive because it has some filesystem trouble.
Anyway I see some progress... thanks to you....

Below are reported some output messages produced after my attempts:

************************************************************************
# cat /proc/partitions
major minor  #blocks  name

  98     0    1025024 ubda
  98    16     513024 ubdb
  98    32    1024000 ubdc
  98    33    1023580 ubdc1

# fdisk -l /dev/ubdc

Disk /dev/ubdc: 1048 MB, 1048576000 bytes
33 heads, 61 sectors/track, 1017 cylinders
Units = cylinders of 2013 * 512 = 1030656 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/ubdc1               1        1017     1023580   83  Linux

#cat /etc/fstab | grep ubdc
/dev/ubdc1  /mnt/pendrive auto          user,noauto,rw    0

**********************************************************************

During my mount attempts:
~# mount /dev/ubdc1 /mnt/pendrive/
mount: wrong fs type, bad option, bad superblock on /dev/ubdc1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

~# mount -t vfat /dev/ubdc1 /mnt/pendrive/
mount: wrong fs type, bad option, bad superblock on /dev/ubdc1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I get these errors on the main boot shell:

Unable to load NLS charset cp437
FAT: codepage cp437 not found
Unable to load NLS charset cp437
FAT: codepage cp437 not found
Unable to load NLS charset cp437
FAT: codepage cp437 not found
Unable to load NLS charset cp437
FAT: codepage cp437 not found
VFS: Can't find an ext2 filesystem on dev ubdc1.
Unable to load NLS charset cp437
FAT: codepage cp437 not found
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev ubdc.
Unable to load NLS charset cp437
FAT: codepage cp437 not found
Unable to load NLS charset cp437
FAT: codepage cp437 not found

vfat and fat modules are loaded.

If I do the same attempt on my AMD64 i get only a kernel panic..
[...........]
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
Kernel panic - not syncing: Segfault with no mm

Modules linked in:
Pid: 1, comm: swapper Not tainted 2.6.18.2-bb2
[...........]

On my notebook:
[...]
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
 ubdc: ubdc1
[...]

Thank you so much,

Flavio.

-------------------------------------------------------------------------
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