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.

I read on the man page

defaults Use default options: rw, suid, dev, exec, auto, nouser, async, and relatime.

Do the options set depend on a mounted filesystem or not?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

In the man page, defaults is listed under Filesystem Independent Mount Options, which means it doesn't depend on the filesystem type.

share|improve this answer
    
Oh, I'm sorry, didn't notice it –  Maksim Dmitriev Apr 28 '13 at 17:22
    
Now you do, no need to be sorry :) –  phunehehe Apr 28 '13 at 17:28
add comment

Well, what do you mean by "depend on the mounted file system" ?

To begin with, this line in the man page defines an option called defaults. This option defaults is available for all file systems as indicated by the section heading. It stands exactly for the set of options listed in the definition of defaults. You may see it as a replacement for that list.

Then, a default option may be surperseded by other considerations. For example, if you use the option default for a DVD drive, you will end up with option ro rather than rw when the drive is mounted because DVDs have read-only file systems (the file system does not exists yet when you write). A file containing the image of an ISO 9660 file system will also be mounted ro with a loop device. I do not know for an ext4 file system image (I still have to try it).

Also, if you use default and follow it with other options, it may cancel some of the options set by default. For example the option owner will cancel many.

share|improve this answer
add comment

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.