Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder why mount command takes file system type option like "mount -t type ...". It can find out device's file system type and choose related parameter. Is it possible to mount disks with a file system type other than its current fstype? For example, disk table says sda1's file system type is linux(ext3) but it is real fstype is ntfs, so we use "mount -t ntfs ..." to mount it, is it possible?

share|improve this question

migrated from Sep 21 '11 at 17:37

This question came from our site for professional and enthusiast programmers.

Relevance to programming...? – Lightness Races in Orbit Sep 21 '11 at 17:03

The "automagic" filesystem detection feature of mount is nice, but will probably not detect every filesystem that Linux supports.

And you need the -t parameter to mount network filesystems like NFS and CIFS.

share|improve this answer

The mount auto probing technique uses a heuristic (the presence of appropriate 'magic'), and could recognize the wrong filesystem type, possibly with catastrophic consequences. If your data is valuable, don't ask mount to guess. This also applies to trying to force the wrong fs mount type, mainly due to the different way each fstype is handled (including structural differances).

share|improve this answer

Your Answer


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