我检查了 /etc/fstab 并看到以下几行
<file system> <mount point> <type> <options> <dump> <pass>
/ was on /dev/sda1 during installation
UUID=some-hex-appears-here / ext4 errors=remount-ro 0 1
/home was on /dev/sda5 during installation
UUID=another-hex-here /home ext4 defaults 0 2
Run Code Online (Sandbox Code Playgroud)
errors=remount-ro 0 1我很担心,因为我会期望defaults而不是errors=remount-ro. Ubuntu 运行正常,但我有理由相信 Ubuntu 可能在安装过程中受到了影响。
那么这是什么意思?
Tho*_*ard 19
从手册页:
errors={continue|remount-ro|panic}
Define the behavior when an error is encountered. (Either
ignore errors and just mark the filesystem erroneous and
continue, or remount the filesystem read-only, or panic and halt
the system.) The default is set in the filesystem superblock,
and can be changed using tune2fs(8).
Run Code Online (Sandbox Code Playgroud)
本质上,当使用读/写权限挂载磁盘时出现错误,它会将其挂载为“只读”。
在您的设置中是否使用“默认值”不一定相关。是的,您可以在这里期待“默认值”,但其中的缺失不会对您造成太大伤害。
同样,“0 1”部分不是挂载选项的一部分——fstab 行中的所有内容都是空格分隔/制表符分隔的——事物之间的任何空格都表示要使用的“下一个参数”。
但是,作为一名安全人员,我的建议是,如果您认为您的系统在安装过程中在典型安装程序之外被篡改,那么您不应该使用该系统,并且应该使用已知的、良好的 ISO 进行安装并且在安装过程中没有网络该安装以排除导致问题的网络引导安装程序映像。
| 归档时间: |
|
| 查看次数: |
79702 次 |
| 最近记录: |