USB flash drive mapped in a wrong device
Hi all.
I've a problem mounting an USB flash drive. When I plug the flash drive, I can see on the first terminal window (CTRL+F1) the information about the pen drive and the device to be use on the access (sdb). But when I try to mount it I get some troubles:
Code:
# mount /dev/sdb /mnt/removable
mount: you must specify the filesystem type
So, I try with many filesystems without success (fat, vfat, fat16, fat32, nfs, ufs, usbfs, autofs)
Code:
# mount -t autofs /dev/sdb /mnt/removable
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
or too many mounted dile systems
After many days on search, I realise that the device /dev/sdb is created "on-the-fly", when I plug the USB flash drive and it is pointing to /dev/scsi/host*/bus0/target0/lun0/disc where the * is changed by a number > 2 and it depends of the times I plug and unplug it (e.g. If I plug it and unplug it 3 times, at the 3rd plug time it will point to /dev/scsi/host5/....). After some tries I saw that I can mount it manualy using the command:
Code:
# mount /dev/scsi/host*/bus0/target0/lun0/part1 /mnt/removable
With this I can access all the content of the flash drive.
Now I need to chage /dev/sdb -> /dev/scsi/host*/bus0/target0/lun0/disc to /dev/sdb -> /dev/scsi/host*/bus0/target0/lun0/part1 and I don't know how to do that.
Any Ideas???
More Info:
-> Dell precision M70
-> lsmod
Code:
[root@localhost ~]# lsmod
Module Size Used by
nls_iso8859_1 3904 0
nls_cp437 5568 0
vfat 12768 0
fat 41184 1 vfat
autofs4 17956 0
nfsd 203360 8
exportfs 5632 1 nfsd
parport_pc 36420 0
lp 12296 0
parport 34376 2 parport_pc,lp
ipv6 244160 8
ipmi_si 31974 1
ipmi_msghandler 50664 1 ipmi_si
i810_audio 35796 0
ac97_codec 17452 1 i810_audio
soundcore 9312 1 i810_audio
af_packet 21128 0
tg3 80644 0
tsdev 7456 0
joydev 9728 0
evdev 9184 0
usbmouse 5280 0
nvidia 4086352 14
usbhid 43104 0
agpgart 33224 1 nvidia
usb_storage 64704 0
ehci_hcd 29572 0
uhci_hcd 31792 0
usbcore 114136 6 usbmouse,usbhid,usb_storage,ehci_hcd,uhci_hcd
rtc 11448 0
ext3 128840 2
jbd 54072 1 ext3
sd_mod 17360 4
ata_piix 8644 3
libata 44900 1 ata_piix
scsi_mod 123488 3 usb_storage,sd_mod,libata
-> fdisk
Code:
[root@localhost ~]# fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 892 7164958+ 83 Linux
/dev/sda2 893 7296 51440130 5 Extended
/dev/sda5 893 1146 2040223+ 82 Linux swap
/dev/sda6 1147 7296 49399843+ 83 Linux
Disk /dev/sdb: 497 MB, 497549312 bytes
16 heads, 32 sectors/track, 1898 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1898 485872 6 FAT16
Disk /dev/sdc: 1 MB, 1474560 bytes
1 heads, 3 sectors/track, 960 cylinders
Units = cylinders of 3 * 512 = 1536 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 ? 623257122 679486963 84344761 69 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(68, 13, 10) logical=(623257121, 0, 3)
Partition 1 has different physical/logical endings:
phys=(288, 115, 43) logical=(679486962, 0, 1)
Partition 1 does not end on cylinder boundary.
/dev/sdc2 ? 567173161 1190466982 934940732+ 73 Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(371, 114, 37) logical=(567173160, 0, 2)
Partition 2 has different physical/logical endings:
phys=(366, 32, 33) logical=(1190466981, 0, 3)
Partition 2 does not end on cylinder boundary.
/dev/sdc3 ? 858 858 0 74 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(371, 114, 37) logical=(857, 0, 3)
Partition 3 has different physical/logical endings:
phys=(372, 97, 50) logical=(857, 0, 2)
Partition 3 does not end on cylinder boundary.
/dev/sdc4 1 1145037824 1717556736 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 0) logical=(0, 0, 1)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(1145037823, 0, 3)
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
-> uname -a
Code:
[root@localhost ~]# uname -a
Linux localhost 2.6.10 #1 Mon Feb 6 17:43:26 CET 2006 i686 unknown unknown GNU/Linux
-> kernelversion
Code:
[root@localhost ~]# kernelversion
2.6
-> cat /etc/fstab
Code:
[root@localhost ~]# cat /etc/fstab
/dev/sda1 / ext3 defaults 1 1
/dev/sda6 /data_local ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
none /mnt/hd supermount dev=/dev/scsi/host2/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /mnt/removable supermount dev=/dev/sdb,fs=auto 0 0
dev=/dev/scsi/host6/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /proc proc defaults 0 0
/dev/sda5 swap swap defaults 0 0