我找到的有关 fstab 文件的所有信息表明,各单位是按时间顺序列出的。
sda1
sda2
sdb1
etc...
我的 fstab 文件如下:
sda2 (root)
sda1 (efi)
sda3 (swap)
电脑可以工作,但启动有点慢,连接需要很长时间sda2
。
因此,我想知道在 fstab 文件中列出的设备有何意义
答案1
从man fstab
(Lubuntu 19.04):
fstab - static information about the filesystems The file fstab contains descriptive information about the filesystems the system can mount. fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file. The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing.
如果您有单独的/home
(或其他目录)分区,它将被挂载在 之上/
,因此当然/
应该首先列出。可以利用这一点,尽管通常不使用默认fstab
挂载。