You are not logged in.

#1 2019-12-06 16:10:11

rethus
Member
Registered: 2016-02-16
Posts: 12

Can't mount USB Stick or SD-Card

I can not mount USB-Stick or SD-Card on my arch installation.

I use xfce. If I click in thunar on the SD-card entry (32GB Card), I only got a message:

Error mounting /dev/sdb1 at /run/media..... : Unknown error when mounting /dev/sdb1
Same is for USB-Sticks, or USB-HDD.

If I try to mount the device on CLI (e.g. entering: sudo mount -o rw,noauto,async,user,umask=1000 /dev/sdb1 /mnt/sdcard/), the bash come back to input-cursor (means no additional output or error-message).
Buf if I do an ls in /mnt/sdcard, the card is not mounted. Even not listet in the output of "mount"


fdisk -l result in :

Gerät      Boot Anfang     Ende Sektoren Größe Kn Typ
/dev/sdb1         2048 61497343 61495296 29,3G  b W95 FAT32

The SD-Card (and other USB-HDD) working well on other PC (also Linux-PC).

Any Idea, how to fix this issue?

Offline

#2 2019-12-06 16:39:58

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Can't mount USB Stick or SD-Card


--
saint_abroad

Offline

#3 2019-12-06 16:49:27

seth
Member
Registered: 2012-09-03
Posts: 57,340

Re: Can't mount USB Stick or SD-Card

lsmod| grep -E '(vfat|usb)'
pacman -Qs linux
uname -a
dmesg # after attempting the mount

Also elaborate on the relation to the similar problem you had on Antergos 18 months ago. Same system and/or usb device?

Offline

#4 2019-12-07 20:18:58

rethus
Member
Registered: 2016-02-16
Posts: 12

Re: Can't mount USB Stick or SD-Card

@sabroad:

sudo blkid
,,,
,,,
/dev/sdc1: LABEL="Verbatim" UUID="19E8-2432" TYPE="vfat" PARTUUID="0a094892-01"

Here are the output of your suggested Commands:

lsmod| grep -E '(vfat|usb)'
btusb                  65536  0
btrtl                  24576  1 btusb
btbcm                  16384  1 btusb
btintel                28672  1 btusb
bluetooth             671744  11 btrtl,btintel,btbcm,bnep,btusb
usb_storage            77824  2 uas,ums_realtek
usbhid                 65536  1 hid_logitech_dj
hid                   143360  5 usbhid,hid_generic,hid_logitech_dj,hid_logitech_hidpp
scsi_mod              249856  6 sd_mod,usb_storage,uas,libata,sg,sr_mod
pacman -Qs linux
local/alsa-lib 1.2.1.2-2
    An alternative implementation of Linux sound support
local/alsa-utils 1.2.1-1
    An alternative implementation of Linux sound support
local/arch-upgrade 1.16-1
    Desktop app to upgrade your Arch Linux system
local/archlinux-appstream-data 20191128-1
    Arch Linux application database for AppStream-based software centers
local/archlinux-keyring 20191018-2
    Arch Linux PGP keyring
local/autofs 5.1.6-2
    A kernel-based automounter for Linux
local/avahi 0.7+18+g1b5f401-3
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/bridge-utils 1.6-4
    Utilities for configuring the Linux ethernet bridge
local/filesystem 2019.10-2
    Base Arch Linux files
local/flowblade 2.2-1
    a multitrack non-linear video editor for Linux
local/iptables 1:1.8.3-3
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.1-3
    Linux Key Management Utilities
local/kmod 26-3
    Linux kernel module management tools and library
local/ladspa 1.15-1
    Linux Audio Developer's Simple Plugin API (LADSPA)
local/lib32-libxshmfence 1.3-1
    a library that exposes a event API on top of Linux futexes (32-bit)
local/lib32-util-linux 2.34-1
    Miscellaneous system utilities for Linux (32-bit)
local/libaio 0.3.112-2
    The Linux-native asynchronous I/O facility (aio) library
local/libiec61883 1.2.0-5
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libimobiledevice 1.2.0+87+g92c5462-6
    Library that talks the protocols to support iPhone and iPod Touch devices on Linux
local/libraw1394 2.1.2-2
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/libutil-linux 2.34-8
    util-linux runtime libraries
local/libva 2.5.0-1
    Video Acceleration (VA) API for Linux
local/libxshmfence 1.3-1
    a library that exposes a event API on top of Linux futexes
local/linux 5.4.2.arch1-1
    The Linux kernel and modules
local/linux-api-headers 5.3.1-2
    Kernel headers sanitized for use in userspace
local/linux-firmware 20191118.e8a0f4c-2
    Firmware files for Linux
local/linux-headers 5.4.2.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/man-pages 5.04-2
    Linux man pages
