Linux Lite Forums

Software - Support => Other => Topic started by: adml on March 06, 2021, 02:39:29 PM

Title: micro SD cards not recognized
Post by: adml on March 06, 2021, 02:39:29 PM
I have Linux Lite 5.2 installed on a Lenovo Ideapad 100s 14 inch notebook. After installation micro SD cards are not recognized, but they were recognized previously under Windows. I've tried 3 different cards, all of which are recognized on other PCs, so I'm sure that it's not the cards.

lspci shows the following:

00:12.0 SD Host controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SD Controller (rev 21)

Any ideas on how I can get Linux Lite to recognize micro SD cards ?

Thanks in advance for any help.
Title: Re: micro SD cards not recognized
Post by: WytWun on March 07, 2021, 02:43:31 AM
You're going to have to do some digging unfortunately to better understand exactly what is missing in the system config.

To try and gather more info about the card reader I'd go to the Lenovo website and try and identify the actual Windows card reader driver download package for your system - it is possible that it might actually be a Realtek device rather than the intel (the 100-14IBY appears to use a realtek card reader even though I think the intel chipset in that model includes SD card support...).

To learn more about your system start by opening a terminal window and running the command
Code: [Select]
inxi -Fbefore inserting a card into the reader and then again after inserting a card into the reader and comparing the output to see whether anything is different.

Some googling turned up this AskUbuntu article (https://askubuntu.com/questions/939410/lenovo-100s-14ibr-microsd-doesnt-show).  It is now quite old and likely not directly relevant, but many of the investigative suggestions on that page and the bug report linked in the second answer may be informative.  A look at a the kernel config on a Lite 5.2 system suggests that the necessary modules should have been built but they may not have been loaded on your system (perhaps the pinctrl module relevant to your system?).
Title: Re: micro SD cards not recognized
Post by: adml on March 07, 2021, 08:34:39 PM
Thank you for the reply. My model is a 100s-14IBR and the Lenovo support site shows that the card reader driver is indeed for a Realtek.

Running inxi -F both before and after inserting a micro SD card shows no differences, other than a 1% difference in memory usage and a 1 degree difference in CPU temp. The drive information is exactly the same, it appears that only the internal drive is being shown.

I read the post that you linked to, is pinctrl something that I can use to try and get the card reader recognized ?
Title: Re: micro SD cards not recognized
Post by: WytWun on March 08, 2021, 06:25:08 AM
I hadn't previously tried to use the microSD card slot in my Lenovo 100s-11IBY (currently running Lite 5.2) which I think is somewhat older than your machine.  I found a suitable card and much to my surprise the card was recognised and I could navigate the contents with the file manager.  As best I can tell, my machine is using the sdhci_acpi driver rather than the sdhci_pci driver mentioned in the AskUbuntu article.

Your machine seems to have an intel Braswell CPU which should be covered by the pinctrl_cherryview driver according to the source code; that driver is built into the kernel according to the config info I can find so there's nothing you can do with that :(.

What sized cards are you trying?  Are they cards you used when running Windows?  The card I tried was 16GB and I seem to recall 32GB being a relatively common limit for SD card readers until fairly recently...
Title: Re: micro SD cards not recognized
Post by: adml on March 08, 2021, 01:59:51 PM
The micro SD cards that I've tried are 32 GB, and are the exact ones that I used when Windows was installed. You're correct, anything above 32 GB was a no go on this PC under Windows. I'd really like to get the SD reader working as Linux Lite has given this PC new life and it's a night and day difference from Windows. I appreciate the help, please let me know if you have any other ideas.
Title: Re: micro SD cards not recognized
Post by: WytWun on March 09, 2021, 08:13:23 AM
At this stage, I can't offer any suggestions except using a compact USB microSD reader like the Kingston Mobilelite Plus or Sandisk MobileMate (USB 3 version).

My system treated the microSD card a little differently between the internal card reader and a USB card reader:  in the USB card reader the file manager offered the "eject" function and just had a single reference to the card, whereas in the internal reader it showed a reference to each of the top level directories and I could only right-clink on one of them and select "unmount" after which the multiple directory references seemed to hang around until the card was ejected.  Apart from the fact that I find microSD cards and the 100s-11IBY internal reader very fiddly to use (I have largish hands), I found the more standard "eject" treatment of the external USB reader more intuitive.
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 09, 2021, 03:02:30 PM
@adml
is this an internal or usb card reader?

LL should be able to view the card.. Unless possibly a driver?
Sharing the output of inxi would allow us to view if its installed and driver.... Along with other device info..

Perhaps something in BIOS needs enabled?

I have a system booting LL from SD..
Might be something simple....??
Title: Re: micro SD cards not recognized
Post by: adml on March 09, 2021, 08:33:08 PM
@WytWun

Thanks for the replies, and the help, I appreciate it. If I can't get the card reader recognized I think I'll use one of those close fitting USB drives for extra storage as that seems like the next best thing for this PC.
Title: Re: micro SD cards not recognized
Post by: adml on March 09, 2021, 08:40:53 PM
@firenice03

Thanks for the reply. This is the internal reader on the PC. Listed below is the output of inxi, with a 32 GB card inserted. The only storage showing is the internal 64 GB drive in the PC. I've double checked the BIOS, nothing in there related to the card reader other than an SD reader entry low in the boot order. How would I check to see if the driver is installed/loaded ?

In looking at your signature entries do you think it would be worthwhile for me to try an older version of LL ?

output of inxi:

CPU: Dual Core Intel Celeron N3050 (-MCP-) speed/min/max: 493/480/2160 MHz
Kernel: 5.4.0-66-generic x86_64 Up: 18m Mem: 1229.6/1810.9 MiB (67.9%)
Storage: 58.24 GiB (18.4% used) Procs: 197 Shell: bash 5.0.17 inxi: 3.0.38
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 09, 2021, 11:07:43 PM
@adml
LL 5.x should be ok, perhaps the kernel version...
Most likely a slightly older but it does look like these Lenovo, card readers and Linux has had issues..

When in LL does lsblk show the drive attached?

You may want to also look in the bios and ensure secure boot is disabled.
Title: Re: micro SD cards not recognized
Post by: adml on March 10, 2021, 11:27:13 AM
@firenice03

Listed below is the output of lsblk, only the 64 GB internal drive is showing. Secure boot is disabled in the BIOS.

While doing some more searching about this I came across the following:

https://bugzilla.kernel.org/show_bug.cgi?id=204003

This kernel.org bug report concerns the card readers of Intel NUC PCs not being recognized and indicates that the issue seems to be kernel specific.  However, I don't believe that it's a kernel issue in my case and here's why. I booted a live USB of LL 5.2 on a Lenovo 120S 14 inch laptop and the card reader was recognized. But the card reader is not recognized on my Lenovo 100S, either on the current install, or on a live USB boot (which I just tried).

I did notice that on the USB boot on the 120S that several rtsx modules were loaded, while on both the installed, and USB boot of my 100S no rtsx modules are loaded. Would these modules not being loaded have an impact ?

output of lsblk:

NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0 58.2G  0 disk
├─mmcblk0p1  179:1    0  512M  0 part /boot/efi
└─mmcblk0p2  179:2    0 57.8G  0 part /
mmcblk0boot0 179:8    0    4M  1 disk
mmcblk0boot1 179:16   0    4M  1 disk


Title: Re: micro SD cards not recognized
Post by: firenice03 on March 10, 2021, 04:33:33 PM
@adml

Note here https://askubuntu.com/questions/939410/lenovo-100s-14ibr-microsd-doesnt-show (https://askubuntu.com/questions/939410/lenovo-100s-14ibr-microsd-doesnt-show)
a slight difference in kernel 4.10 (broke) vs 4.8 (worked) ..

Code: [Select]
Linux TRCD-Kangaroo 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I'm running LL5.2 from an SD Card/MMC

Code: [Select]
lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0 29.1G  0 disk
├─mmcblk0p1  179:1    0  100M  0 part /boot/efi
├─mmcblk0p2  179:2    0   16M  0 part
├─mmcblk0p3  179:3    0 28.6G  0 part
└─mmcblk0p4  179:4    0  450M  0 part
mmcblk0boot0 179:8    0    4M  1 disk
mmcblk0boot1 179:16   0    4M  1 disk
mmcblk1      179:24   0 29.7G  0 disk
├─mmcblk1p1  179:25   0 27.8G  0 part /
└─mmcblk1p2  179:26   0  1.9G  0 part [SWAP]


I would use Lite Tweaks - Kernel Installer to Test Kernel 4.8 - select and install - reboot, select Advanced in Grub to change to 4.8 all ow to finish booting...
If so = :)
If not ... Can remove with Kernel Remover will need to reboot and choose another kernel prior - remover will not remove the in use kernel....

