由于驱动程序问题,我的 openSUSE 安装开始时出现黑屏。为了保存所有数据,我使用了 Ubuntu Live Stick。问题是文件夹 /opt/ 显示为空。有没有办法保存最初由 xampp 在 /opt/lampp/htdocs 中创建的 htdocs 文件夹中的文件?
/etc/fstab
UUID=e5b9014b-2429-41da-8f19-ea94a22a7421 swap swap defaults 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 / btrfs defaults 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=8a098622-b4e4-4daa-ac24-ba6806f53c24 /home xfs defaults 1 2
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /opt btrfs subvol=@/opt 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /srv btrfs subvol=@/srv 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /tmp btrfs subvol=@/tmp 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /usr/local btrfs subvol=@/usr/local 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/crash btrfs subvol=@/var/crash 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/log btrfs subvol=@/var/log 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/opt btrfs subvol=@/var/opt 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/spool btrfs subvol=@/var/spool 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /.snapshots btrfs subvol=@/.snapshots 0 0
编辑:我现在设法(使用 opensuse 中的终端)将 htdocs 文件夹复制到 /home,备份并重新安装
答案1
此行/etc/fstab
显示/opt
位于不同的分区中:
UUID=07ba41aa-a03b-4fee-a2c3-8c8cb852fab0 /opt btrfs subvol=@/opt 0 0
你看到空的是正常的/opt
,因为这是一个将映射到的挂载点另一个分区当系统启动时。
您需要打开正确的分区才能备份其中包含的文件/opt/lampp/htdocs
。