LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2022, 09:13 AM   #1
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190

Rep: Reputation: 16
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
 
Old 02-13-2022, 11:19 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
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.
 
Old 02-13-2022, 03:35 PM   #3
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 317

Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by SuSE_Lamer View Post
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".
 
Old 02-13-2022, 04:11 PM   #4
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190

Original Poster
Rep: Reputation: 16
Hello
Quote:
Originally Posted by Arnulf View Post
/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 View Post
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.
 
Old 02-14-2022, 07:59 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
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.
Old 02-15-2022, 07:37 PM   #6
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Quote:
Originally Posted by SuSE_Lamer View Post
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.
 
Old 02-19-2022, 05:45 PM   #7
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190

Original Poster
Rep: Reputation: 16
Hello,
Quote:
Originally Posted by zeebra View Post
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
 
Old 02-19-2022, 09:09 PM   #8
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Quote:
Originally Posted by SuSE_Lamer View Post
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.
 
Old 02-20-2022, 05:37 AM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,912

Rep: Reputation: Disabled
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.
 
Old 02-20-2022, 08:35 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
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.
Old 02-27-2022, 10:09 AM   #11
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 190

Original Poster
Rep: Reputation: 16
Hello,
Quote:
Originally Posted by zeebra View Post
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
 
Old 02-27-2022, 10:37 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,593

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
Why blame linux and not your usb sdcard reader?
 
1 members found this post helpful.
  


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] Card reader not recognized Fixit7 Puppy 2 07-10-2016 09:17 AM
5 in 1 card reader not recognized kennyg1 Linux - Newbie 31 04-12-2010 01:08 PM
/usr/lib/libgd.so: file not recognized: File format not recognized kimjao Linux - Software 2 07-24-2009 11:46 AM
card reader not recognized at all? mma8x Linux - Hardware 4 04-20-2006 06:47 PM
HP Photosmart 7550 w/ Flash Card Reader on Suse 9.3. Card Reader and Print Sharing Desert Linux - Hardware 0 07-25-2005 08:25 PM

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

All times are GMT -5. The time now is 07:43 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