vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi there, I have several devies with various sorts of memorycards, and want to be able to read and write to those cards from my Gentoo. I got a 52-in-one USB 2.0 card reader (NQ-8602) from NorthQ, and started reading the WIKIs; http://gentoo-wiki.com/HOWTO_Multicard_reader http://gentoo-wiki.com/HOWTO_USB_Mass_Storage_Device The first really gives little help, when I don't know how the various cards, gets recognised. So I read the second WIKI, and seems to be able to contact the reader; ls -l /dev/disk/by-id/usb* lrwxrwxrwx 1 root root 9 Feb 7 2007 /dev/disk/by-id/usb-Generic_USB_CF_Reader_058F312D81B -> ../../sdb lrwxrwxrwx 1 root root 9 Feb 7 2007 /dev/disk/by-id/usb-Generic_USB_MS_Reader_058F312D81B -> ../../sdd lrwxrwxrwx 1 root root 9 Feb 7 2007 /dev/disk/by-id/usb-Generic_USB_SD_Reader_058F312D81B -> ../../sda lrwxrwxrwx 1 root root 9 Feb 7 2007 /dev/disk/by-id/usb-Generic_USB_SM_Reader_058F312D81B -> ../../sdc But cat /proc/partitions only returns the partitions on my 2 physical HDs. I also get; sg_scan -i && sg_map /dev/sg0: scsi0 channel=0 id=0 lun=0 [em] Generic USB SD Reader 1.00 [rmb=1 cmdq=0 pqual=0 pdev=0x0] /dev/sg1: scsi0 channel=0 id=0 lun=1 [em] Generic USB CF Reader 1.01 [rmb=1 cmdq=0 pqual=0 pdev=0x0] /dev/sg2: scsi0 channel=0 id=0 lun=2 [em] Generic USB SM Reader 1.02 [rmb=1 cmdq=0 pqual=0 pdev=0x0] /dev/sg3: scsi0 channel=0 id=0 lun=3 [em] Generic USB MS Reader 1.03 [rmb=1 cmdq=0 pqual=0 pdev=0x0] /dev/sg0 /dev/sda /dev/sg1 /dev/sdb /dev/sg2 /dev/sdc /dev/sg3 /dev/sdd But whenever I try to mount /dev/sda1,...,/dev/sdd1 I get nothing??. I have a 512mb Memory Stick Duo Pro, that I know contains file,s but there is no way I can view them in Gentoo. I also tried adding a UDEV rule, as described in HOWTO_USB_Mass_Storage_Device, but was unsuccesfull there too. The card reader works fine in my dual boot Windows 2000 SP4, so it should be connected up properly. Any tips are greatly appreciated. BR Stig -- * Registered Linux user #291266, with http://counter.li.org.* |
| |||
| It seems that if I put the card in the reader, and look at dmesg, I get SCSI device sdd: 960512 512-byte hdwr sectors (492 MB) sdd: Write Protect is off sdd: Mode Sense: 03 00 00 00 sdd: assuming drive cache: write through sdd: sdd1 FAT: bogus number of reserved sectors VFS: Can't find a valid FAT filesystem on dev sdd. FAT: bogus number of reserved sectors VFS: Can't find a valid FAT filesystem on dev sdd. But the card came formatted from Sony. I don't want to mkfs it, afraid of my Sony Ericcson phone not being able to read the card anymore. BR Stig -- * Registered Linux user #291266, with http://counter.li.org.* |
| |||
| On Wed, 07 Feb 2007 18:26:20 +0100, Stig Mogensen wrote: > It seems that if I put the card in the reader, and look at dmesg, I get > > SCSI device sdd: 960512 512-byte hdwr sectors (492 MB) > sdd: Write Protect is off > sdd: Mode Sense: 03 00 00 00 > sdd: assuming drive cache: write through > sdd: sdd1 > FAT: bogus number of reserved sectors > VFS: Can't find a valid FAT filesystem on dev sdd. > FAT: bogus number of reserved sectors > VFS: Can't find a valid FAT filesystem on dev sdd. > > But the card came formatted from Sony. I don't want to mkfs it, afraid of my > Sony Ericcson phone not being able to read the card anymore. > > BR > > Stig It would seem that one might have a proprietary file system? |
| |||
| ray wrote: > On Wed, 07 Feb 2007 18:26:20 +0100, Stig Mogensen wrote: > >> It seems that if I put the card in the reader, and look at dmesg, I get >> >> SCSI device sdd: 960512 512-byte hdwr sectors (492 MB) >> sdd: Write Protect is off >> sdd: Mode Sense: 03 00 00 00 >> sdd: assuming drive cache: write through >> sdd: sdd1 >> FAT: bogus number of reserved sectors >> VFS: Can't find a valid FAT filesystem on dev sdd. >> FAT: bogus number of reserved sectors >> VFS: Can't find a valid FAT filesystem on dev sdd. >> >> But the card came formatted from Sony. I don't want to mkfs it, afraid of >> my Sony Ericcson phone not being able to read the card anymore. >> >> BR >> >> Stig > > It would seem that one might have a proprietary file system? Nope. But I looked at sg_scan -i && sg_map output, and decided that this was right. Then set up my fstab like; /dev/sda1 /mnt/sdcard vfat noauto,user,exec,sync 0 0 /dev/sdb1 /mnt/cfcard vfat noauto,user,exec,sync 0 0 /dev/sdc1 /mnt/smcard vfat noauto,user,exec,sync 0 0 /dev/sdd1 /mnt/mscard vfat noauto,user,exec,sync 0 0 Now I can actually mount a card, and read/write to it. But unmounting fails.....it's just ignored. Also, I can't mount other cards, once one has been mounted. /Stig -- * Registered Linux user #291266, with http://counter.li.org.* |
| |||
| Stig Mogensen wrote: > Nope. But I looked at sg_scan -i && sg_map output, and decided that this was > right. Then set up my fstab like; > > /dev/sda1 /mnt/sdcard vfat noauto,user,exec,sync 0 0 > /dev/sdb1 /mnt/cfcard vfat noauto,user,exec,sync 0 0 > /dev/sdc1 /mnt/smcard vfat noauto,user,exec,sync 0 0 > /dev/sdd1 /mnt/mscard vfat noauto,user,exec,sync 0 0 > > Now I can actually mount a card, and read/write to it. But unmounting > fails.....it's just ignored. Does the "users" option (instead of "user") work? > Also, I can't mount other cards, once one has > been mounted. Where did you get the disk names from? Usually they are not always the same, and people are apparently supposed to create udev rules for their card readers. An example of such entries is on <http://www.nasauber.de/linux_know_how/?id=cardreader> (text in German, but the example rules should be readable for non-German speakers). You can use something like udevinfo -a -p /block/sdb to find the SYSFS (oder ATTRS) entries for your device. Regards... Michael |
| |||
| Michael Mauch wrote: > Stig Mogensen wrote: >> /dev/sda1 /mnt/sdcard vfat noauto,user,exec,sync 0 0 >> /dev/sdb1 /mnt/cfcard vfat noauto,user,exec,sync 0 0 >> /dev/sdc1 /mnt/smcard vfat noauto,user,exec,sync 0 0 >> /dev/sdd1 /mnt/mscard vfat noauto,user,exec,sync 0 0 >> >> Now I can actually mount a card, and read/write to it. But unmounting >> fails.....it's just ignored. > > Does the "users" option (instead of "user") work? > >> Also, I can't mount other cards, once one has >> been mounted. > > Where did you get the disk names from? Usually they are not always the > same, and people are apparently supposed to create udev rules for their > card readers. I guess the problem is that he didn't unmount the card, then he can't mount another on the same device until he has unmounted, the problem do much likely come from what you already pointed out from the "user" option that should have been 'users'. -- //Aho |
| ||||
| Michael Mauch wrote: > Stig Mogensen wrote: > >> Nope. But I looked at sg_scan -i && sg_map output, and decided that this >> was right. Then set up my fstab like; >> >> /dev/sda1 /mnt/sdcard vfat noauto,user,exec,sync 0 0 >> /dev/sdb1 /mnt/cfcard vfat noauto,user,exec,sync 0 0 >> /dev/sdc1 /mnt/smcard vfat noauto,user,exec,sync 0 0 >> /dev/sdd1 /mnt/mscard vfat noauto,user,exec,sync 0 0 >> >> Now I can actually mount a card, and read/write to it. But unmounting >> fails.....it's just ignored. > > Does the "users" option (instead of "user") work? No. I have not been able to mount a card, when "users" are set. >> Also, I can't mount other cards, once one has >> been mounted. > > Where did you get the disk names from? Usually they are not always the > same, and people are apparently supposed to create udev rules for their > card readers. From the sg_scan -i && sg_map, in my first post in this thread. > An example of such entries is on > <http://www.nasauber.de/linux_know_how/?id=cardreader> (text in German, > but the example rules should be readable for non-German speakers). > > You can use something like > > udevinfo -a -p /block/sdb > > to find the SYSFS (oder ATTRS) entries for your device. Yes, if I set up UDEV to handle this(as in http://gentoo-wiki.com/HOWTO_USB_Mass_Storage_Device), but when I tried, that failed too. /Stig -- * Registered Linux user #291266, with http://counter.li.org.* |