You are not logged in.

#1 2021-06-16 20:35:12

Spheerys
Member
Registered: 2012-05-01
Posts: 86

Mount: unknown filesystem type ‘vfat’

I have an issue from a long time with vfat device, and now I really want to solved it.

I get the error "Error mounting /dev/sdd at /run/media/hedy/KEY: Unknow error when mounting /dev/sdd"

After a lots of investigation, I think there a problem with my kernel and kernel modules versions.

Here some infos :

uname -a :

Linux narayan 5.10.42-1-lts #1 SMP Thu, 03 Jun 2021 12:54:28 +0000 x86_64 GNU/Linux

ls -l /lib/modules :

total 8
drwxr-xr-x 3 root root 4096 11-06-2021 22:38 5.10.43-1-lts/
drwxr-xr-x 5 root root 4096 11-06-2021 22:39 5.12.10-arch1-1/

mount :

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8131492k,nr_inodes=2032873,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/sda1 on / type ext4 (rw,noatime,discard)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,size=6291456k,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12364)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=8140788k,nr_inodes=409600,inode64)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/sda3 on /home type ext4 (rw,noatime,discard)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1628156k,nr_inodes=407039,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,use

sudo modprobe vfat

modprobe: FATAL: Module vfat not found in directory /lib/modules/5.10.42-1-lts

I think the vfat module is not available, but I don't know how to add it with my kernel version...

Offline

#2 2021-06-16 20:40:19

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,975
Website

Re: Mount: unknown filesystem type ‘vfat’

5.10.43-1-lts != 5.10.42-1-lts
If you upgrade the kernel, you need to reboot to the new kernel before loading new modules, because the old, still running kernel's files and folders, including the modules, will be deleted by the update.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#3 2021-06-16 20:51:04

Spheerys
Member
Registered: 2012-05-01
Posts: 86

Re: Mount: unknown filesystem type ‘vfat’

Oh oh you got it !
This issue disturb me a lot because it's looked like a random issue.
In some case, the usb devices miraculously mounting, and on other moment, not.
You give me a fabulous explanation. Thanks a lot !

But a last question : as my computer reboots approximately twice a month, this issue is a little bit annoying... Is there a solution to avoid it ? Excluding the kernel package within pacman.conf looks extreme... But in fact, if I really like Arch for the rolling release, I don't really need to me up to date with kernel (maybe once a month ?).
Any idea ?

Offline

#4 2021-06-16 20:58:57

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,975
Website

Re: Mount: unknown filesystem type ‘vfat’

Well, ultimately that's up to you as the administrator of your system.
You can exclude the kernel package from updates like you mentioned.
But I like to keep my machines up to date regarding the kernel as well.
So I just reboot my machines when there was a kernel update.
But as I said, it's your choice.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#5 2021-06-16 21:00:35

Spheerys
Member
Registered: 2012-05-01
Posts: 86

Re: Mount: unknown filesystem type ‘vfat’

OK thanks smile

Offline

Board footer

Powered by FluxBB