LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-28-2014, 12:49 AM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Get detailed information about microsd hardware?


I have a 16GB microsd card attached as /dev/mmcblk0, i want to see more information about the cards capabilities, so far i've tried looking here:


This doesn't seem to work for microsd cards;
Code:
root@pi:~# hdparm -I /dev/mmcblk0

/dev/mmcblk0:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
Same here, not sure about -d option though;
Code:
root@pi:~# smartctl -i /dev/mmcblk0
smartctl 5.43 2012-06-30 r3573 [armv6l-linux-3.12.30+] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

/dev/mmcblk0: Unable to detect device type
Smartctl: please specify device type with the -d option.

Use smartctl -h to get a usage summary
Some information can be found here, but it's not very detailed
Code:
root@pi:~# ls /sys/block/mmcblk0/device/
block/  date        fwrev   name    preferred_erase_size  subsystem@
cid     driver@     hwrev   oemid   scr                   type
csd     erase_size  manfid  power/  serial                uevent
EG;
Code:
root@pi:/sys/block/mmcblk0/device# grep -r . * 2>/dev/null
block/mmcblk0/ro:0
block/mmcblk0/dev:179:0
block/mmcblk0/size:30703616
block/mmcblk0/stat:   41756    36604  1017051   335630    19892    24681   960058 18309950        0  1133650 18645590
block/mmcblk0/mmcblk0p1/ro:0
block/mmcblk0/mmcblk0p1/dev:179:1
block/mmcblk0/mmcblk0p1/size:101472
block/mmcblk0/mmcblk0p1/stat:     601    12365   102097     6600        2        0        2      210        0     4180     6800
block/mmcblk0/mmcblk0p1/partition:1
block/mmcblk0/mmcblk0p1/start:32
block/mmcblk0/mmcblk0p1/discard_alignment:4177920
block/mmcblk0/mmcblk0p1/uevent:MAJOR=179
block/mmcblk0/mmcblk0p1/uevent:MINOR=1
block/mmcblk0/mmcblk0p1/uevent:DEVNAME=mmcblk0p1
block/mmcblk0/mmcblk0p1/uevent:DEVTYPE=partition
block/mmcblk0/mmcblk0p1/alignment_offset:0
block/mmcblk0/mmcblk0p1/inflight:       0        0
block/mmcblk0/mmcblk0p2/ro:0
block/mmcblk0/mmcblk0p2/dev:179:2
block/mmcblk0/mmcblk0p2/size:1000064
block/mmcblk0/mmcblk0p2/stat:     182      651     6664     1380       12       66      624     4450        0     4980     5830
block/mmcblk0/mmcblk0p2/partition:2
block/mmcblk0/mmcblk0p2/start:101504
block/mmcblk0/mmcblk0p2/discard_alignment:2555904
block/mmcblk0/mmcblk0p2/uevent:MAJOR=179
block/mmcblk0/mmcblk0p2/uevent:MINOR=2
block/mmcblk0/mmcblk0p2/uevent:DEVNAME=mmcblk0p2
block/mmcblk0/mmcblk0p2/uevent:DEVTYPE=partition
block/mmcblk0/mmcblk0p2/alignment_offset:0
block/mmcblk0/mmcblk0p2/inflight:       0        0
block/mmcblk0/mmcblk0p3/ro:0
block/mmcblk0/mmcblk0p3/dev:179:3
block/mmcblk0/mmcblk0p3/size:29602048
block/mmcblk0/mmcblk0p3/stat:   40967    23525   907738   327620    19878    24615   959432 18305290        0  1129910 18632930
block/mmcblk0/mmcblk0p3/partition:3
block/mmcblk0/mmcblk0p3/start:1101568
block/mmcblk0/mmcblk0p3/discard_alignment:2228224
block/mmcblk0/mmcblk0p3/uevent:MAJOR=179
block/mmcblk0/mmcblk0p3/uevent:MINOR=3
block/mmcblk0/mmcblk0p3/uevent:DEVNAME=mmcblk0p3
block/mmcblk0/mmcblk0p3/uevent:DEVTYPE=partition
block/mmcblk0/mmcblk0p3/alignment_offset:0
block/mmcblk0/mmcblk0p3/inflight:       0        0
block/mmcblk0/range:32
block/mmcblk0/queue/nomerges:0
block/mmcblk0/queue/logical_block_size:512
block/mmcblk0/queue/rq_affinity:1
block/mmcblk0/queue/discard_zeroes_data:1
block/mmcblk0/queue/max_segments:128
block/mmcblk0/queue/max_segment_size:524288
block/mmcblk0/queue/rotational:0
block/mmcblk0/queue/scheduler:[noop] deadline cfq 
block/mmcblk0/queue/read_ahead_kb:128
block/mmcblk0/queue/max_hw_sectors_kb:512
block/mmcblk0/queue/discard_granularity:4194304
block/mmcblk0/queue/discard_max_bytes:2199023255040
block/mmcblk0/queue/write_same_max_bytes:0
block/mmcblk0/queue/max_integrity_segments:0
block/mmcblk0/queue/max_sectors_kb:512
block/mmcblk0/queue/physical_block_size:512
block/mmcblk0/queue/add_random:1
block/mmcblk0/queue/nr_requests:128
block/mmcblk0/queue/minimum_io_size:512
block/mmcblk0/queue/hw_sector_size:512
block/mmcblk0/queue/optimal_io_size:0
block/mmcblk0/queue/iostats:1
block/mmcblk0/discard_alignment:0
block/mmcblk0/force_ro:0
block/mmcblk0/ext_range:32
block/mmcblk0/uevent:MAJOR=179
block/mmcblk0/uevent:MINOR=0
block/mmcblk0/uevent:DEVNAME=mmcblk0
block/mmcblk0/uevent:DEVTYPE=disk
block/mmcblk0/alignment_offset:0
block/mmcblk0/inflight:       0        0
block/mmcblk0/removable:0
block/mmcblk0/capability:10
cid:02544d534131364712224d2c0300e100
csd:400e00325b590000751f7f800a400000
date:01/2014
erase_size:512
fwrev:0x2
hwrev:0x1
manfid:0x000002
name:SA16G
oemid:0x544d
preferred_erase_size:4194304
scr:0235800301000000
serial:0x224d2c03
subsystem/drivers_autoprobe:1
type:SD
uevent:DRIVER=mmcblk
uevent:MMC_TYPE=SD
uevent:MMC_NAME=SA16G
uevent:MODALIAS=mmc:block