local/mdadm 4.1-2
    A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/ndctl 67-1
    Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel
local/net-tools 1.60.20181103git-2
    Configuration tools for Linux networking
local/pacman-mirrorlist 20191001-2
    Arch Linux mirror list for use by pacman
local/python-distro 1.4.0-3
    Linux OS platform information API
local/solaar 1.0.1-3
    Linux device manager for a wide range of Logitech devices
local/usb_modeswitch 2.6.0-1
    Activating switchable USB devices on Linux.
local/util-linux 2.34-8
    Miscellaneous system utilities for Linux
local/v4l-utils 1.16.7-1
    Userspace tools and conversion library for Video 4 Linux
uname -a
Linux thirdone 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64 GNU/Linux

External HDD plugged in:

[  509.340267] usb 1-1.2: New USB device found, idVendor=18a5, idProduct=022b, bcdDevice= 0.00
[  509.340273] usb 1-1.2: New USB device strings: Mfr=10, Product=11, SerialNumber=12
[  509.340278] usb 1-1.2: Product: Portable USB Drive
[  509.340281] usb 1-1.2: Manufacturer: Verbatim
[  509.340284] usb 1-1.2: SerialNumber: 29501X068962
[  509.343806] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  509.353843] audit: type=1105 audit(1575749618.693:77): pid=9084 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  509.357703] scsi host7: usb-storage 1-1.2:1.0
[  509.361662] audit: type=1106 audit(1575749618.703:78): pid=9084 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  509.361840] audit: type=1104 audit(1575749618.703:79): pid=9084 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  510.385192] scsi 7:0:0:0: Direct-Access     ST950032 5AS              0002 PQ: 0 ANSI: 2 CCS
[  510.385765] scsi 7:0:0:0: Attached scsi generic sg3 type 0
[  510.389629] sd 7:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[  510.390602] sd 7:0:0:0: [sdc] Write Protect is off
[  510.390608] sd 7:0:0:0: [sdc] Mode Sense: 28 00 00 00
[  510.394301] sd 7:0:0:0: [sdc] No Caching mode page found
[  510.394307] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  510.477179]  sdc: sdc1
[  510.480756] sd 7:0:0:0: [sdc] Attached SCSI disk
[  548.205587] audit: type=1100 audit(1575749657.547:80): pid=9159 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_unix,pam_permit acct="suther" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=? addr=? terminal=? res=success'
[  548.206203] audit: type=1101 audit(1575749657.547:81): pid=9159 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="suther" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=? addr=? terminal=? res=success'
[  548.235599] audit: type=1105 audit(1575749657.577:82): pid=9156 uid=1000 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/pkexec" hostname=thirdone addr=? terminal=pts/0 res=success'
[  548.959725] raid6: sse2x4   gen()  7000 MB/s
[  549.016365] raid6: sse2x4   xor()  5337 MB/s
[  549.073035] raid6: sse2x2   gen()  6294 MB/s
[  549.129707] raid6: sse2x2   xor()  4898 MB/s
[  549.186334] raid6: sse2x1   gen()  4391 MB/s
[  549.242995] raid6: sse2x1   xor()  4120 MB/s
[  549.242997] raid6: using algorithm sse2x4 gen() 7000 MB/s
[  549.242998] raid6: .... xor() 5337 MB/s, rmw enabled
[  549.242999] raid6: using ssse3x2 recovery algorithm
[  549.248933] xor: measuring software checksum speed
[  549.279655]    prefetch64-sse: 10591.200 MB/sec
[  549.313015]    generic_sse:  9124.800 MB/sec
[  549.313016] xor: using function: prefetch64-sse (10591.200 MB/sec)
[  549.439549] Btrfs loaded, crc32c=crc32c-generic
[  549.490922] JFS: nTxBlock = 8192, nTxLock = 65536
[  549.522720] NILFS version 2 loaded
[  549.792199] SGI XFS with ACLs, security attributes, realtime, scrub, repair, no debug enabled
[  561.606250] perf: interrupt took too long (3178 > 3142), lowering kernel.perf_event_max_sample_rate to 62700
[  572.079191] audit: type=1101 audit(1575749681.421:83): pid=9280 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="suther" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  572.080013] audit: type=1110 audit(1575749681.421:84): pid=9280 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  572.087815] audit: type=1105 audit(1575749681.428:85): pid=9280 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  572.096068] audit: type=1106 audit(1575749681.438:86): pid=9280 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  572.096274] audit: type=1104 audit(1575749681.438:87): pid=9280 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  581.408500] audit: type=1101 audit(1575749690.748:88): pid=9282 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="suther" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  581.410718] audit: type=1110 audit(1575749690.751:89): pid=9282 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  581.420941] audit: type=1105 audit(1575749690.761:90): pid=9282 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  581.894098] audit: type=1106 audit(1575749691.235:91): pid=9282 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  581.894108] audit: type=1104 audit(1575749691.235:92): pid=9282 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  645.223414] usb 1-1.2: USB disconnect, device number 6
[  653.364118] usb 1-1.2: new high-speed USB device number 7 using ehci-pci
[  653.462288] usb 1-1.2: New USB device found, idVendor=18a5, idProduct=022b, bcdDevice= 0.00
[  653.462295] usb 1-1.2: New USB device strings: Mfr=10, Product=11, SerialNumber=12
[  653.462299] usb 1-1.2: Product: Portable USB Drive
[  653.462302] usb 1-1.2: Manufacturer: Verbatim
[  653.462305] usb 1-1.2: SerialNumber: 29501X068962
[  653.463225] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  653.468400] scsi host7: usb-storage 1-1.2:1.0
[  654.488377] scsi 7:0:0:0: Direct-Access     ST950032 5AS              0002 PQ: 0 ANSI: 2 CCS
[  654.488991] scsi 7:0:0:0: Attached scsi generic sg3 type 0
[  654.492284] sd 7:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[  654.493288] sd 7:0:0:0: [sdc] Write Protect is off
[  654.493293] sd 7:0:0:0: [sdc] Mode Sense: 28 00 00 00
[  654.496005] sd 7:0:0:0: [sdc] No Caching mode page found
[  654.496010] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  654.577370]  sdc: sdc1
[  654.580813] sd 7:0:0:0: [sdc] Attached SCSI disk

And dmesg after mount-command:
sudo mount -o rw,noauto,async,user,umask=1000 /dev/sdc1 /mnt/sdcard/

[  775.057599] audit: type=1101 audit(1575749884.403:93): pid=9374 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="suther" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  775.058476] audit: type=1110 audit(1575749884.403:94): pid=9374 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  775.066395] audit: type=1105 audit(1575749884.410:95): pid=9374 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  775.194227] audit: type=1106 audit(1575749884.540:96): pid=9374 uid=0 auid=1000 ses=2 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  775.194531] audit: type=1104 audit(1575749884.540:97): pid=9374 uid=0 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

Last edited by rethus (2019-12-07 20:21:31)

Offline

#5 2019-12-07 20:52:28

seth
Member
Registered: 2012-09-03
Posts: 57,340

Re: Can't mount USB Stick or SD-Card

The installed kernel matches the running one, but the fat modules aren't loaded.
Can you "sudo modprobe vfat"? Does "lsmod" list it afterwards?

Offline

#6 2019-12-07 22:07:08

latalante1
Member
Registered: 2018-08-30
Posts: 110

Re: Can't mount USB Stick or SD-Card

You have connected an external hard drive and the thread title is "Can't mount USB Stick or SD-Card".

sudo mount -o rw,noauto,async,user,umask=1000 /dev/sdc1 /mnt/sdcard/

What file system do you want to mount from this partition /dev/sdc1?
Do you have a FAT file system on your hard drive?
You did not specify when mounting.

umask=1000

What is the value of the mask? Is not correct.

Last edited by latalante1 (2019-12-07 22:08:30)

Offline

#7 2019-12-07 22:42:54

seth
Member
Registered: 2012-09-03
Posts: 57,340

Re: Can't mount USB Stick or SD-Card

rethus wrote:

Same is for USB-Sticks, or USB-HDD.

rethus wrote:

If I click in thunar on the SD-card entry (32GB Card), I only got a message…

rethus wrote:

fdisk -l result in :

Gerät      Boot Anfang     Ende Sektoren Größe Kn Typ
/dev/sdb1         2048 61497343 61495296 29,3G  b W95 FAT32

rethus wrote:

sudo blkid
,,,
,,,
/dev/sdc1: LABEL="Verbatim" UUID="19E8-2432" TYPE="vfat" PARTUUID="0a094892-01"

While there's a chance for having confused the umask w/ the uid, "1000" equals "000" (only the actual permission bits are considered) ie. party mode, afaics not an uncommon mode w/ fat systems.

Offline

#8 2019-12-12 21:04:11

rethus
Member
Registered: 2016-02-16
Posts: 12

Re: Can't mount USB Stick or SD-Card

Sorry for the delay. I'm not every day at my Laptop, where this issue is. But your help is really high appreciated.

@seth: I've done modprobe for vfat and it's listed afterwards:
Here are the first lines of the output:

lsmod
Module                  Size  Used by
vfat                   24576  0
fat                    86016  1 vfat
bnep                   28672  2
ccm                    20480  9

if I execute following command after modprobe, the HDD shortly Flicker, but still not mount:

