Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and usb-storage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
trsqr
n00b
n00b


Joined: 03 Mar 2005
Posts: 1
Location: Espoo, Finland

PostPosted: Thu Mar 03, 2005 8:30 pm    Post subject: udev and usb-storage Reply with quote

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. :cry:

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
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Thu Mar 03, 2005 9:46 pm    Post subject: Reply with quote

Ever try -t autofs or -t msdos ?
it's certain that vfat handle FAT32, but it's not sure it can handle a FAT16...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum