<file systems> 不是我们通常理解的文件系统,而是指设备(硬盘及其分区,DVD光驱等)。它告知我们设备(分区)的名字,这是你在命令行中挂载(mount)、卸载(umount)设备时要用到的。so one should substitute for this entry the device name, remote partition, or similar. </file>
user 允许任何用户挂载设备。 Implies noexec,nosuid,nodev unless overridden.
nouser 只允许root用户挂载。这是默认设置。
suid Permit the operation of suid, and sgid bits. They are mostly used to allow users on a computer system to execute binary executables with temporarily elevated privileges in order to perform a specific task.
nosuid Blocks the operation of suid, and sgid bits.
<pass> fsck会检查这个头目下的数字来决定检查文件系统的顺序(looks at the number substituted for <pass> and determines in which order the file systems should be checked)。允许的数字是0, 1, 和2。 文件系统的<pass>选项是0将不会被fsck utility检查。root文件系统应该拥有最高的优先权, 1,而所有其它的文件系统,如果你想让它被check的话,应该写成2。 </pass></pass></pass>
注意: 除了直接用设备(分区)名字,你也可以用UUID或卷名。格式 LABEL=
用fstab自动挂载FAT32和NTFS分区
1.先在用fdisk -l(可能需要在root权限下)得到硬盘信息表,例如:
# Device Boot Start End Blocks Id System
/dev/sda1 * 1 2397 19253871 b W95 FAT32
/dev/sda2 2398 3144 6000277+ 83 Linux
/dev/sda3 3145 9729 52894012+ 5 Extended
/dev/sda5 3145 3152 64228+ 83 Linux
/dev/sda6 3153 3276 995998+ 82 Linux swap / Solaris
/dev/sda7 3277 7340 32644048+ 83 Linux
/dev/sda8 7341 9729 19189611 7 HPFS/NTFS