trsqr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Mar 2005 Posts: 1 Location: Espoo, Finland
|
Posted: Thu Mar 03, 2005 8:30 pm Post subject: udev and usb-storage |
|
|
Hello,
I'm truly sorry, if this is a FAQ, but my searches did not yield good results.
I have tried this with development-kernel-2.6.10 and now 2.6.11-rc5, but still I have the same problem: I have left devfs behind and am trying to migrate to udev. Everything else works fine, but for some reason neither of my 2 CompactFlash-readers work. Both have the same problem - I just can't mount the CF, even though it works with devfs and kernel-2.6.7 and Windows XP.
Code: | root@varjo /home/olli # mount -t vfat /dev/cf /mnt/camera
mount: wrong fs type, bad option, bad superblock on /dev/cf,
or too many mounted file systems
|
Ok, so no luck.
Code: | root@varjo /proc/scsi # cat /proc/scsi/scsi
Attached devices:
.. clip ..
Host: scsi3 Channel: 00 Id: 00 Lun: 01
Vendor: Generic Model: USB CF Reader Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 02
|
dmesg shows this:
Code: | Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0, type 0
Vendor: Generic Model: USB CF Reader Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 1006992 512-byte hdwr sectors (516 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
SCSI device sdc: 1006992 512-byte hdwr sectors (516 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
sdc: sdc1
|
The rules file is fine, I think:
Code: | root@varjo /proc/scsi # cat /etc/udev/rules.d/10-local.rules
BUS="scsi", SYSFS{model}="USB CF Reader ", KERNEL="sd*1", NAME="%k", SYMLINK="cf"
|
I have the device:
Code: | root@varjo /proc/scsi # ls -l /dev/cf
lrwxrwxrwx 1 root root 4 Mar 3 22:18 /dev/cf -> sdc1
|
But for some reason I cannot mount it.
Fdisk shows the drive size correctly, but the partition table is not correct (it shouldn't be, since this is the partition already?):
Code: | root@varjo /proc/scsi # fdisk /dev/cf
Command (m for help): p
Disk /dev/cf: 515 MB, 515031552 bytes
16 heads, 63 sectors/track, 997 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/cf1 ? 1854733 3606781 883032122 74 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(288, 115, 35) logical=(1854732, 12, 50)
Partition 1 has different physical/logical endings:
phys=(82, 111, 32) logical=(3606780, 10, 35)
Partition 1 does not end on cylinder boundary.
/dev/cf2 ? 1804411 1811006 3324218+ 6f Unknown
... clip ...
|
Fdisk from the drive itself shows the partition correctly.
Code: | root@varjo /proc/scsi # fdisk /dev/sdc
Command (m for help): p
Disk /dev/sdc: 515 MB, 515579904 bytes
16 heads, 63 sectors/track, 999 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 998 502960+ 6 FAT16
|
I simply cannot understand what is wrong. Perhaps it is just some small thing that I have overlooked, but I've been banging my head to the wall now enough, and cannot find a solution. This same happens with another CF card as well. If I leave out the rule file, then I get /dev/sdc1, but the result is the same anyway.
Thank you for taking time to read this,
-olli |
|