Title: Re: micro SD cards not recognized
Post by: adml on March 10, 2021, 05:54:17 PM
@firenice03

I'm starting to think that this laptop must be jinxed.

When I try to install 4.8.0 I get a message that there was an error downloading and installing the kernel. The message also asks if I want to view the logs. I click yes and the log window comes up, but, it is empty, there's nothing at all in the log. Have you ever heard of this occurring before ?
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 10, 2021, 10:32:58 PM
@adml
Not with Kernel tools - I have used multiple times...

Did you install LL5.x with UEFI enabled and SecureBoot disabled -- this would be the ideal/preferred... For 64-bit UEFI...
OR
Did you install "Legacy" where UEFI is disabled (hence legacy BIOS) ?

If secureboot is enable - the card will not be read at boot and ?maybe? be causing some grief....
I'm also seeing where the 100S may have came with a 64 bit OS 32 bit UEFI (hybrids) - again curious on install...

hhhmmmm
Title: Re: micro SD cards not recognized
Post by: adml on March 10, 2021, 11:04:21 PM
@firenice03

LL 5.2 was installed on the 100S-14IBR with UEFI enabled and Secure Boot disabled.

Can you point me to where you are seeing the 64/32 information, this is the first that I've heard of it for this PC.

Interestingly, I have LL 5.2 installed on an ASUS X205TA which is a 64/32 hybrid. The installation went off without a hitch, all I needed to do was to change one setting in Rufus when copying the image to the USB drive. The card reader on the ASUS does work, however bluetooth does not work, but, that's another story...

Given the above information regarding UEFI and Secure Boot, any thoughts on what I can try next for the card reader ? Also, what do you make of me being unable to switch kernels and the log being blank ? I just tried Lite Tweaks again and the result was exactly the same.
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 10, 2021, 11:15:46 PM
@adml
I'll try to find where I saw the 32bit... its a long shot... If you look here you can see the commands to install the kernels...
https://www.linuxliteos.com/forums/linux-lite-software-development/linux-lite-kernel/msg55015/#msg55015 (https://www.linuxliteos.com/forums/linux-lite-software-development/linux-lite-kernel/msg55015/#msg55015)



**UPDATE**
Came across this https://askubuntu.com/questions/787088/sd-card-reader-not-detected-in-ubuntu-16-04 (https://askubuntu.com/questions/787088/sd-card-reader-not-detected-in-ubuntu-16-04)
may also be worth a try.. the reinstall udisks...
Title: Re: micro SD cards not recognized
Post by: WytWun on March 11, 2021, 07:58:18 AM
The issue with the 32bit UEFI on 64bit capable systems is fairly specific to systems with the intel Baytrail/Cherrytrail Atom CPUs - such as the 100s-11IBY I mentioned (and have posted about in other UEFI related threads).  The OP's 100s-14IBR has an intel Braswell CPU and I believe all those have 64bit UEFI.

As best I can tell, there's something very specifically different with the OP's system which is going to require a fairly detailed review using all the details available from tools like lspci to identify.  As the Lenovo Windows card reader driver is for Realtek hardware, the intel SD card reader support mentioned in other sources is at best only part of the picture and likely completely misleading.  There is a Realtek MMC PCI (as well as USB) driver included in the config as a module.  The final answer is I'd guess likely to involve having to specify a kernel option via Grub, but exactly what that would be needs more research.

