我有两个分区,一个包含系统,另一个分区包含主目录和数据。我发现这个问题
可以解决我的问题,但我不确定如何准确地将其应用到我的系统中,我最不确定的是我应该如何编辑/etc/fstab
文件。
我使用命令将usr
、tmp
和文件夹复制到文件夹。var
cp -a
/home/sys
我现在启动了一个实时发行版,这样我就可以重命名原始文件夹(当一切正常时我将删除它)并编辑/etc/fstab
.但这就是我陷入困境的地方。该文件的内容是:
UUID=90e62a50-2160-429c-b411-522762406e8f swap swap defaults 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 / btrfs defaults 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /opt btrfs subvol=@/opt 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /srv btrfs subvol=@/srv 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /tmp btrfs subvol=@/tmp 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /usr/local btrfs subvol=@/usr/local 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/crash btrfs subvol=@/var/crash 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/log btrfs subvol=@/var/log 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/opt btrfs subvol=@/var/opt 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/spool btrfs subvol=@/var/spool 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=16bb63e7-2cb4-4866-ba7c-dc3db7ab8579 /home xfs defaults 1 2
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /var/lib/machines btrfs subvol=@/var/lib/machines 0 0
有人可以帮我编辑该文件吗?
编辑:我尝试自己编辑该文件,但没有成功,系统无法启动。
UUID=90e62a50-2160-429c-b411-522762406e8f swap swap defaults 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 / btrfs defaults 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /opt btrfs subvol=@/opt 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /srv btrfs subvol=@/srv 0 0
UUID=dc5e9885-8e7d-45e2-8a4d-ea065000a505 /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=16bb63e7-2cb4-4866-ba7c-dc3db7ab8579 /home xfs defaults 1 2
/home/sys/var /var auto defaults 0 2
/home/sys/tmp /tmp auto defaults 0 2
/home/sys/usr /usr auto defaults 0 2
通过阅读日志,它看起来找不到“设备” /home/sys/var
。
编辑 2:按照 Emanuel Rosa 的建议添加了绑定选项,但系统仍然无法启动。现在 sh-4.3# 停留在黑屏,光标闪烁。