sudo mount /dev/sdc1 /mnt/hdd
sudo mount /dev/sdc1 /mnt/hdd
[me@thirdone /]$ ls /mnt/hdd/ -als
insgesamt 8
4 drwxr-xr-x 2 root root 4096 12. Dez 21:51 .
4 drwxr-xr-x 7 root root 4096 12. Dez 21:51 ..

@latalante1 wrote: You have connected an external hard drive and the thread title is "Can't mount USB Stick or SD-Card".
Yes, the thread is named for sd-card, but it's pretty the same at least. Both have same behavior. And ATM I didn't have an sd-card here.
So I'm sure, if we fix it for the hdd, it's also fixed for the sd-card.

@latalente1 & seth:

echo $UID
1000

Seemed I mixed up uid with umask sad

But using this also not mount the device:

sudo mount -t vfat -o uid=rethus /dev/sdc1 /mnt/hdd

Offline

#9 2019-12-12 21:26:51

seth
Member
Registered: 2012-09-03
Posts: 57,340

Re: Can't mount USB Stick or SD-Card

It would still be "uid=1000" (not sure whether mount.vfat accepts symbolic UIDs), anyway:
After attempting to mount the disk  from the CLI ("sudo mount -t vfat /dev/sdc1 /mnt/hdd"), what's the output of "mount"?
What happens if you try to mount into a non-empty directory?

sudo touch /mnt/hdd/dummy
sudo mount -t vfat /dev/sdc1 /mnt/hdd

Also I'm not quite sure about the "if we fix it for the hdd, it's also fixed for the sd-card" assertion.
Given that this is a notebook and because of the flicker, the HDD might be underpowered or subject to https://wiki.archlinux.org/index.php/Po … utosuspend (the ultimate cause being some zealous power management)

Offline

#10 2019-12-13 12:14:16

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Can't mount USB Stick or SD-Card

seth wrote:

Given that this is a notebook and because of the flicker, the HDD might be underpowered

Looks like this HDD might be Bus powered via USB 3.0 cable only since the disk requires 1A to spin-up.

rethus wrote:
[  653.364118] usb 1-1.2: new high-speed USB device number 7 using ehci-pci

What's the output of

lspci | grep USB

?


--
saint_abroad

Offline

#11 2019-12-18 12:08:35

rethus
Member
Registered: 2016-02-16
Posts: 12

Re: Can't mount USB Stick or SD-Card

@seth: I give it a try about the suggested command and send you the output this evening

@both: The HDD worked fine some time ago on the same laptop (but I think it was another distribution of Linux). It's even the same thing, if I plug-in an USB-Stick.
But anyway, to be sure, I post the output of your requested Information this evening.

Offline

#12 2019-12-19 21:03:31

rethus
Member
Registered: 2016-02-16
Posts: 12

Re: Can't mount USB Stick or SD-Card

@seth:
so creating an empty file in /mnt/hdd and executing the mount-command result in "nothing". Means:Nothing is mounted, dummy-file is still visible there.

@sabroat: lspci | grep USB

00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)

The HDD is an older USB2 Drive (https://www.cnet.com/products/verbatim- … -0-series/) Product-ID: 53002

Offline

#13 2019-12-19 21:21:00

seth
Member
Registered: 2012-09-03
Posts: 57,340

Re: Can't mount USB Stick or SD-Card

sudo mount -v -t vfat /dev/sdc1 /mnt/hdd

Offline

#14 2019-12-20 12:01:59

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Can't mount USB Stick or SD-Card

Try a powered hub
[edit] Sorry, perhaps not so helpful if you don't already have a powered hub.

Last edited by sabroad (2019-12-20 13:35:10)


--
saint_abroad

Offline

#15 2019-12-24 11:28:25

rethus
Member
Registered: 2016-02-16
Posts: 12

Re: Can't mount USB Stick or SD-Card

@seth

sudo mount -v -t vfat /dev/sdc1 /mnt/hdd
[sudo] Passwort für rethus: 
[rethus@thirdone ~]$ ls -als /mnt/hdd/
insgesamt 8
4 drwxr-xr-x 2 rethus root  4096 19. Dez 21:54 .
4 drwxr-xr-x 7 root   root  4096 12. Dez 21:51 ..
0 -rw-r--r-- 1 rethus users    0 19. Dez 21:54 dummy

@sabroad: i also can continue with the sdcard, where powered hub isn't needed. Like described before, exact same behavior like on hdd is on sdcard.
In my opinion it doesn't depend at the device or card, but some strange stuff in the OS happend, which prevent mounting external devices

Last edited by rethus (2019-12-24 11:35:35)

Offline

#16 2019-12-24 12:07:28

seth
Member
Registered: 2012-09-03
Posts: 57,340

Re: Can't mount USB Stick or SD-Card

type mount

Offline

Board footer

Powered by FluxBB