I'd hoped my 100s-IBY would be close enough hardware-wise to help, but it apparently isn't :(
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 11, 2021, 07:56:52 PM
Perhaps in my searching - the models crisscrossed relating to the 32-bit.. .
As in the link - I think the earlier kernel may have the driver loaded - which if tests out, it may hopefully point out that drive - then attempting to add to a later...

But then becomes - why cant a different kernel be loaded..

Title: Re: micro SD cards not recognized
Post by: adml on March 11, 2021, 09:13:01 PM
@WytWun

Thank you for the input, and the help. As you will see in my next post, I can't install the 4.8.0 kernel, to see if that rectifies the problem, from either Lite Tweaks or the command line.


Title: Re: micro SD cards not recognized
Post by: adml on March 11, 2021, 09:20:57 PM
@firenice03

Reinstalled udisks and there was no change.

Tried to install the 4.8.0 kernel from the command line and the results are below. I'm thinking that the reason that I couldn't install the kernel from Lite Tweaks is the same as the reason listed below, although the Lite Tweaks log was blank. Would you interpret the command line messages for me ? They are over my head at this point in time. Would a reinstall of LL 5.2 correct what is showing in the command line messages, which would then allow me to install 4.8.0 to give it a try ?

command line output:

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                     
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                     
Hit:4 http://repo.linuxliteos.com/linuxlite emerald InRelease                                                                         
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                   
Hit:6 https://deb.opera.com/opera-stable stable InRelease                                                                 
Hit:7 http://archive.canonical.com/ubuntu focal InRelease                                           
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.8.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 12, 2021, 12:20:15 PM
@adml


Looks like the kernel couldn't install a dependency..
You can install with the following..
Code: [Select]
sudo apt install libssl1.0.0

If it says it already installed you can use remove to uninstall then re-install...

Code: [Select]
sudo apt remove libssl1.0.0


After try the kernel install once more...


If continues with
Quote
E: Unable to correct problems, you have held broken packages



Try... the below to see what's held...
Code: [Select]
dpkg --get-selections | grep hold
Title: Re: micro SD cards not recognized
Post by: adml on March 12, 2021, 02:03:51 PM
@firenice03

I tried to install the file and got the following result:

 ~  sudo apt install libssl1.0.0
[sudo] password for:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libssl1.0.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0.0' has no installation candidate


I went ahead and ran the uninstall command and received the expected result:

 ~  100  sudo apt remove libssl1.0.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libssl1.0.0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.


It seems that the 4.8.0 kernel is asking for a file that isn't available, is that correct ?

I then went ahead and tried to install 4.8.0 from both Lite Tweaks and the command line, getting the exact same results as before:

Lite Tweaks said there was an error downloading and installing.

Command line gave the following again:


Hit:1 http://repo.linuxliteos.com/linuxlite emerald InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                 
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease                                                                         
Hit:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                           
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                     
Hit:6 http://archive.canonical.com/ubuntu focal InRelease                                               
Hit:7 https://deb.opera.com/opera-stable stable InRelease                                         
Reading package lists... Done               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.8.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.


I then tried to find out what was held and the command line returned the following:

  ~  dpkg --get-selections | grep hold
  ~  0  1  

Does this mean that nothing is being held even though the kernel install attempt says a broken package is being held ?


Title: Re: micro SD cards not recognized
Post by: firenice03 on March 13, 2021, 01:44:22 PM
@adml
so libssl1.0.0 may have been obsoleted in favor of libssl1.1; which should be installed but none the less may not hurt to try - to uninstall/reinstall..

What's the output of an update?
Code: [Select]
sudo apt update

If it successfully resolves updates - go ahead and update.


If not - try
Code: [Select]
sudo apt autoremove

This should clean up..
Title: Re: micro SD cards not recognized
Post by: adml on March 13, 2021, 03:06:49 PM
@firenice03

Trying to remove libssl1.1 returns the following:

 ~  sudo apt remove libssl1.1
[sudo] password for:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libbluray-bdj : Depends: default-jre-headless but it is not going to be installed or
                          java2-runtime-headless
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Trying to reinstall libssl1.1 returns this:

 ~  100  sudo apt install libssl1.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libssl1.1 is already the newest version (1.1.1f-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Output of an update:

 ~  sudo apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                     
Hit:3 http://repo.linuxliteos.com/linuxlite emerald InRelease                                                                         
Hit:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                   
Hit:5 http://archive.canonical.com/ubuntu focal InRelease                                                                             
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                 
Hit:7 https://deb.opera.com/opera-stable stable InRelease           
Fetched 109 kB in 3s (35.7 kB/s)                       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

Output of autoremove:

 ~  sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

An attempt to install kernel 4.8.0 gives the same result as previous attempts:

 ~  sudo apt-get update && sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0 -y
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://archive.canonical.com/ubuntu focal InRelease                                                                             
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                     
Hit:4 http://repo.linuxliteos.com/linuxlite emerald InRelease                                                   
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                             
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                 
Hit:7 https://deb.opera.com/opera-stable stable InRelease
Fetched 109 kB in 3s (39.5 kB/s)                         
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.8.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

There seems to be some circular reasoning going on in the kernel install attempts. A version of libssl > 1.0.0 is supposed to equal 1.0.0. However, even though 1.1 is installed, it seems that the kernel install attempts do not recognize it. Is this a fair assessment or am I missing something ?









Title: Re: micro SD cards not recognized
Post by: Şerban S. on March 14, 2021, 06:38:35 AM
I have Linux Lite 5.2 installed [...]
Any ideas on how I can get Linux Lite to recognize micro SD cards ?

Hi! :)

I have a different approach regarding this matter.
Since I had myself this kind of trouble and the rate of change in storage media enhancements will always bring incompatibilities of all kinds regarding OS's and machines, my recommandation is to use a CARD READER, specifically, an EXTERNAL one.
I have a Thompson and I never had this kind of trouble for at least 4 years and I've been using many OS distros for testing purposes and at least 5 different machines.
Here's what lsusb command reads:
Code: [Select]
Bus 001 Device 005: ID 1307:0361 Transcend Information, Inc. CR-75: 51-in-1 Card Reader/Writer [Sakar]
It worked fine on all of the machines and all OSes did a great job in using it.
Unfortunately, I am unable to give specific details since nowadays MicroSD format got widely spread and I have many of those, and I am using those both in phones and computers, so those have different specs, such as speed, class, capacity.
Keepping track of al those specs, is more of a useless headache than something doable.
On the other hand, keeping track of those specs, is a requirement if you go on the path of drivers for the internal reader, since drivers are frequently updated, for the very specific reason of supporting the new types of media.
From my perspective, using an external card reader, is much easier than fiddling with all those specs, drivers and so.
Given that a good device ranges from $2,5 up to at most $15, I guess an external card reader, gets the best deal for the buck.
As I said before, I never had trouble when I bought a new media and I never bothered to keep track of its specs. Just plugged it in and got the job done, so far.
Might have trouble sometime though, I'm very much aware of this, but the thinking is simple: keep track of the media that got me into trouble, buy a new device and that is all.
The old one is still usable? Great! I'll keep using it for the old media.
I have many of those SD cards, starting from my first photo camera, back in 1999, which used 256 MB SD cards :)
Best thing is, you can move the reader on any available machine and use whatever SD you need.
Further more, I have a very old card reader (I bought it in 2012 I guess) and still works with most cards, including MicroSD. Looks that the MicroSD cards are more spread nowadays than the full sized ones so, I buy whatever I find. That helps me with the phone data storage also.
USAGE:
I have been using those distros, extensively (on a daily basis, primary OS):
Linux Mint 15.x ... 19.x (5 years, daily use, 2012 - 2017);
Linux Lite 4.x ... 5.2 (over 3 years, 2017 - till NOW).
Other distros: Manjaro, Ubuntu Studio, Ubuntu, Solus, Deepin, Zorin and some others.
OTHER USES:
I also have two keyboards (Korg PA500 ORT and Roland FA06) that use for storage SD cards.
I also use SD cards for setting up a secondary OS, or even the same installation (Linux Lite now) with a different configuration for specific tasks. Using a SD card + Reader  instead of an external HDD, is much more convenient, especially when travelling away from home. Saves space and it's handy! :) Besides, it saves storage space on HDD/SSD without giving up a certain installation you found very convenient to use for the trivial reason of lack of storage space. When properly set up, Linux can reuse the /swap and /home partitions or maybe other cusom ones, from the main installation.
I read somewhere on this forum that some SD cards are faster even than a SSD. I assume that the latest models, though.

