LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Trying to mount micro card through usb (https://www.linuxquestions.org/questions/linux-hardware-18/trying-to-mount-micro-card-through-usb-4175486592/)

JosephS 12-02-2013 03:22 PM

Trying to mount micro card through usb
 
Using CrunchBang Waldorf

I have a SanDisk Micro SD card. I am using a adaper to hook up the card to my computer through the usb. I would like to mount the card so I can access it. When I plug in usb drives they are mounted automatically so I don't know why this is not doing that.

Linux recognizes the adapter:
Code:

root@crunchbang:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0402:9665 ALi Corp. Gateway Webcam
Bus 002 Device 005: ID 0781:b6b8 SanDisk Corp.
Bus 002 Device 003: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0

The only devices in /dev with sd are sda which is the hard drive and sdb which Linux tells me "no medium is found" the same for sr0. I don't know if any of the other devices would apply.

Is there a way to make sure the micro adapter is working properly?

Thanks for any help

rokytnji 12-02-2013 04:44 PM

Code:

sudo fdisk -l
or

Code:

sudo blkid
should show if it is working.

JosephS 12-03-2013 11:17 AM

Non of those showed anything. Does a micro sd card mount the same as a flash drive or do I need something else?

Thanks

geox 12-03-2013 01:34 PM

Try with dmesg
This should similar lines when you plug in the SD card:
[13728.658738] sd 4:0:0:0: Attached scsi generic sg1 type 0
[13728.659316] sd 4:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[13728.660179] sd 4:0:0:0: [sdb] Write Protect is off
[13728.660190] sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
[13728.660197] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[13728.663535] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[13728.663802] sdb: sdb1

Norseman01 12-04-2013 11:17 PM

Assuming the chip adapter: 1) is accepted by Linux
2) does accept the microSD card
you might try: (become root) su - root
mount /dev/sdb1 /mnt/sdb1 -o rw
the /mnt/sdb1 means you have created directory sdb1 UNDER /mnt and set it chmod 777 sdb1

the sg0/sg1 are just drives (USB or whatever)
sg0 is also sda
sg1 is also sdb
and sdb1 is first partition of drive sdb (coming from a chip I would expect fdisk /dev/sdb
to say that partition #1 is vfat and there are no other partitions present.)

All this is useless if the MicroSD Card is not handled by either a port on the Linux machine
OR by the "converter" ( a regular size MicroSd Card that has a pocket for the Micro)

IF the mount command returns without comment verify with df -h and see if sdb1 is mounted.

I would like to take this time to remind all readers - Linux IS NOT Window$! When Window$ "things" go South you need to use Linux commands to get back on track. Meaning - if you want it look and feel like Window$ - go buy and use Window$!

OK no more ranting on my part. I'm surprised the previous posts I read don't mention the partition part.

Norseman01

Norseman01 12-04-2013 11:34 PM

Quote:

Originally Posted by geox (Post 5074784)
Try with dmesg
This should similar lines when you plug in the SD card:
[13728.658738] sd 4:0:0:0: Attached scsi generic sg1 type 0
[13728.659316] sd 4:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[13728.660179] sd 4:0:0:0: [sdb] Write Protect is off
[13728.660190] sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
[13728.660197] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[13728.663535] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[13728.663802] sdb: sdb1

This says you have a device sg1 that can hold 2 Trillion Bytes!!??
Also says sdb has a partition #1

Really??? a 2 Trillion Byte MicroSD Chip??? Quick - where do I get one? :)

OK - OK , different system and yes there are Multi-Trillion HDs out there.
Mine also mount as sdb1 and so forth. Caution - these USB external drives have been
know to fail. Beyond forensic recovery!
. 1) - connect them only for the time you need and then sync and dismount.
. 2) - PLEASE, PLEASE burn to DVDs anything you are going to shed tears over if lost.
You heard this from the Voice of Experience.

Norseman01

geox 12-05-2013 01:37 AM

Quote:

Originally Posted by Norseman01 (Post 5075720)
This says you have a device sg1 that can hold 2 Trillion Bytes!!??
Also says sdb has a partition #1

Really??? a 2 Trillion Byte MicroSD Chip??? Quick - where do I get one? :)

Norseman01

You are just showing off your lack of knowledge. Anyone else knows that apart from the size the rest is the same. No matter if it's SD or a USB HDD.....

Norseman01 12-05-2013 01:34 PM

Quote:

Originally Posted by geox (Post 5075754)
You are just showing off your lack of knowledge. Anyone else knows that apart from the size the rest is the same. No matter if it's SD or a USB HDD.....

Actually - "Anyone else.." part is wrong. The original question never used the partition number.

When dealing with the Novice - always be specific and never assume prior knowledge.
From my point of view, you should have clarified you were using another device as
an example and reviewed the sdb: sdb1 part near the bottom - explicitly.

It's December - so Happy Holidays to all.

Norseman01

geox 12-06-2013 01:44 AM

I bow to you my friend. You are right.

Norseman01 12-06-2013 06:49 PM

Quote:

Originally Posted by geox (Post 5076346)
I bow to you my friend. You are right.

Please don't. I've had my share of "missing the key" of a request.
Don't forget to keep helping. Someone helped me and presumably
you at some point. Least we can do is pass it on.

Norseman01


All times are GMT -5. The time now is 08:35 PM.