1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<html>
Adopted from <a href="http://www.tuxfiles.org/linuxhelp/fstab.html">http://www.tuxfiles.org/linuxhelp/fstab.html</a><br>
This node lists all the mount options for the device or partition. This is also the most confusing part in the fstab file, but knowing what some of the most common options mean, saves you from a big headache. Yes, there are many options available, but I'll take a look at the most widely used ones only. For more information, check out the man page of mount.<br><br>
<b>auto</b> and <b>noauto</b> With the auto option, the device will be mounted automatically. auto is the default option. If you don't want the device to be mounted automatically, use the noauto option in /etc/fstab. With noauto, the device can be mounted only explicitly.<br><br>
<b>user</b> and <b>nouser</b> These are very useful options. The user option allows normal users to mount the device, whereas nouser lets only the root to mount the device. nouser is the default, which is a major cause of headache for new Linux users. If you're not able to mount your cdrom, floppy, Windows partition, or something else as a normal user, add the user option into /etc/fstab.<br><br>
<b>exec</b> and <b>noexec</b> exec lets you execute binaries that are on that partition, whereas noexec doesn't let you do that. noexec might be useful for a partition that contains binaries you don't want to execute on your system, or that can't even be executed on your system. This might be the case of a Windows partition.
<b>exec is the default option</b>, which is a good thing. Imagine what would happen if you accidentally used the noexec option with your Linux root partition...<br><br>
<b>ro</b> Mount the filesystem read-only.<br><br>
<b>rw</b> Mount the filesystem read-write. Again, using this option might cure the headache of many new Linux users who are tearing their hair off because they can't write to their floppies, Windows partitions, or something else.<br><br>
<b>sync</b> and <b>async</b> How the input and output to the filesystem should be done. sync means it's done synchronously. In plain English, this means that when you, for example, copy a file to the floppy, the changes are physically written to the disk at the same time you issue the copy command.<br>
However, if you have the async option in /etc/fstab, input and output is done asynchronously. Now when you copy a file to the disk, the changes may be physically written to it long time after issuing the command. This isn't bad, and may sometimes be favorable, but can cause some nasty accidents: if you just remove the floppy without unmounting it first, the copied file may not physically exist on the floppy yet!<br>
async is the default. However, it may be wise to use sync with the floppy, especially if you're used to the way it's done in Windows and have a tendency to remove floppies before unmounting them first.<br><br>
<b>defaults</b> Uses the default options that are rw, suid, dev, exec, auto, nouser, and async.
</html>
|