mount: unknown filesystem type
This document (000020327) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
Situation
s12sp4:~ # mount /dev/vg01/vfatLV /mnt mount: unknown filesystem type 'vfat'
Resolution
- Reinstall the kernel and make sure the kernel drivers are installed
- Check the modprobe configuration for the driver. Reference: man modprobe.d
Cause
1. The kernel driver for this filesystem type is missing. In this case vfat.ko.
modinfo command can be used to check if the kernel driver is installed.
Kernel modules are normally stored in: /lib/modules/`uname -r`
2. The kernel driver exists but could not be loaded.
modprobe -v -n command could be used to test loading the kernel driver.
Additional Information
s12sp4:~ # old /lib/modules/4.12.14-95.54-default/kernel/fs/fat/vfat.ko s12sp4:~ # ll /lib/modules/4.12.14-95.54-default/kernel/fs/fat/vfat.ko* -rw-r--r-- 1 root root 29056 Jun 5 2020 /lib/modules/4.12.14-95.54-default/kernel/fs/fat/vfat.ko-20210709 s12sp4:~ # mount /dev/vg01/vfatLV /mnt mount: unknown filesystem type 'vfat'
Method 2. Wrong modprobe configuration. E.g. here we tell modprobe to run /bin/true instead of inserting the module in the kernel as normal.
s12sp4:~ # lsmod | grep fat s12sp4:~ # echo 'install vfat /bin/true' > /etc/modprobe.d/99-block-vfat.conf s12sp4:~ # modprobe -v -n vfat insmod /lib/modules/4.12.14-95.54-default/kernel/fs/fat/fat.ko install /bin/true s12sp4:~ # mount /dev/vg01/vfatLV /mnt mount: unknown filesystem type 'vfat' s12sp4:~ # modprobe -v -n vfat install /bin/true s12sp4:~ # rm /etc/modprobe.d/99-block-vfat.conf s12sp4:~ # modprobe -v -n vfat insmod /lib/modules/4.12.14-95.54-default/kernel/fs/fat/vfat.ko s12sp4:~ # mount /dev/vg01/vfatLV /mnt s12sp4:~ # df -hT /mnt Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg01-vfatLV vfat 52M 0 52M 0% /mnt
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020327
- Creation Date: 09-Jul-2021
- Modified Date:09-Jul-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com