Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

OS: ex.: Ubuntu 10.04 - how to know that what does the "mount -t TYPE" knows? I mean is there a command to list the supported filesystem types using with mount??

UPDATE: is the following cmd always good?:

cat /proc/filesystems | awk '{print $NF}' | sed '/^$/d'
sysfs
rootfs
bdev
proc
cgroup
cpuset
tmpfs
devtmpfs
debugfs
securityfs
sockfs
pipefs
anon_inodefs
inotifyfs
devpts
ext3
ext2
ext4
ramfs
hugetlbfs
ecryptfs
fuse
fuseblk
fusectl
mqueue
binfmt_misc
iso9660
vfat
udf
reiserfs
xfs
jfs
msdos
ntfs
minix
hfs
hfsplus
qnx4
ufs
btrfs
share|improve this question
1  
You cant just choose any arbitrary type for the filesystem youre mounting. If your filesystem is EXT4, then the type has to be EXT4. However in most cases you dont even need to specify the type, it is determined automatically. –  Patrick Apr 17 '12 at 10:40
    
yes that command works fine –  yakamok Apr 17 '12 at 10:41
    
No, that command not works fine. If the first column is empty it removes the entire line. awk '{print $NF}' /proc/filesystems would work better. –  manatwork Apr 17 '12 at 10:44
    
updated with the $NF part, nice catch :) –  LanceBaynes Apr 17 '12 at 10:47
    
are you looking for what filesystem type a drive you currently have installed has? if so type blkid as root –  yakamok Apr 17 '12 at 10:50

1 Answer 1

up vote 5 down vote accepted

This should work for ubuntu as well as Debian, type the following:

cat /proc/filesystems

This will output what your current kernel supports

ah now i understand your question better, type:

 man mount

and scroll down to -t and there will be a list of supported filesystems that mount it self supports, but this is dependent on what your kernal supports

share|improve this answer
    
but now always, see: cyberciti.biz/tips/… comment part about NFS –  LanceBaynes Apr 17 '12 at 10:44
    
this is not a 100% answer, I could google for this too :P –  LanceBaynes Apr 17 '12 at 10:55
    
If a post would only count as an answer if it was not to be found somewhere with a search engine, this site would be a lot smaller... –  sr_ Apr 17 '12 at 10:59
    
I wanted to mean that I alredy knowed that answer, I post it in the question too, before this answer:P –  LanceBaynes Apr 17 '12 at 11:01
    
lol my page had not update until i posted it then i saw your answer –  yakamok Apr 17 '12 at 11:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.