LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2010, 12:24 AM   #1
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Rep: Reputation: Disabled
Detecting MMC Card


Hi...

I am porting the kernel on my hardware board...

dmesg shows that...


mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SU08G 7.40 GiB
mmcblk0: p1


This means it has detected the card....

What I want to do is to run IO performance utility for mmc interface...

U have tools like iozone and all...

What I lack is what to mount on mnt

as there is nothing like mmc0 mmcblk0 in /dev

Can anyone pls help???



While firing fdisk -l

I am not getting an entry for MMC

Last edited by priyadarshan; 12-13-2010 at 12:35 AM. Reason: To Provide more info
 
Old 12-13-2010, 01:18 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi,

I hope I've understood you question.

Did you try to mount it like a USB-drive? look at
Code:
ls /dev/sd*
for (in most cases) /dev/sdb1 or /dev/sdc1 and mount it to (as an example)
Code:
mount /dev/sdb1 /mnt
Markus
 
Old 12-13-2010, 01:33 AM   #3
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
Yes, this is what I tried... and I found no entry under the name mmc


ls /dev/m
mem midi2 mpu401stat mtd14 mtd7 mtdblock4
midi0 midi3 mtd0 mtd15 mtd8 mtdblock5
midi00 mixer mtd1 mtd2 mtd9 mtdblock6
midi01 mixer1 mtd10 mtd3 mtdblock0 mtdblock7
midi02 mixer2 mtd11 mtd4 mtdblock1
midi03 mixer3 mtd12 mtd5 mtdblock2
midi1 mpu401data mtd13 mtd6 mtdblock3
 
Old 12-13-2010, 01:35 AM   #4
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
By d way... does MMC corresponds to any /dev/sd* entry rather then mmcblk* ???

If it is so then how can I get /dev/sd number???
 
Old 12-13-2010, 03:05 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
As I wrote it should be /dev/sdb1 or /dev/sdc1 (normally). try
Code:
ls /dev/sd*
/dev/sda is your harddisk, if you have only one harddisk in you computer, the sd-card-drives are sdb1 or sdc1.

Markus
 
Old 12-13-2010, 03:58 AM   #6
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
But shouldnt it be shown when one fires fdisk -l???
 
Old 12-13-2010, 04:00 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
No, fdisk is only able to show the card if it has a partitiontable.

Markus

Last edited by markush; 12-13-2010 at 04:02 AM.
 
Old 12-13-2010, 04:13 AM   #8
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
-sh-3.2# ls
HDD1 HDD2 japan
-sh-3.2# mkdir SD

-sh-3.2# fdisk -l

Disk /dev/sda: 4012 MB, 4012900352 bytes
255 heads, 63 sectors/track, 487 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 477 3831471 83 Linux
/dev/sda2 478 487 80325 82 Linux swap

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384001 83 Linux

-sh-3.2# mount /dev/sdc1 /mnt/SD/
mount: mounting /dev/sdc1 on /mnt/SD/ failed: No such device or address

-sh-3.2# mount /dev/sdd1 /mnt/SD/
mount: mounting /dev/sdd1 on /mnt/SD/ failed: No such device or address

-sh-3.2# mount /dev/sde1 /mnt/SD/
mount: mounting /dev/sde1 on /mnt/SD/ failed: No such device or address

-sh-3.2# mount /dev/sdf1 /mnt/SD/
mount: mounting /dev/sdf1 on /mnt/SD/ failed: No such device or address

-sh-3.2# mount /dev/sdg1 /mnt/SD/
mount: mounting /dev/sdg1 on /mnt/SD/ failed: No such device or address

-sh-3.2# mount /dev/sd1 /mnt/SD/
mount: mounting /dev/sd1 on /mnt/SD/ failed: No such file or directory



