我按照this guide为我的家用驱动器创建了一个新分区
我不知道它建议的fstab设置意味着什么:
UUID=???????? /home ext3 nodev,nosuid 0 2
我使用了安装光盘,并使用“试一试,没有安装”,这样我就可以在卸载驱动器的情况下运行.我使用GParted调整分区大小,并在未使用的空间中创建一个新分区.然后我按照指南的说法查找了UUID(并使用了ext4),一切正常.
但是,我想了解“nodev,nosuid 0 2”设置是什么.这些是推荐的设置吗?这是唯一有效的设置吗?这有什么关系吗?
解决方法:
Arch Linux Wiki在/ etc / fstab文件中有一个完整的字段定义列表,包括您要询问的字段:
nodev – Don’t interpret block special devices on the filesystem.
nosuid – Block the operation of suid, and sgid bits.
0 2分别是dump&通过:
<dump> – used by the dump utility to decide when to make a backup. Dump checks the entry and uses the number to decide if a file system should be backed up. Possible entries are 0 and 1. If 0, dump will ignore the file system; if 1, dump will make a backup. Most users will not have dump installed, so they should put 0 for the <dump> entry.
<pass> – used by fsck to decide which order filesystems are to be checked. Possible entries are 0, 1 and 2. The root file system should have the highest priority 1 – all other file systems you want to have checked should have a 2. File systems with a value 0 will not be checked by the fsck utility.
请注意,UUID指的是块设备(分区)的命名;不是文件类型.您可以在Arch Wiki阅读更多内容.