(bash) For a particular directory, I need to discover the maximum file size supported by that filesystem. The filesystem in question is probably mounted from external USB media, and might be FAT32, NTFS, exfat, or ext2.
I know I could partially guess the information from mount
, but I'd like a cleaner solution - plus in the case of exfat, mount
shows the filesystem type as "fuseblk".
(I am running Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux)
getconf FILESIZEBITS path
does not work for a fuseblk
mount of an exfat filesystem: it returns 32, which is inaccurate. So it is not a general solution.