Hope this helps! :)
All the best! :)

Title: Re: micro SD cards not recognized
Post by: firenice03 on March 14, 2021, 05:20:45 PM
@adml
The only other suggestion would be to try other kernels in the 4.x series - I attempted 4.8 and received an error - but 4.15 did install...
Title: Re: micro SD cards not recognized
Post by: adml on March 15, 2021, 09:34:48 PM
@Şerban S.

Thank you for the reply. Yes, an external reader would eliminate all of these problems, but the manner in which I use this PC makes an external reader impractical. It's also why I would prefer to not even use a low profile USB drive if I can avoid it.

Please read my next post for a solution, sort of.......

Thanks again for the response.


Title: Re: micro SD cards not recognized
Post by: adml on March 15, 2021, 11:18:49 PM
@firenice03

Since the kernel installer in Lite Tweaks doesn't work for 4.8 I looked for a distro that used 4.8 and booted a live USB of Ubuntu 16.10. However, the microSD card was still not recognized.

Your most recent post got me thinking about these comments again...

https://askubuntu.com/questions/939410/lenovo-100s-14ibr-microsd-doesnt-show

...and I remembered that there was a bug report linked in those comments...

https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/1710023

...in which someone reported success with a kernel other than 4.8. Looking at the bug report again I saw that the kernel mentioned was 4.4. I then tried to install 4.4 using Lite Tweaks but got the exact same error as I did when trying to install 4.8. Additionally, attempting to install 4.4 via the command line gave the exact same error as before also. That has to be some kind of bug doesn't it, claiming that a file is not installable when it is actually already installed ?

I then used the Distrowatch search function to give me a list of distros using 4.4. There turned out to be quite a few of them, but not all are still available for download. One of the ones still available however is Linux Lite 3.8. I booted a live USB of LL 3.8, verified that it was using 4.4, and then inserted a microSD card. I didn't expect it to show up but I was pleasantly surprised to see it appear on the desktop.

I think the last two posts in that bug report are very interesting. The next to last post says that the bug report is being labeled as expired. The last post seems to question why it's being listed as expired when the bug still exists. I guess that the bug is never going to be fixed.

Of course this story wouldn't be this story without a downside. LL 3.8 reaches EOL in less than a month. Do you think there's any chance that this kernel install issue will be rectified in 5.4 ?

 
Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 02:48:00 AM
I will test our 4.8 kernel in a VM. 32bit or 64bit?

Sent from my mobile phone using Tapatalk

Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 03:22:00 AM
@Jerry

Thank you, it's 64 bit. The 4.4 kernel of Linux Lite 3.8 is the one that solved the issue for me. Could you test the 4.4 kernel ?
Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 03:47:05 AM
If the 4.4 worked, why does it need testing?

Sent from my mobile phone using Tapatalk

Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 04:25:31 AM
@Jerry

Trying to install kernel 4.4, as well as kernel 4.8, using Lite Tweaks results in a message that there was a download and installation error, however the log is blank.

Trying to install kernel 4.4, and also 4.8, from the command line gives the below output for both, just substitute 4.4.0 and 4.8.0 for the appropriate attempts.

As libssl1.1 is installed the issue is, why are the kernel install attempts failing ? @firenice03 has also received an error message when attempting an install.

The previously linked post and bug report indicated that kernel 4.4 would recognize the microSD card. However, since kernel 4.4 is not installable from either Lite Tweaks, or the command line, I booted a live USB of Linux Lite 3.8 since it uses kernel 4.4, and the microSD card was recognized. But, Linux Lite 3.8 is about to reach EOL and kernel 4.4, as well as 4.8, are not installable under Linux Lite 5.2 because of the message regarding libssl, even though libssl1.1 is already installed.

In short, I found by live booting Linux Lite 3.8 that kernel 4.4 recognizes the microSD card, but kernel 4.4, and also 4.8, are not installable in Linux Lite 5.2 because of the error involving libssl, even though that file is already installed. For some reason the kernel install attempts are not recognizing that libssl 1.1 is installed.

command line output:

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                     
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                     
Hit:4 http://repo.linuxliteos.com/linuxlite emerald InRelease                                                                         
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                   
Hit:6 https://deb.opera.com/opera-stable stable InRelease                                                                 
Hit:7 http://archive.canonical.com/ubuntu focal InRelease                                           
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.4.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
Title: Re: micro SD cards not recognized
Post by: Şerban S. on March 16, 2021, 06:35:42 AM
@Şerban S.
[...] Please read my next post for a solution, sort of... [...]

