linux – 推荐的fstab设置
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux – 推荐的fstab设置,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1409字,纯文字阅读大概需要3分钟。
内容图文
![linux – 推荐的fstab设置](/upload/InfoBanner/zyjiaocheng/959/9f0f1be41a9c448aa28b089a1861e906.jpg)
我按照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阅读更多内容.
内容总结
以上是互联网集市为您收集整理的linux – 推荐的fstab设置全部内容,希望文章能够帮你解决linux – 推荐的fstab设置所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。