LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to mount SD-Card on Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/how-to-mount-sd-card-on-ubuntu-536646/)

ckota 03-11-2007 06:27 PM

How to mount SD-Card on Ubuntu
 
Hi,
I am trying to mount my 256MB SD-card with a integrated reader in my laptop, but without success. I am using Kubuntu 6.10 on Gateway 4542GP.

I also try to load tifm_sd and tifm_core at boot time, but nothing works.

lspci gives:
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
02:07.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a9)
02:07.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a9)
02:07.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 01)
02:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:09.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)

and dmesg | grep pc
[17179572.212000] ACPI: bus type pci registered
[17179572.228000] PCI: Bus #03 (-#06) is hidden behind transparent bridge #02 (-#02) (try 'pci=assign-busses')
[17179572.228000] PCI: Bus #07 (-#0a) is hidden behind transparent bridge #02 (-#02) (try 'pci=assign-busses')
[17179572.232000] PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
[17179591.184000] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[17179591.192000] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[17179592.640000] pcmcia: parent PCI bridge I/O window: 0x3000 - 0x3fff
[17179592.640000] pcmcia: parent PCI bridge Memory window: 0xe0200000 - 0xe02fffff
[17179592.640000] pcmcia: parent PCI bridge Memory window: 0x30000000 - 0x33ffffff
[17179592.768000] pcmcia: parent PCI bridge I/O window: 0x3000 - 0x3fff
[17179592.768000] pcmcia: parent PCI bridge Memory window: 0xe0200000 - 0xe02fffff
[17179592.768000] pcmcia: parent PCI bridge Memory window: 0x30000000 - 0x33ffffff
[17179593.276000] pccard: PCMCIA card inserted into slot 0
[17179593.896000] pcmcia: registering new device pcmcia0.0
[17179600.080000] pcc_acpi: loading...

any suggestions will be appreciated.
Thanks
Kota

fragos 03-11-2007 09:21 PM

Was the SD in the card reader when you did the lsusb? It doesn't show up as plugged in. Desktop computers seem to universally use their USB as the interface for memory card readers. Laptops on the other hand may use a proprietary hardware interface which would require a special driver for Linux. I don't know that this is the case with your laptop. Linux does a good job of supporting USB card readers.

ckota 03-11-2007 10:34 PM

My SD reader does not use USB Interface. I don't know which driver it uses, can anyone tell me how to find out?
dmesg says:
[17180711.572000] pccard: PCMCIA card inserted into slot 0
[17180711.572000] cs: memory probe 0xe0200000-0xe02fffff: excluding 0xe0200000-0xe020ffff
[17180711.572000] pcmcia: registering new device pcmcia0.0

But I don't find pcmcia0.0 anywhere in the harddisk.

ckota 03-12-2007 07:35 PM

How to mount SD-Card writable
 
Hi
Now I make it work but I can only read not writable.
It mount as fat16
fdisk -l
isk /dev/mmcblk0: 255 MB, 255852544 bytes
16 heads, 32 sectors/track, 976 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 976 249805+ 6 FAT16

and dmesg gives:
[17179721.000000] pcmcia: registering new device pcmcia0.0
[17179721.532000] mmcblk0: mmc0:b368 D1018 249856KiB (ro)
[17179721.532000] mmcblk0: p1
[17179730.600000] FAT: utf8 is not a recommended IO charset for FAT filesystems,

any ideas?
Kota

dixon 03-17-2007 11:20 AM

Could u please write how did you mount it? I can't get it work(readonly is enough for the beginning :\)

fragos 03-17-2007 01:10 PM

It seems strange that you would have to use a mount command for any flash storage device connected with USB. What distro and version are you running?

dixon 03-17-2007 04:55 PM

I'm running Ubuntu 6.10...

ckota 03-17-2007 07:50 PM

Hi,
I just want to repeat that my SD card ready doesnot use USB interface, it is an internal card reader. To make it work, I install sdricoh_cs that can be download from http://sourceforge.net/projects/sdricohcs/ and then make, make install. It said it is very experimental and very slow compared to USB stick. I get about 200KB/s.

fragos 03-17-2007 10:25 PM

Dixon,

It may be mounted but you can't see where it is. First, nothing is mounted until media is placed in the reader. The reader itself can be seen with lsusb on the command line. Look in the places menu in the upper tool bar. It may be seen there.

dixon 03-22-2007 09:00 PM

2fragos: It's internal card reader not USB :\
2ckot:
have compiled and running module sdricoh_cs and it's still not working :cry:
Code:

dixon@dixon-laptop:~$ lsmod | grep sd
sdricoh_cs              9480  0
mmc_core              27780  1 sdricoh_cs
tsdev                  8896  0
pcmcia                39596  1 sdricoh_cs

dmesg
Code:

[  152.148000] pccard: PCMCIA card inserted into slot 0
[  152.148000] pcmcia: registering new device pcmcia0.0

fdisk -l
Code:

Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        3693    29663991    7  HPFS/NTFS
/dev/hda2            3694        4870    9454252+  5  Extended
/dev/hda5            3694        3783      722893+  82  Linux swap / Solaris
/dev/hda6            3784        4870    8731296  83  Linux

Do I miss some other module or what?

fragos 03-22-2007 09:38 PM

Most desktop motherboards use an internal USB connector and are from a software perspective USB. Some laptops use proprietary interfaces instead of USB and in those case a separate driver would needs to be installed. ckota has a laptop but dixon hasn't told us anything about his hardware although his reference to PCMCIA implies laptop. If we had the output of lspci we'd have a better view of the hardware involved. This URL may be helpful to you: http://www.google.com/linux?hl=en&q=...cs&btnG=Search

dixon 03-23-2007 07:45 AM

Quote:

Originally Posted by fragos
Most desktop motherboards use an internal USB connector and are from a software perspective USB. Some laptops use proprietary interfaces instead of USB and in those case a separate driver would needs to be installed. ckota has a laptop but dixon hasn't told us anything about his hardware although his reference to PCMCIA implies laptop. If we had the output of lspci we'd have a better view of the hardware involved. This URL may be helpful to you: http://www.google.com/linux?hl=en&q=...cs&btnG=Search

I'm sorry - I also have a laptop. Here's whole lspci
Code:

00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 21)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 21)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
02:07.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a9)
02:07.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev a9)
02:07.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 01)
02:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:09.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)


ckota 03-28-2007 10:43 PM

Hi dixon, what kind of SD card you have? try this to see if driver works well
Quote:

$ pccardctl status
Socket 0:
3.3V 16-bit PC Card
Subdevice 0 (function 0) bound to driver "sdricoh_cs"
Socket 1:
no card

dixon 03-29-2007 09:06 AM

Hi,
my card is SD A-DATA 1GB 150x

Code:

dixon@dixon-laptop:~$ pccardctl status
Socket 0:
  3.3V 16-bit PC Card
  Subdevice 0 (function 0) [unbound]
Socket 1:
  3.3V 32-bit PC Card

It's unbound :( Any ideas?

ckota 03-29-2007 11:10 AM

Hi, this looks strange since you have the same SD reader as me.
make sure you installed sdricoh_cs properly and try to insert only one card at once. What's "pccardctl info" output?


All times are GMT -5. The time now is 05:57 PM.