(
 
Old 12-13-2010, 04:14 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
... and what is /dev/sda on your system, a 4GB device?

Please post the output of
Code:
ls /dev/sd*
Markus

Last edited by markush; 12-13-2010 at 04:16 AM.
 
Old 12-13-2010, 04:16 AM   #10
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
Its a flash drive, from which my filesystem is loaded
 
Old 12-13-2010, 04:17 AM   #11
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
It really not my card... My micro mmc is of 8 GB
and dmesg also shows it as 7.40GB storage
 
Old 12-13-2010, 04:17 AM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, please post the ouput of "ls /dev/sd*".

Markus
 
Old 12-13-2010, 04:24 AM   #13
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
-sh-3.2# ls /dev/sd*
/dev/sda /dev/sdc5 /dev/sdf14 /dev/sdi1 /dev/sdk6 /dev/sdn15
/dev/sda1 /dev/sdc6 /dev/sdf15 /dev/sdi10 /dev/sdk7 /dev/sdn2
/dev/sda10 /dev/sdc7 /dev/sdf2 /dev/sdi11 /dev/sdk8 /dev/sdn3
/dev/sda11 /dev/sdc8 /dev/sdf3 /dev/sdi12 /dev/sdk9 /dev/sdn4
/dev/sda12 /dev/sdc9 /dev/sdf4 /dev/sdi13 /dev/sdl /dev/sdn5
/dev/sda13 /dev/sdd /dev/sdf5 /dev/sdi14 /dev/sdl1 /dev/sdn6
/dev/sda14 /dev/sdd1 /dev/sdf6 /dev/sdi15 /dev/sdl10 /dev/sdn7
/dev/sda15 /dev/sdd10 /dev/sdf7 /dev/sdi2 /dev/sdl11 /dev/sdn8
/dev/sda2 /dev/sdd11 /dev/sdf8 /dev/sdi3 /dev/sdl12 /dev/sdn9
/dev/sda3 /dev/sdd12 /dev/sdf9 /dev/sdi4 /dev/sdl13 /dev/sdo
/dev/sda4 /dev/sdd13 /dev/sdg /dev/sdi5 /dev/sdl14 /dev/sdo1
/dev/sda5 /dev/sdd14 /dev/sdg1 /dev/sdi6 /dev/sdl15 /dev/sdo10
/dev/sda6 /dev/sdd15 /dev/sdg10 /dev/sdi7 /dev/sdl2 /dev/sdo11
/dev/sda7 /dev/sdd2 /dev/sdg11 /dev/sdi8 /dev/sdl3 /dev/sdo12
/dev/sda8 /dev/sdd3 /dev/sdg12 /dev/sdi9 /dev/sdl4 /dev/sdo13
/dev/sda9 /dev/sdd4 /dev/sdg13 /dev/sdj /dev/sdl5 /dev/sdo14
/dev/sdb /dev/sdd5 /dev/sdg14 /dev/sdj1 /dev/sdl6 /dev/sdo15
/dev/sdb1 /dev/sdd6 /dev/sdg15 /dev/sdj10 /dev/sdl7 /dev/sdo2
/dev/sdb10 /dev/sdd7 /dev/sdg2 /dev/sdj11 /dev/sdl8 /dev/sdo3
/dev/sdb11 /dev/sdd8 /dev/sdg3 /dev/sdj12 /dev/sdl9 /dev/sdo4
/dev/sdb12 /dev/sdd9 /dev/sdg4 /dev/sdj13 /dev/sdm /dev/sdo5
/dev/sdb13 /dev/sde /dev/sdg5 /dev/sdj14 /dev/sdm1 /dev/sdo6
/dev/sdb14 /dev/sde1 /dev/sdg6 /dev/sdj15 /dev/sdm10 /dev/sdo7
/dev/sdb15 /dev/sde10 /dev/sdg7 /dev/sdj2 /dev/sdm11 /dev/sdo8
/dev/sdb2 /dev/sde11 /dev/sdg8 /dev/sdj3 /dev/sdm12 /dev/sdo9
/dev/sdb3 /dev/sde12 /dev/sdg9 /dev/sdj4 /dev/sdm13 /dev/sdp
/dev/sdb4 /dev/sde13 /dev/sdh /dev/sdj5 /dev/sdm14 /dev/sdp1
/dev/sdb5 /dev/sde14 /dev/sdh1 /dev/sdj6 /dev/sdm15 /dev/sdp10
/dev/sdb6 /dev/sde15 /dev/sdh10 /dev/sdj7 /dev/sdm2 /dev/sdp11
/dev/sdb7 /dev/sde2 /dev/sdh11 /dev/sdj8 /dev/sdm3 /dev/sdp12
/dev/sdb8 /dev/sde3 /dev/sdh12 /dev/sdj9 /dev/sdm4 /dev/sdp13
/dev/sdb9 /dev/sde4 /dev/sdh13 /dev/sdk /dev/sdm5 /dev/sdp14
/dev/sdc /dev/sde5 /dev/sdh14 /dev/sdk1 /dev/sdm6 /dev/sdp15
/dev/sdc1 /dev/sde6 /dev/sdh15 /dev/sdk10 /dev/sdm7 /dev/sdp2
/dev/sdc10 /dev/sde7 /dev/sdh2 /dev/sdk11 /dev/sdm8 /dev/sdp3
/dev/sdc11 /dev/sde8 /dev/sdh3 /dev/sdk12 /dev/sdm9 /dev/sdp4
/dev/sdc12 /dev/sde9 /dev/sdh4 /dev/sdk13 /dev/sdn /dev/sdp5
/dev/sdc13 /dev/sdf /dev/sdh5 /dev/sdk14 /dev/sdn1 /dev/sdp6
/dev/sdc14 /dev/sdf1 /dev/sdh6 /dev/sdk15 /dev/sdn10 /dev/sdp7
/dev/sdc15 /dev/sdf10 /dev/sdh7 /dev/sdk2 /dev/sdn11 /dev/sdp8
/dev/sdc2 /dev/sdf11 /dev/sdh8 /dev/sdk3 /dev/sdn12 /dev/sdp9
/dev/sdc3 /dev/sdf12 /dev/sdh9 /dev/sdk4 /dev/sdn13
/dev/sdc4 /dev/sdf13 /dev/sdi /dev/sdk5 /dev/sdn14
 
Old 12-13-2010, 04:31 AM   #14
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850


Well, there must be a chance to find out which of those devices your mmc card is, I'd suggest to try to mount all /dev/sd*1 devices. /dev/sdh1 up to /dev/sdp1

Markus
 
Old 12-13-2010, 04:49 AM   #15
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Original Poster
Rep: Reputation: Disabled
-sh-3.2# mount /dev/sdd1 /mnt/SD
mount: mounting /dev/sdd1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sde1 /mnt/SD
mount: mounting /dev/sde1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdf1 /mnt/SD
mount: mounting /dev/sdf1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdg1 /mnt/SD
mount: mounting /dev/sdg1 on /mnt/SD failed: No such device or address

-sh-3.2# mount /dev/sdh1 /mnt/SD
mount: mounting /dev/sdh1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdi1 /mnt/SD
mount: mounting /dev/sdi1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdj1 /mnt/SD
mount: mounting /dev/sdj1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdk1 /mnt/SD
mount: mounting /dev/sdk1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdl1 /mnt/SD
mount: mounting /dev/sdl1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdm1 /mnt/SD
mount: mounting /dev/sdm1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdn1 /mnt/SD
mount: mounting /dev/sdn1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdo1 /mnt/SD
mount: mounting /dev/sdo1 on /mnt/SD failed: No such device or address
-sh-3.2# mount /dev/sdp1 /mnt/SD
mount: mounting /dev/sdp1 on /mnt/SD failed: No such device or address
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ricoh Sd/mmc Card Reader Won't Read Mmc Cards it-s Linux - Hardware 4 07-02-2011 06:49 AM
how to enable mmc card ? jabka Linux - Laptop and Netbook 4 02-07-2007 03:53 PM
Reading and detecting an MMC - FC5 linuxnewbie82 Linux - Newbie 1 08-23-2006 07:30 PM
SD/MMC-Card Reader hubideg SUSE / openSUSE 2 05-17-2006 09:31 PM
Accessing MMC card in Laptop built-in MMC Card Slot with knoppix bröggle Linux - Laptop and Netbook 0 08-18-2004 09:44 AM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration