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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-26-2016, 11:04 AM
|
#16
|
LQ Newbie
Registered: Jul 2016
Distribution: Arch linux
Posts: 25
Original Poster
Rep: 
|
The Windows I used to partition and format the micro SD card was on a tablet,
therefore it had a native micro SD card slot.
I do remember Ubuntu auto mounting it just fine, but that was on another computer.
And it did use the same SD card adapter.
|
|
|
07-26-2016, 11:20 AM
|
#17
|
Moderator
Registered: Aug 2002
Posts: 26,644
|
I am referring to the built in card slot not the adapter. So you do not have a USB reader?
|
|
|
07-26-2016, 11:35 AM
|
#18
|
LQ Newbie
Registered: Jul 2016
Distribution: Arch linux
Posts: 25
Original Poster
Rep: 
|
Nope, I don't have a USB card reader.
|
|
|
07-26-2016, 04:02 PM
|
#19
|
Senior Member
Registered: Oct 2003
Posts: 3,016
|
The only thing I would suggest at this point is to give the gparted or other livecd a try and see if the your card reader will work with a different kernel. If it does, that would isolate the issue to a regression in the card reader driver module in the Arch kernel. You can also try and identify manufacturer and model of your card reader and google that to see if there is some workaround. I assume the card reader is on the pci bus so you should be able to precisely identify it by examining the output of:
|
|
|
07-28-2016, 03:15 PM
|
#20
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791
|
If the card is partitioned, you need to mount each partition, not the card. Try mounting /dev/mmcblk0px where x is the partition number
|
|
|
08-01-2016, 04:55 AM
|
#21
|
LQ Newbie
Registered: Jul 2016
Distribution: Arch linux
Posts: 25
Original Poster
Rep: 
|
I apologize for making this thread seem dead, but it took me some time to test out live CDs of other distros.
Conclusion:
Linux Mint 18: Exact same problem. Cannot view partitions on the micro SD card, just the device itself.
lsblk prints out the exact same output as Arch. (superblock issues)
Ubuntu 16.04 : The problem persisted but strangely a single partition is seen under the device (lsblk).
Though superblock issues incurred and the partition is unmountable.
RockDoctor as previously noted the partitions were only visible on windows, Linux distros showed only the device (with the weird exception of Ubuntu)
|
|
|
08-01-2016, 06:28 AM
|
#22
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
This is some sort of hardware limitation, I'd think your card reader is not capable of reading greater than 4 GB cards. Or it may have something to do with adapter. I have a USB card reader here, it reads 4 GB micro SD cards using adapter just fine, but fails to read 32 GB card. It also has micro SD slot, 32 GB card works OK there.
|
|
|
08-01-2016, 10:53 AM
|
#23
|
LQ Newbie
Registered: Jul 2016
Distribution: Arch linux
Posts: 25
Original Poster
Rep: 
|
Emerson, I do think that maybe the case; though I hope it isn't. Do you have any idea on how to confirm that?
|
|
|
08-03-2016, 10:42 AM
|
#24
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,010
|
The usual process is: to check another reader, check another os, check another card, another cable, whatever you have (digital camera, laptops, even my monitor has an sd card reader), so you may find a solution.
By the way what kind of hardware is it?
you may try to use the udevadm tool to check this device (see udevadm monitor for example)
|
|
|
08-03-2016, 12:05 PM
|
#25
|
LQ Newbie
Registered: Jul 2016
Distribution: Arch linux
Posts: 25
Original Poster
Rep: 
|
The following are the reported kernel and udev events when inserting then removing the 8GB micro SD card
Code:
KERNEL[256.693640] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002 (mmc)
KERNEL[256.723813] add /module/mmc_block (module)
KERNEL[256.724218] add /devices/virtual/bdi/179:0 (bdi)
UDEV [256.724686] add /module/mmc_block (module)
UDEV [256.725135] add /devices/virtual/bdi/179:0 (bdi)
KERNEL[256.997629] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002/block/mmcblk0 (block)
KERNEL[256.997675] add /bus/mmc/drivers/mmcblk (drivers)
UDEV [256.998000] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002 (mmc)
UDEV [256.998323] add /bus/mmc/drivers/mmcblk (drivers)
UDEV [257.263517] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002/block/mmcblk0 (block)
KERNEL[307.891037] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002/block/mmcblk0 (block)
UDEV [307.892584] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002/block/mmcblk0 (block)
KERNEL[307.903714] remove /devices/virtual/bdi/179:0 (bdi)
UDEV [307.904947] remove /devices/virtual/bdi/179:0 (bdi)
KERNEL[307.937003] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002 (mmc)
UDEV [307.938297] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:0002 (mmc)
This one is for the 4GB micro SD card (the one without issues)
Code:
KERNEL[362.805923] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57 (mmc)
KERNEL[362.806208] add /devices/virtual/bdi/179:0 (bdi)
UDEV [362.807717] add /devices/virtual/bdi/179:0 (bdi)
UDEV [362.808143] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57 (mmc)
KERNEL[362.808248] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0 (block)
KERNEL[362.808346] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p1 (block)
KERNEL[362.808436] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p2 (block)
UDEV [362.877778] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0 (block)
UDEV [362.965901] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p2 (block)
UDEV [362.991530] add /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p1 (block)
KERNEL[395.171330] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p2 (block)
KERNEL[395.171419] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p1 (block)
KERNEL[395.171467] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0 (block)
UDEV [395.173053] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p2 (block)
UDEV [395.173890] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0/mmcblk0p1 (block)
UDEV [395.174315] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57/block/mmcblk0 (block)
KERNEL[395.183560] remove /devices/virtual/bdi/179:0 (bdi)
UDEV [395.184333] remove /devices/virtual/bdi/179:0 (bdi)
KERNEL[395.213559] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57 (mmc)
UDEV [395.214563] remove /devices/pci0000:00/0000:00:1c.3/0000:03:00.0/rtsx_pci_sdmmc.0/mmc_host/mmc0/mmc0:3f57 (mmc)
I noticed they're substantially different.
BTW the hardware is my laptop.
I'm going to try a USB adapter on the micro SD card. Might uncover limitations on my hardware/OS.
|
|
|
08-03-2016, 01:12 PM
|
#26
|
Member
Registered: Jul 2015
Location: USA
Distribution: Ubuntu, Lubuntu, Mint, custom embedded
Posts: 105
Rep: 
|
RockDoctor hinted at your original issue.
The SDcard has to be partitioned, and you can only mount the partition, not the entire device.
Older (or cheaper) SDcard readers will have issues reading (newer) high speed and/or higher capacity media.
The readers are not forward compatible with newer standards (for transfer speed and capacity), so you have to learn the limitations of the SDcard reader that you use.
You have only described the various SDcards that you use in terms of capacity.
The transfer speed is another salient attribute that has to be considered.
Regards
|
|
|
08-03-2016, 01:53 PM
|
#27
|
LQ Newbie
Registered: Jul 2016
Distribution: Arch linux
Posts: 25
Original Poster
Rep: 
|
blue_z, I totally agree with the fact that you can't mount a device but a partition. But the issue here is that I can't format it as well.
The SuperBlock cannot be read properly.
The micro SD cards I'm using aren't anything too recent nor special. The kind you'd get if you bought a raspberrypi and got an offer on a NOOB SD card.
The laptop I'm using is quite recent.(I would believe the card reader is too).
|
|
|
08-03-2016, 03:18 PM
|
#28
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
Quote:
Originally Posted by AnsemEco
blue_z, I totally agree with the fact that you can't mount a device but a partition. But the issue here is that I can't format it as well.
The SuperBlock cannot be read properly.
The micro SD cards I'm using aren't anything too recent nor special. The kind you'd get if you bought a raspberrypi and got an offer on a NOOB SD card.
The laptop I'm using is quite recent.(I would believe the card reader is too).
|
That doesn't prevent hardware failure. Now, as to which hardware, that is hard to tell. If the SD card works elsewhere, I would believe the reader on the laptop.
|
|
|
08-04-2016, 09:20 AM
|
#29
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791
|
I guess I'd go for the brute-force approach at this time. - Plug in the 8GB card
Code:
dd if=/dev/zero of=/dev/mmcblk0 bs=8M count=1
- Re-insert the card
- Attempt to format using one of gparted, cfdisk, fdisk, etc...
|
|
1 members found this post helpful.
|
08-04-2016, 09:34 AM
|
#30
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
I just tried with two different adapters. One came with 8 GB micro SD card. It does not work with 32 GB card, but works with 8 GB card! The adapter that came with 32 GB card works with all micro SD cards I have. Go figure, I was thinking the adapter is a simple thing ...
|
|
|
All times are GMT -5. The time now is 07:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|