Hi, again! :)
Glad to help if I can! :)
It's difficult for me to figure out why is that so difficult to use an external card reader.
The chosen path, (kernel change) has an obvious downside: all kernels and even the OSes, have an EOL that is mostly very close to "NOW".
Assuming Jerry will find the time to fix the kernel bug (and I am sure it's a taugh task...). you will end up with a working OLD system, that is rapidly getting to an end (EOL).
Given this situation, the only available choice is to give up any internet related tasks, since the software is already outdated and this will lead to an endless list of errors of all kinds, in time.
I'd rather find a solution to use a newer version and the external reader would be another solution.
Since the information about the machine is missing, it's difficult to find a working solution for a "black box".
Maybe you can spare some minutes to issue an
Code: [Select]
inxi -c 0 -ACdGMNSz
This command will give us enough info to search and eventually, find a "scalable" solution. I used quotes, since "scalable" here, referes only to a newer OS version.
Since I assume the computer is old, maybe would be useful as an idea, if I tell you that I've been using a Lenovo ThinkPad T400, standard configuration (4 GB RAM DDR II), for all kind of tasks, including video and audio editing and the last installation, was Linux Lite 5.0 and worked fine. I was lazy enough though, to skip the upgrade, since I now use the Dell T1700 as primary machine.
Another issue that might prevent you from using an external card reader, might be the number of USB slots. Well, a good hub solves this. I use lots of USB devices so I had to deal with that myself.
But unless we know the exact configuration of the machine, it's all guesswork...

That is all I could figure out so far.
Hope you'll be "up and running" ASAP! :)

Best regards!
Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 08:01:40 AM
After much analysis, it seems that something in the kernel build process for kernels 4.10 and above has changed.

Could you try this please:

Code: [Select]
sudo apt --fix-broken install
then try the Kernel Installer again for 4.8 in Linux Lite 5.2
Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 11:12:57 AM
@Şerban S.

Thank you for your help. Below is the output of inxi -c 0 -ACdGMNSz

  ~  inxi -c 0 -ACdGMNSz
System:    Kernel: 5.4.0-67-generic x86_64 bits: 64 Desktop: Xfce 4.14.2 Distro: Linux Lite 5.2 LTS
Machine:   Type: Laptop System: LENOVO product: 80R9 v: Lenovo ideapad 100S-14IBR serial: <filter>
           Mobo: LENOVO model: Aristotle 14 v: SDK0J91145 WIN serial: <filter> UEFI: Lenovo v: E4CN13WW date: 09/11/2015
CPU:       Topology: Dual Core model: Intel Celeron N3050 bits: 64 type: MCP L2 cache: 1024 KiB
           Speed: 719 MHz min/max: 480/2160 MHz Core speeds (MHz): 1: 940 2: 485
Graphics:  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics driver: i915 v: kernel
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa resolution: 1366x768~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (BSW) v: 4.6 Mesa 20.2.6
Audio:     Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio
           driver: snd_hda_intel
           Sound Server: ALSA v: k5.4.0-67-generic
Network:   Device-1: Intel Wireless 3160 driver: iwlwifi
Drives:    Local Storage: total: 58.24 GiB used: 21.99 GiB (37.8%)
           ID-1: /dev/mmcblk0 model: CGND3R size: 58.24 GiB
           Message: No Optical or Floppy data was found.



Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 11:20:20 AM
@Jerry

Below is the output of sudo apt --fix-broken install

After running sudo apt --fix-broken install I tried to install kernel 4.8 using Lite Tweaks and received the below message in an onscreen window:

An error occurred while downloading and
installing Kernel Version 4.8.0.

Would you like to review the logs?


Clicking yes brought up the log, but it was blank.

I then tried to install kernel 4.4 using Lite Tweaks and received the same message, applicable to 4.4.

An error occurred while downloading and
installing Kernel Version 4.4.0.

Would you like to review the logs?


Clicking yes brought up the log again, but it was also blank.

Output of sudo apt --fix-broken install

  ~  sudo apt --fix-broken install
[sudo] password for:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
  linux-modules-extra-5.4.0-66-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 11:24:15 AM
Install the kernel and headers via the command line to get the actual error message.

Sent from my mobile phone using Tapatalk

Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 11:29:00 AM
Code: [Select]
sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0
Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 12:04:24 PM
@Jerry

I just now ran both---

sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0

and

sudo apt-get install linux-headers-linuxlite-4.4.0 linux-image-linuxlite-4.4.0

...the output of both is listed below.

Previously, at the suggestion of @firenice03, I ran the following---

dpkg --get-selections | grep hold

---the output (just now) of that is also listed below.


  ~  sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0
[sudo] password for:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.8.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.




  ~  100  sudo apt-get install linux-headers-linuxlite-4.4.0 linux-image-linuxlite-4.4.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.4.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.




  ~  100  dpkg --get-selections | grep hold
  ~  0  1 







Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 03:52:27 PM
When it says broken packages in the error message, run the broken command, then try the kernel install.

Sent from my mobile phone using Tapatalk

Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 05:20:53 PM
@Jerry

I ran---

sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0

then ran---

sudo apt --fix-broken install

and then ran the kernel install once again---

sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0

no changes from the previous attempts. The output of all 3 are below.


  ~  sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0
[sudo] password for:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.8.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.


  ~  100  sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
  linux-modules-extra-5.4.0-66-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


  ~  sudo apt-get install linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-linuxlite-4.8.0 : Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
Title: Re: micro SD cards not recognized
Post by: Jerry on March 16, 2021, 07:36:48 PM
Try:

Code: [Select]
apt download linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0
make sure they are the only .deb packages in your Home, then do:

Code: [Select]
sudo dpkg -i *.deb
provide any error output.
Title: Re: micro SD cards not recognized
Post by: adml on March 16, 2021, 10:22:35 PM
@Jerry

I ran both, the output of each is listed below.

After running the first one (headers/image) I verified that they were the only .deb files in Home before running the next one.


  ~  apt download linux-headers-linuxlite-4.8.0 linux-image-linuxlite-4.8.0
Get:1 http://repo.linuxliteos.com/linuxlite emerald/main amd64 linux-headers-linuxlite-4.8.0 amd64 0010 [12.0 MB]
Get:2 http://repo.linuxliteos.com/linuxlite emerald/main amd64 linux-image-linuxlite-4.8.0 amd64 0010 [64.5 MB]                       
Fetched 76.5 MB in 33s (2,318 kB/s)


                                                                                                 
 ~  sudo dpkg -i *.deb
[sudo] password for:
Selecting previously unselected package linux-headers-linuxlite-4.8.0.
(Reading database ... 360584 files and directories currently installed.)
Preparing to unpack linux-headers-linuxlite-4.8.0_0010_amd64.deb ...
Unpacking linux-headers-linuxlite-4.8.0 (0010) ...
Selecting previously unselected package linux-image-linuxlite-4.8.0.
Preparing to unpack linux-image-linuxlite-4.8.0_0010_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
Done.
Unpacking linux-image-linuxlite-4.8.0 (0010) ...
dpkg: dependency problems prevent configuration of linux-headers-linuxlite-4.8.0:
 linux-headers-linuxlite-4.8.0 depends on libncurses5 (>= 6); however:
  Package libncurses5 is not installed.
 linux-headers-linuxlite-4.8.0 depends on libssl1.0.0 (>= 1.0.0); however:
  Package libssl1.0.0 is not installed.
 linux-headers-linuxlite-4.8.0 depends on libtinfo5 (>= 6); however:
  Package libtinfo5 is not installed.

dpkg: error processing package linux-headers-linuxlite-4.8.0 (--install):
 dependency problems - leaving unconfigured
Setting up linux-image-linuxlite-4.8.0 (0010) ...

 Hmm. There is a symbolic link /lib/modules/4.8.0-linuxlite/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/4.8.0-linuxlite/build


 Hmm. The package shipped with a symbolic link /lib/modules/4.8.0-linuxlite/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/4.8.0-linuxlite/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
update-initramfs: Generating /boot/initrd.img-4.8.0-linuxlite
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.8.0-linuxlite /boot/vmlinuz-4.8.0-linuxlite
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found background: /boot/grub_linux_lite.png
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found background image: /boot/grub_linux_lite.png
Found linux image: /boot/vmlinuz-5.4.0-67-generic
Found initrd image: /boot/initrd.img-5.4.0-67-generic
Found linux image: /boot/vmlinuz-5.4.0-66-generic
Found initrd image: /boot/initrd.img-5.4.0-66-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-4.8.0-linuxlite
Found initrd image: /boot/initrd.img-4.8.0-linuxlite
Adding boot menu entry for UEFI Firmware Settings
done
Errors were encountered while processing:
 linux-headers-linuxlite-4.8.0



Title: Re: micro SD cards not recognized
Post by: Jerry on March 17, 2021, 03:00:28 AM
Code: [Select]
sudo apt-get install - f
Sent from my mobile phone using Tapatalk
Title: Re: micro SD cards not recognized
Post by: adml on March 17, 2021, 11:17:47 AM
@Jerry


I ran sudo apt-get install -f (no space) and it returned the following:


 ~  100  sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-66 linux-headers-5.4.0-66-generic linux-image-5.4.0-66-generic linux-modules-5.4.0-66-generic
  linux-modules-extra-5.4.0-66-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-headers-linuxlite-4.8.0
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 55.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 387576 files and directories currently installed.)
Removing linux-headers-linuxlite-4.8.0 (0010) ...

