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.
|
 |
02-13-2022, 09:13 AM
|
#1
|
Member
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190
Rep:
|
SD card (4 GB) not recognized via USB-card reader
Hello,
I have following situation:
- one SD card (4 GB) gets recognized via built-in card reader (Thinkpad X61 and Dell D420), but does not via USB-connected card reader. The card reader itself is OK, I checked with another SD card.
Here are some data about card:
- when it is connected (built-in reader), it is shown as device "/dev/mmcblk0p1", file system shown as "W95 FAT32".
- another SD card is mounted as "/dev/sdb1", and filesystem is (according to GParted) FAT32.
I do not understand, why the bigger card is handled differently via USB card reader than via built in reader. I would appreciate any hint.
regards,
Andrey
|
|
|
02-13-2022, 11:19 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
Bigger card = older card. That's the biggest difference.
There are always plugging issues with those cards, or adapters. There are also usb adapters which try to cover camera sd cards as well and have very iffy pluggins systems.
My advice - Use it in the pcs card readers, and get suspicious of the usb reader, especially if it was cheap or was given away in a breakfast cereal packet  .
|
|
|
02-13-2022, 03:35 PM
|
#3
|
Member
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 317
Rep: 
|
Quote:
Originally Posted by SuSE_Lamer
Hello,
- when it is connected (built-in reader), it is shown as device "/dev/mmcblk0p1", file system shown as "W95 FAT32".
- another SD card is mounted as "/dev/sdb1", and filesystem is (according to GParted) FAT32.
|
/dev/mmcblk0p1 looks strange, /dev/sdb1 is common.
Possible issues:
- Build-in card reader handles 4+ GB cards differently as compared to to cards ≤ 2 GB.
- USB card reader cannot handle cards > 2 GB.
- Your 4 GB card is a non-standard "SD card". These non-standard cards exist. Standard "SD cards" are limited to 2 GB. According to standard, 4 GB cards are "SDHC cards".
|
|
|
02-13-2022, 04:11 PM
|
#4
|
Member
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190
Original Poster
Rep:
|
Hello
Quote:
Originally Posted by Arnulf
/dev/mmcblk0p1 looks strange, /dev/sdb1 is common.
|
I have to correct myself: when I connect bigger card via USB-reader, it is mounted under /dev/sdc and its size is shown as 2 TB.
The card was already formatted in my camera (Casio Exilim).
Quote:
Originally Posted by Arnulf
Possible issues:
- Build-in card reader handles 4+ GB cards differently as compared to to cards ≤ 2 GB.
- USB card reader cannot handle cards > 2 GB.
- Your 4 GB card is a non-standard "SD card". These non-standard cards exist. Standard "SD cards" are limited to 2 GB. According to standard, 4 GB cards are "SDHC cards".
|
I suppose, this can be a reason - size larger than 2 GB.
Update: the card itself is not SDHC, but just SD. I also found out that card reader in X61t (laptop I used for tests) is capable of reading SD HC cards.
Regards,
A.
Last edited by SuSE_Lamer; 02-13-2022 at 04:34 PM.
|
|
|
02-14-2022, 07:59 AM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
On the names: /dev/sdX goes to internal & external disks. Built in card readers get /dev/mmcblkXpN where
X=0,1,2… for 1st, second, third sd card.
N=1,2,3,… partition numbers on the sd card. As most can only read/write a single card, you rarely see anything other than mmcblk0p1
I have put the same micro sdcard into one adapter for my card reader, and it's mmcblk0p1 & mmcblk0p2. Then I have a usb adapter for micro sdcards, and in that it was sdc1 & sdc2 when it was plugged into usb.
|
|
1 members found this post helpful.
|
02-15-2022, 07:37 PM
|
#6
|
Senior Member
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
|
Quote:
Originally Posted by SuSE_Lamer
I do not understand, why the bigger card is handled differently via USB card reader than via built in reader. I would appreciate any hint.
|
Because USB hardware and internal hardware is not the same thing. If you configure the Linux Kernel, you will see that there is a huge section just for USB and all kind of USB gadgets and stuff.
Some internal hardware (inside the laptop) actually uses the universal serial bus interface instead of more normal interfaces, this includes some webcams and some card readers too actually. I had this issue once with a realtek or a broadcom card reader, and I just couldn't figure out why it was not recognized although I had included ALL the realtek/broadcom card reader drivers (and all the memory cards etc). In the end I found out that the solution was to install the USB card reader driver, because it was on the universal serial bus inteface even though it was inside my laptop.

