[Discuss] external drive not showing such as sdcard

David Kramer david at thekramers.net
Fri Jul 9 17:15:21 EDT 2021


I would try "sudo fdisk -l /dev/sdb"

If it does not show any suitable filesystems, then that's the problem 
and not any file permissions.

On 7/9/21 3:02 PM, Eric Chadbourne wrote:
> On my HP Envy laptop running Ubuntu 20.04.2 LTS, the Files application 
> doesn't show USB or sdcards.
>
> I can see USB in terminal in /dev.  However I can't see the sdcard.
>
>     eric at dragonEnvy:/media/eric$ ls -la /dev/sd*
>     brw-rw---- 1 root disk 8,  0 Jul  9 12:54 /dev/sda
>     brw-rw---- 1 root disk 8,  1 Jul  9 12:54 /dev/sda1
>     brw-rw---- 1 root disk 8,  2 Jul  9 12:54 /dev/sda2
>     brw-rw---- 1 root disk 8,  3 Jul  9 12:54 /dev/sda3
>     brw-rw---- 1 root disk 8, 16 Jul  9 13:19 /dev/sdb  // the USB dongle
>
> Is the sdcard card reader recognized?  I _think_ yes.
>
>     sudo lspci -v -nn
>
>     02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. 
> RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
>         Subsystem: Hewlett-Packard Company RTS522A PCI Express Card 
> Reader [103c:81ad]
>         Flags: bus master, fast devsel, latency 0, IRQ 125
>         Memory at b1000000 (32-bit, non-prefetchable) [size=4K]
>         Capabilities: [40] Power Management version 3
>         Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
>         Capabilities: [70] Express Endpoint, MSI 00
>         Capabilities: [100] Advanced Error Reporting
>         Capabilities: [140] Device Serial Number 00-00-00-01-00-4c-e0-00
>         Capabilities: [150] Latency Tolerance Reporting
>         Capabilities: [158] L1 PM Substates
>         Kernel driver in use: rtsx_pci
>         Kernel modules: rtsx_pci
>
> I tried a rescan but no help.
>
>     echo 1 | sudo tee /sys/bus/pci/rescan
>
> Shouldn't the drives be shown in /media?
>
>     eric at dragonEnvy:/media/eric$ ls -lah /media
>     total 12K
>     drwxr-xr-x   3 root root 4.0K Apr 25  2020 .
>     drwxr-xr-x  24 root root 4.0K Apr  7  2020 ..
>     drwxr-x---+  2 root root 4.0K Jun  8 16:28 eric
>
>     eric at dragonEnvy:/media/eric$ ls -lah /media/eric
>     total 8.0K
>     drwxr-x---+ 2 root root 4.0K Jun  8 16:28 .
>     drwxr-xr-x  3 root root 4.0K Apr 25  2020 ..
>
> I see a little plus sign.  Maybe I changed something here a while back 
> and forgot.  Maybe this is an acl or permission issue?  So now I'm 
> thinking maybe just leave the USB and sdcard in and reboot.  Maybe 
> root will set them up on initialization.  Didn't work.
>
> Interesting errors on reboot in auth.log but after investigation I 
> think it is cruft from pam that can be ignored.
>
>     Jul  9 13:41:09 dragonEnvy gdm-password]: 
> pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such 
> file or directory
>     Jul  9 13:41:16 dragonEnvy gdm-password]: 
> pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such 
> file or directory
>     Jul  9 13:41:16 dragonEnvy gdm-password]: gkr-pam: unable to 
> locate daemon control file
>     Jul  9 13:41:16 dragonEnvy gdm-password]: gkr-pam: stashed 
> password to try later in open session
>
> Let's check media directory permissions.
>
>     eric at dragonEnvy:/media$ getfacl eric
>     # file: eric
>     # owner: root
>     # group: root
>     user::rwx
>     user:eric:r-x
>     group::---
>     mask::r-x
>     other::---
>
> Oddly I can plug in a mouse or my iPad and everything works fine. I 
> plug in an USB dongle or my little SandDisk card and nothing. What do 
> you think?  Where else to look?
>
> Thanks for any tips!
>
> Eric C
>
> _______________________________________________
> Discuss mailing list
> Discuss at lists.blu.org
> http://lists.blu.org/mailman/listinfo/discuss


More information about the Discuss mailing list