Title: Re: micro SD cards not recognized
Post by: adml on March 17, 2021, 03:25:53 PM
@Jerry

I had initially run sudo apt-get install - f (with a space) before running it without a space (-f).

I just now ran it again with the space (- f) and it returned the exact same message as the first time:


sudo apt-get install - f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package f

Title: Re: micro SD cards not recognized
Post by: firenice03 on March 17, 2021, 04:08:59 PM
@Jerry

I had initially run sudo apt-get install - f (with a space) before running it without a space (-f).

I just now ran it again with the space (- f) and it returned the exact same message as the first time:


sudo apt-get install - f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package f



@adml

No space.... '-f'
Hence why it cant find... F
Quote
E: Unable to locate package f


You can copy/paste the code below..


Code: [Select]
sudo apt-get install -f
Title: Re: micro SD cards not recognized
Post by: adml on March 17, 2021, 04:45:53 PM
@firenice03

Thank you. A few messages back I posted the results of -f (no space) as I thought that's what he wanted to see. But, I started thinking maybe he really did want - f (space) because that's what was in his message so I went ahead and posted it also.

It sounds like the microSD card issue let him discover an issue with the kernel installs.


Title: Re: micro SD cards not recognized
Post by: Şerban S. on March 18, 2021, 04:35:15 AM
@Şerban S.
[...] Lenovo ideapad 100S-14IBR [...] Intel Celeron N3050 [...]

Hi! :)
Thanks for taking the time to provide the info.
Now... given the data, it looks like we have a machine very much like my ASUS X200MA.
My main problem with this machine was/is the amount of USB ports (slots). Only 3 and I use a mouse and an external keyboard. While I never noticed trouble using MicroSDs, from time to time, I still need to use a card reader, since sometimes I need to access data from more than 1 card...
HOW DID OVERCOME THE LACK OF USBs:
Given the configuration, I assume you have at least an USB 3.0 port (I have one).
This allows you to use an USB 3.0 Hub that will expand the ports from 3 to 6.
You can use this way any external USB device you might need at some point.
From my experience, using this kind of hub, allows you to perform low level backups (CloneZilla) without causing issues related to the USB storage devices, even if you use a keybord and a mouse. I tested that many times and so far, it worked OK.
However...
Before having the USB 3.0 hub, I encountered trouble when using a USB 2.0 hub for the mouse and keyboard. After starting CloneZilla, the reading devices routine had trouble identifying the external HDD so I had to switch devices and ports, until the problem got solved which, I must admit, was awfully annoying...
Further more, sometimes I had trouble booting CloneZilla, because the ASUS netbook has an UEFI firmware exactly like the Ideapad we're analysing here.
My best guess is that the real problem is the way the IRQs are managed. And this looks to be someting done on purpose by the manufacturers.
Although there are many IRQs available, there are only 3 or 4 of them in use and at least one, is SHARED, which leads to countless impredictible trouble, related to the devices that are attached to the computer through various ports.
One of those kind of troubles, is the way the CARD READER works (or... fails to do so...).
Usually, the TouchPad and the card reader, share the SAME IRQ with one USB port, even with two, which leads to hardware conflicts more often than expected, due to drivers resources overlap.
The USB 3.0 hub I'm refering to, is about 12 euros (meaning some $13 or $14 at most) so this might solve many other problems, beside the SD cards reading one.
With those said. I hope this info will help you reconsider your strategiy regarding the use of an external card reader.
As Jerry pointed before, the kernel problem looks difficult to solve. As I mentioned, my best guess is that the real problem is the IRQ assignment, which is also a trouble extremely difficult to solve if it is by design (hardware limitation), which I suspect is on purpose, namely, to force us to buy something more expensive.
My best regards! :)
Title: Re: micro SD cards not recognized
Post by: adml on March 22, 2021, 01:06:25 PM
@Şerban S.

