On 12/06/2020 16.28, Dave Howorth wrote:
On Fri, 12 Jun 2020 14:34:04 +0200 Stakanov <stakanov@disroot.org> wrote:
In data venerdì 12 giugno 2020 09:27:46 CEST, Carlos E. R. ha scritto:
On 12/06/2020 01.42, Anton Aylward wrote:
On 11/06/2020 11:40, Stakanov wrote:
I am far from being an expert, but, provided you have uninstalled fuse and that you are running the linux 5.7 kernel then you should with
$ cat /proc/filesystems
Go back over the thread and I discussed the disparity between that and /etc/filesystems
I would say that /etc/filesystems is deprecated. In favor of....?
According to Mr google, followed by Mr man, the two serve different purposes:
https://www.man7.org/linux/man-pages/man5/proc.5.html
/proc/filesystems A text listing of the filesystems which are supported by the kernel, namely filesystems which were compiled into the kernel or whose kernel modules are currently loaded. (See also filesystems(5).) If a filesystem is marked with "nodev", this means that it does not require a block device to be mounted (e.g., virtual filesystem, network filesystem).
Incidentally, this file may be used by mount(8) when no filesystem is specified and it didn't manage to determine the filesystem type. Then filesystems contained in this file are tried (excepted those that are marked with "nodev").
https://linux.die.net/man/8/mount
"If no -t option is given, or if the auto type is specified, mount will try to guess the desired type. Mount uses the blkid or volume_id library for guessing the filesystem type; if that does not turn up anything that looks familiar, mount will try to read the file /etc/filesystems, or, if that does not exist, /proc/filesystems. All of the filesystem types listed there will be tried, except for those that are labeled "nodev" (e.g., devpts, proc and nfs). If /etc/filesystems ends in a line with a single * only, mount will read /proc/filesystems afterwards.
FWIW, /etc/filesystems on my system contains:
# cat /etc/filesystems vfat hfs minix reiserfs *
/proc/filesystems contains a list of the filesystems I can use, including things like btrfs and xfs and other obscure things. It doesn't contain hfs or minix.
Ok, so both say in different words that can be used to mount a filesystem when the type is not specified. But you see, I use both xfs and btrfs which are not listed in /etc/filesystems, so this file is no use. Further, this file comes direct from an rpm: cer@Telcontar:~> rpm -qf /etc/filesystems util-linux-2.33.1-lp151.3.3.2.x86_64 cer@Telcontar:~> So it can not reflect what the system actually supports - which is why I say that it must be deprecated, in favour of /proc/filesystems. cer@Telcontar:~> cat /etc/filesystems vfat hfs minix reiserfs exfat exfat_fuse * cer@Telcontar:~> cer@Telcontar:~> cat /proc/filesystems nodev sysfs nodev rootfs nodev ramfs nodev bdev nodev proc nodev cpuset nodev cgroup nodev cgroup2 nodev tmpfs nodev devtmpfs nodev debugfs nodev tracefs nodev securityfs nodev sockfs nodev dax nodev bpf nodev pipefs nodev hugetlbfs nodev devpts ext3 ext2 ext4 nodev autofs nodev pstore nodev mqueue nodev resctrl nodev efivarfs nodev configfs nodev rpc_pipefs nodev nfsd vfat xfs reiserfs nodev binfmt_misc fuseblk nodev fuse nodev fusectl cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)