Basically i'm after the full spec's of the card. Usually i'd get it with hdparm -I for a hard drive. Not too sure how to go about it with a microsd.

Thanks..

Last edited by coralfang; 10-28-2014 at 12:52 AM.
 
Old 10-28-2014, 02:50 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Some adapters limit ability to get data about devices.

dmicode may offer a bit.


sudo udevadm info -a -n /dev/sdb

From here. http://superuser.com/questions/69679...ounted-sd-card
 
Old 10-28-2014, 11:18 PM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Thanks, the udevadm command just reiterates output from /sys/block/mmcblk0/device.
The least information i am trying to look for is whether the microsd card is 'class 10' rated. Though, looking at block/mmcblk0/capability:10 shows a 10, would capability be the class of the card?
 
  


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
[SOLVED] Linux command that gives detailed information on your hardware, seen in a LQ members aristocratic Linux - Newbie 4 05-03-2014 08:52 AM
detailed information about mdadm output bertl1982 Linux - General 3 01-11-2010 05:00 AM
CentOS Detailed System Information kexpert Linux - Newbie 6 11-19-2009 12:03 AM
Detailed information on PID and SID Curtor Linux - Newbie 6 12-11-2008 10:31 AM
Detailed information on Fedora services mrkawphy Linux - Newbie 1 08-22-2006 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:11 AM.

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
Open Source Consulting | Domain Registration