Thank you for the response, and your thoughts about it being an IRQ issue.

My thinking is that it is a kernel issue. Since the card reader is recognized when using kernel 4.4, but not recognized when using kernels 4.1, 4.8, or 5.4, there has to have been changes to the kernels at some point, maybe at more than one point, in time. The card reader may, or may not, be recognized when using other kernels, the ones mentioned above are the only ones that I have tried. In short, since the card reader is recognized in one kernel, but not others, wouldn't that point to the kernel being the cause ?

Hopefully Jerry can get the kernel change feature of Lite Tweaks working.
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 22, 2021, 02:02:35 PM
@adml
You say the card reader is working in the 4.4 kernel?
With it working...
Running through some of those initial commands... inxi etc etc, may give insight to the driver its using - perhaps it could be loaded into the later releases or compiled...??.,... its a thought....


May try
Code: [Select]
inxi -Fxz
Title: Re: micro SD cards not recognized
Post by: adml on March 23, 2021, 06:56:46 PM
@firenice03

Yes, the card reader is recognized when using a live USB of Linux Lite 3.8, which uses the 4.4 kernel. I'd like to install the 4.4 kernel in Linux Lite 5.2 but as we've found out, there's a problem. Jerry has discovered that something has been changed in the kernel build process. This is apparently what is disallowing different kernels to be installed.

Below are the outputs of...

inxi -Fxz

and

lsblk

...when using a live USB of Linux Lite 3.8, with the card reader mounted and a 32GB card inserted.

Is there anything else that I could post that might be helpful ?


linux@linux:~$ inxi -Fxz
System:    Host: linux Kernel: 4.4.0-112-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Xfce 4.12.3 (Gtk 2.24.28)
           Distro: Ubuntu 16.04 xenial
Machine:   System: LENOVO product: 80R9 v: Lenovo ideapad 100S-14IBR
           Mobo: LENOVO model: Aristotle 14 v: SDK0J91145 WIN Bios: Lenovo v: E4CN13WW date: 09/11/2015
CPU:       Dual core Intel Celeron N3050 (-MCP-) cache: 1024 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6399
           clock speeds: max: 2160 MHz 1: 1037 MHz 2: 1439 MHz
Graphics:  Card: Intel Device 22b1 bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) Resolution: [email protected]
           GLX Renderer: Mesa DRI Intel HD Graphics 400 (Braswell)
           GLX Version: 3.0 Mesa 17.2.4 Direct Rendering: Yes
Audio:     Card Intel Device 2284 driver: snd_hda_intel bus-ID: 00:1b.0 Sound: ALSA v: k4.4.0-112-generic
Network:   Card: Intel Wireless 3160 driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
Drives:    HDD Total Size: 31.9GB (3.4% used) ID-1: /dev/mmcblk0 model: N/A size: 62.5GB
           ID-2: USB /dev/sda model: Flash_Disk size: 31.9GB temp: 0C ID-3: /dev/mmcblk1 model: N/A size: 31.3GB
Partition: ID-1: / size: 857M used: 73M (9%) fs: overlay dev: N/A
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 37.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 183 Uptime: 8 min Memory: 739.4/1713.9MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35



linux@linux:~$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda            8:0    1 29.7G  0 disk
└─sda1         8:1    1 29.7G  0 part /cdrom
loop0          7:0    0  979M  1 loop /rofs
mmcblk0rpmb  179:24   0    4M  0 disk
mmcblk0boot0 179:8    0    4M  1 disk
mmcblk0boot1 179:16   0    4M  1 disk
mmcblk0      179:0    0 58.2G  0 disk
├─mmcblk0p1  179:1    0  512M  0 part
└─mmcblk0p2  179:2    0 57.8G  0 part
mmcblk1      179:32   0 29.1G  0 disk
└─mmcblk1p1  179:33   0 29.1G  0 part /media/linux/0403-0201


Title: Re: micro SD cards not recognized
Post by: Jerry on March 23, 2021, 07:01:51 PM
Try the Ubuntu ones here - https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-wily/ (https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-wily/)

linux-headers-4.4.0-040400_4.4.0-040400.201601101930_all.deb
linux-headers-4.4.0-040400-generic_4.4.0-040400.201601101930_amd64.deb
linux-image-4.4.0-040400-generic_4.4.0-040400.201601101930_amd64.deb

https://ubuntuhandbook.org/index.php/2016/01/how-to-install-linux-kernel-4-4-in-ubuntu/
Title: Re: micro SD cards not recognized
Post by: adml on March 24, 2021, 11:54:32 AM
@Jerry

Thank you for the links.

Per the instructions in the last link I downloaded the files via the command line and then ran sudo dpkg -i *.deb to install. Below is the output. The file libssl1.0.0 is still the sticking point, even though 1.1 is installed. I rebooted but inxi shows that I'm still using 5.4.0-67-generic x86_64.

Is there a way to get to the Grub screen during boot ? I'm thinking that it's a certain key(s) press but I don't know what it is.

