Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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

2 Answers 2

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

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

Your Answer

 
discard

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