Last edited by zeebra; 02-15-2022 at 07:40 PM.
|
|
|
02-19-2022, 05:45 PM
|
#7
|
Member
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190
Original Poster
Rep:
|
Hello,
Quote:
Originally Posted by zeebra
Because USB hardware and internal hardware is not the same thing. If you configure the Linux Kernel, you will see that there is a huge section just for USB and all kind of USB gadgets and stuff.
Some internal hardware (inside the laptop) actually uses the universal serial bus interface instead of more normal interfaces, this includes some webcams and some card readers too actually. I had this issue once with a realtek or a broadcom card reader, and I just couldn't figure out why it was not recognized although I had included ALL the realtek/broadcom card reader drivers (and all the memory cards etc). In the end I found out that the solution was to install the USB card reader driver, because it was on the universal serial bus inteface even though it was inside my laptop.
|
I managed to find a couple of other cards (8 GB and 2 GB), and I could prove, that internal card reader of my X61 reads everything, and that USB card reader by "Vivanco" (chip Alcor Micro, USB ID 058f:6362) reads only cards up to 2 GB.
Further, I found a post on ArchLinux-forum asking exactly the same. The answer was, that the reader itself simply cannot read SDHC cards. I suppose, I have the same issue.
Lenovo made its SD-cardreader "SDHC-comaptible" just by installing certain updates. So, it is same hardware, but another way of using. Just wondering, if I can enforce proper reading of SD HC card in the "ordinary" SD-reader under Linux.
Regards,
Andrey
|
|
|
02-19-2022, 09:09 PM
|
#8
|
Senior Member
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
|
Quote:
Originally Posted by SuSE_Lamer
Hello,
I managed to find a couple of other cards (8 GB and 2 GB), and I could prove, that internal card reader of my X61 reads everything, and that USB card reader by "Vivanco" (chip Alcor Micro, USB ID 058f:6362) reads only cards up to 2 GB.
Further, I found a post on ArchLinux-forum asking exactly the same. The answer was, that the reader itself simply cannot read SDHC cards. I suppose, I have the same issue.
Lenovo made its SD-cardreader "SDHC-comaptible" just by installing certain updates. So, it is same hardware, but another way of using. Just wondering, if I can enforce proper reading of SD HC card in the "ordinary" SD-reader under Linux.
Regards,
Andrey
|
Hmm yeah, sorry, I could probably tell you more, but I never figured out all the "memory card" stuff in the Kernel, since I almost never used all the different cards or any cards in general. Just looking at it generally when I deal with the Kernel, the "card" stuff is confusing, and I don't mean the card reader, but the section for different memory cards and all that.
Perhaps it could have something to do with one of those settings, it is at least worth checking out. It's several sections and alot of different named and types of "cards". I guess you COULD try to just compile it all as modules, or perhaps there is a bug where something is a module, and the module doesn't load when you use the kind of related card (technicall it's hotplugging?). So perhaps build them all into the Kernel for testing, check if it works, if not then remove or make modules of the ones that are least likely related to your one.
Last edited by zeebra; 02-19-2022 at 09:10 PM.
|
|
|
02-20-2022, 05:37 AM
|
#9
|
Senior Member
Registered: Sep 2014
Distribution: Slackware
Posts: 1,912
Rep: 
|
One of my SD cards could not be read anywhere, 16G kingston.
What happened is that it corroded a bit, so I cleaned the copper with rubber eraser, all good now.
Possibly not related to OP problem, just saying.
|
|
|
02-20-2022, 08:35 AM
|
#10
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
sdcards have a very limited number of write cycles. So I buy around 32G and not 500G because I don't want to lose 500G of data!
|
|
1 members found this post helpful.
|
02-27-2022, 10:09 AM
|
#11
|
Member
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190
Original Poster
Rep:
|
Hello,
Quote:
Originally Posted by zeebra
Hmm yeah, sorry, I could probably tell you more, but I never figured out all the "memory card" stuff in the Kernel, since I almost never used
all the different cards or any cards in general. ....
|
no, I will not spend time on it. I have an external USB hard drive for larger files, and 1 USB stick of 4 GB. But I'm really surprised, that my 15 years old Thinkpad Z61t running 32 bit Linux Ubuntu can detect 16 GB SD-card, and younger card reader (but via USB) on more modern Linux cannot. Somehow not really "linux-alike" :-)
Regards,
Andrey
|
|
|
02-27-2022, 10:37 AM
|
#12
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593
|
Why blame linux and not your usb sdcard reader?
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 07:43 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
|
|