sudo dpkg -i *.deb
[sudo] password for:
Selecting previously unselected package linux-headers-4.4.0-040400.
(Reading database ... 366242 files and directories currently installed.)
Preparing to unpack linux-headers-4.4.0-040400_4.4.0-040400.201601101930_all.deb ...
Unpacking linux-headers-4.4.0-040400 (4.4.0-040400.201601101930) ...
Selecting previously unselected package linux-headers-4.4.0-040400-generic.
Preparing to unpack linux-headers-4.4.0-040400-generic_4.4.0-040400.201601101930_amd64.deb ...
Unpacking linux-headers-4.4.0-040400-generic (4.4.0-040400.201601101930) ...
Selecting previously unselected package linux-image-4.4.0-040400-generic.
Preparing to unpack linux-image-4.4.0-040400-generic_4.4.0-040400.201601101930_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
Done.
Unpacking linux-image-4.4.0-040400-generic (4.4.0-040400.201601101930) ...
Setting up linux-headers-4.4.0-040400 (4.4.0-040400.201601101930) ...
dpkg: dependency problems prevent configuration of linux-headers-4.4.0-040400-generic:
 linux-headers-4.4.0-040400-generic depends on libssl1.0.0 (>= 1.0.0); however:
  Package libssl1.0.0 is not installed.

dpkg: error processing package linux-headers-4.4.0-040400-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-image-4.4.0-040400-generic (4.4.0-040400.201601101930) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
 * dkms: running auto installation service for kernel 4.4.0-040400-generic                                                      [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-040400-generic
modinfo: ERROR: could not get modinfo from 'crc32': No such file or directory
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-040400-generic /boot/vmlinuz-4.4.0-040400-generic
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found background: /boot/grub_linux_lite.png
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found background image: /boot/grub_linux_lite.png
Found linux image: /boot/vmlinuz-5.4.0-67-generic
Found initrd image: /boot/initrd.img-5.4.0-67-generic
Found linux image: /boot/vmlinuz-5.4.0-66-generic
Found initrd image: /boot/initrd.img-5.4.0-66-generic
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-4.8.0-linuxlite
Found initrd image: /boot/initrd.img-4.8.0-linuxlite
Found linux image: /boot/vmlinuz-4.4.0-040400-generic
Found initrd image: /boot/initrd.img-4.4.0-040400-generic
Adding boot menu entry for UEFI Firmware Settings
done
Errors were encountered while processing:
 linux-headers-4.4.0-040400-generic

Title: Re: micro SD cards not recognized
Post by: Jerry on March 24, 2021, 06:32:19 PM

Is there a way to get to the Grub screen during boot ? I'm thinking that it's a certain key(s) press but I don't know what it is.


Esc key or hold down Shift key.
Title: Re: micro SD cards not recognized
Post by: Şerban S. on March 25, 2021, 05:27:40 AM
@Şerban S.
[...]My thinking is that it is a kernel issue. [...] since the card reader is recognized in one kernel, but not others, wouldn't that point to the kernel being the cause ?

Hello, again! :)
Obviously, the management of the drivers and the IRQ assignment, is a kernel job. At least... in theory.
Practical issues occur though... Since we're dealing with patented hardware, the idilic theory of "open sourced architecture" seems to fail. See the Intel CPUs story. In any patented hardware, there are hidden "features" that serve a certain agenda, closely related to big money making. It is impossible to predict each and every small "twist" in each revision. Now, given the fact that Windows is commercial software, they have access to technical specs that are unavailable to the OpenSource world and this is well known for decades. This is why under Windows, it works. See the NVidia case for one.
As for what is happening under Linux, if it is a kernel issue (I too belive it is! :( ), patching might prove an extremely difficult task since newer kernels include more and more hardware support and sometimes, support for old hardware is wiped out, due to conflicts with the new hardware support. This leaves only one option: Tweaking the kernel with the blacklist option in the config file. This will allow ignoring a certain driver and install/load the driver that actually does the job properly, even if it is said to be "old" or "deprecated".
This is nothing like a child's play and should be done with a great deal of attention. Messing with kernel configuration, might render the machine unusable and this leads to reinstallation. In some cases, might render the hardware unusable or maybe worse, might damage it (for video cards, that might happen).

With those being said, the only thing that remains to do as I see things, is hope for a good fix from Jerry, although this will get you stucked with the respective kernel and the inherent limitations that emerge from this.

Good luck! :)
Best regards!
Title: Re: micro SD cards not recognized
Post by: adml on March 25, 2021, 12:44:41 PM
@Serban S.

Thank you for letting me know your ideas. Please read my next post for an apparent solution, at least at this point in time, to my ongoing saga.
Title: Re: micro SD cards not recognized
Post by: adml on March 25, 2021, 01:02:58 PM
@Jerry

Neither the Escape key, or the Shift key would bring up the Grub menu. In searching for a solution I discovered Grub Customizer. I installed it and what I found, to borrow a quote from Alice, made me, "Curiouser and Curiouser."

In addition to 3 different 5.4.0 Linux kernel entries, there is a Linux Lite 4.8.0 kernel entry as well as an Ubuntu 4.4.0 kernel entry. I'm guessing that the LL 4.8 kernel is from one of the Lite Tweaks or CLI attempts. The Ubuntu 4.4 kernel would have to be from the attempt made with the links you provided, even though the install message said there were errors.

I checked the box in Grub Customizer for the menu to show, rebooted, and chose the Ubuntu 4.4.0 kernel at boot. After booting I verified that 4.4.0 was in use. I then tried the card reader, and it worked. There do not appear to be any broken packages. Is there anything specific that I should do, or check for, to find any potential problems ?

A side note, the PC will not boot when choosing the LL 4.8 kernel.

Title: Re: micro SD cards not recognized
Post by: Jerry on March 25, 2021, 10:08:15 PM
IF you are getting a successful boot into 4.4 kernel, then that is your solution. You will have to stick with that kernel.
Title: Re: micro SD cards not recognized
Post by: firenice03 on March 26, 2021, 01:10:07 PM
IF you are getting a successful boot into 4.4 kernel, then that is your solution. You will have to stick with that kernel.

I would second this -- you have a working kernel; this is the way it is sometimes - I too have systems that don't make use of the newer stuff.
If anything you could try removing 4.8 as long as dont attempt to boot to it your fine.....

Title: Re: micro SD cards not recognized
Post by: adml on March 29, 2021, 12:32:08 PM
@Jerry

As Linux Lite has made this PC usable again I can live with any limitations that come with using the 4.4 kernel. If in the future I have to give up 4.4 for some reason the PC will still be viable, just without the card reader. Thanks for all of your help.
Title: Re: micro SD cards not recognized
Post by: adml on March 29, 2021, 12:36:20 PM
@firenice03

Thanks for all of your help along the way with this. The extra use that I'm getting out of this PC is all due to Linux Lite. What is the best way to remove the Linux Lite 4.8.0 kernel ?