Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi, i've got a multi-card reader and would like to mount it to my linux box Code: &#91;root@localhost arief&#93;# dmesg | tail &#91;<0217a272>&#93; vfs_readdir+0x8a/0xb7 &#91;<0217a6e3>&#93; sys_getdents64+0x64/0xa9 &#91;<0218a560>&#93; set_fs_pwd+0x37/0x5a Bad EIP ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11

    mouting an SD-card-reader to Linux and acces it


    Hi,

    i've got a multi-card reader and would like to mount it to my linux box

    Code:
    &#91;root@localhost arief&#93;# dmesg | tail
     &#91;<0217a272>&#93; vfs_readdir+0x8a/0xb7
     &#91;<0217a6e3>&#93; sys_getdents64+0x64/0xa9
     &#91;<0218a560>&#93; set_fs_pwd+0x37/0x5a
     Bad EIP value.
     <6>usb 1-2&#58; new high speed USB device using address 8
    scsi4 &#58; SCSI emulation for USB Mass Storage devices
      Vendor&#58; USB2.0    Model&#58; CardReader CF     Rev&#58; 0100
      Type&#58;   Direct-Access                      ANSI SCSI revision&#58; 02
    Attached scsi removable disk sdc at scsi4, channel 0, id 0, lun 0
    USB Mass Storage device found at 8

    Code:
    &#91;root@localhost arief&#93;# mount -t vfat /dev/sdc /mnt/flash/
    mount&#58; No medium found
    Code:
    &#91;root@localhost arief&#93;# /sbin/lsmod | grep usb
    usblp                  12993  0
    usb_storage            61321  2
    scsi_mod              118417  2 sd_mod,usb_storage
    is it because of the wrong file system ?
    SD card brand is SanDisk

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Have you tried this with media in the drive?

    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    Fuu .. what a long reply from me ...

    Hmm, yeah i have an SD card in it. My card reader has 4 ports where u could put several cards on it. When i plug it in, /dev saying that there is only /dev/sdc.

    The question is what is the card's filesystem ? ... usually ?.

    If there are, say, more than one card is inserted, then i suppose there would be /dev/sdc1,2,3 and so on, No ?

  4. #4
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    After inserting the card, there should be a message in the dmesg output. You can read those with the command dmesg.
    Code:
    #dmesg
    &#91;...&#93;
    SCSI device sda&#58; 31360 512-byte hdwr sectors &#40;16 MB&#41;
    sda&#58; assuming Write Enabled
    sda&#58; assuming drive cache&#58; write through
    SCSI device sda&#58; 31360 512-byte hdwr sectors &#40;16 MB&#41;
    sda&#58; assuming Write Enabled
    sda&#58; assuming drive cache&#58; write through
     sda&#58; sda1
    So the card is recognized as /dev/sda1 . I can mount /dev/sda1 now.
    I\'m so tired .....
    #200472

  5. #5
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    That's the thing. it should, but /dev/sda1 doesn't exist
    the output of dmesg btw is

    Code:
    Initializing USB Mass Storage driver...
    scsi0 &#58; SCSI emulation for USB Mass Storage devices
      Vendor&#58; USB2.0    Model&#58; CardReader CF     Rev&#58; 0100
      Type&#58;   Direct-Access                      ANSI SCSI revision&#58; 02
    USB Mass Storage device found at 3
    usbcore&#58; registered new driver usb-storage
    USB Mass Storage support registered.
    Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
    usb 1-3&#58; USB disconnect, address 3
    usb 1-3&#58; new high speed USB device using address 4
    scsi1 &#58; SCSI emulation for USB Mass Storage devices
      Vendor&#58; USB2.0    Model&#58; CardReader CF     Rev&#58; 0100
      Type&#58;   Direct-Access                      ANSI SCSI revision&#58; 02
    Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
    USB Mass Storage device found at 4
    i have inserted the card ( SD card ) and hoping /dev/sda1 would pop up ... but it didn't. Any idea ?

  6. #6
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    Try inserting the card before system boots and then following the other's instructions.

  7. #7
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    Hmm ... unfortunately, /dev/sda1 doesn't pop up even after i plug the reader before boot. What do you think ?

  8. #8
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    /dev/sda1 should be created when it detects the media in this case a SD card. So, have both the card reader and the SD card plugged in before the system boots.

  9. #9
    Just Joined!
    Join Date
    Mar 2005
    Posts
    11
    Maybe i didn't make myself clear ... I should've written the reader+the card inserted before boot time and /dev/sda1 still doesn't pop up.

    Hmmm, ?

  10. #10
    Just Joined!
    Join Date
    Apr 2005
    Posts
    1

    For info it works for me

    It works :
    I plug the usb drive and next the SDCard (I have a green led) in the SanDisk
    12 in 1.

    Next, in root
    #mount /dev/sdc1 /media/usbdisk

    type is automatically recognized as vfat.

    dmesg gave :
    usb 1-1: new full speed USB device using uhci_hcd and address 2
    SCSI subsystem initialized
    Initializing USB Mass Storage driver...
    scsi0 : SCSI emulation for USB Mass Storage devices
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usb-storage: device found at 2
    usb-storage: waiting for device to settle before scanning
    Vendor: Generic Model: STORAGE DEVICE Rev: 0001
    Type: Direct-Access ANSI SCSI revision: 00
    Vendor: Generic Model: STORAGE DEVICE Rev: 0001
    Type: Direct-Access ANSI SCSI revision: 00
    Vendor: Generic Model: STORAGE DEVICE Rev: 0001
    Type: Direct-Access ANSI SCSI revision: 00
    Vendor: Generic Model: STORAGE DEVICE Rev: 0001
    Type: Direct-Access ANSI SCSI revision: 00
    usb-storage: device scan complete
    Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
    Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1
    Attached scsi removable disk sdc at scsi0, channel 0, id 0, lun 2
    Attached scsi removable disk sdd at scsi0, channel 0, id 0, lun 3
    SCSI device sdc: 121856 512-byte hdwr sectors (62 MB)
    sdc: Write Protect is off
    sdc: Mode Sense: 02 00 00 00
    sdc: assuming drive cache: write through
    SCSI device sdc: 121856 512-byte hdwr sectors (62 MB)
    sdc: Write Protect is off
    sdc: Mode Sense: 02 00 00 00
    sdc: assuming drive cache: write through
    sdc: sdc1

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •