我将根目录移至 LVM。系统正在运行,但我注意到根目录中有一个文件夹,它看起来很像来自以前系统的 UUID(53d4...)。我该如何删除此文件夹?
文件夹内部:
我现在想知道——我是否正确安装了 root?似乎有些不对劲。
这是我用来将根目录移动到 LVM 分区的命令(我必须从 live-cd 执行此操作):
cp -aR '/media/user/53d4fe95-99ce-49dc-844c-165123990001/' '/home/user/tempmount'
/etc/fstab 当前有:
# root at /dev/sdb1
UUID=a3434e96-3be4-4f4b-b8ca-751b36f0fd22 / ext4 errors=remount-ro 0 1
# swap at /dev/sdb1/
UUID=62ebffc9-81a6-4441-b1ee-e4862158150e none swap sw 0 0
fstab 中 root 的 UUID 指向 /dev/ubuntu-vm/root
lvs
root@system:~# lvs -v
LV VG #Seg Attr LSize Maj Min KMaj KMin Pool Origin Data% Meta% Move Cpy%Sync Log Convert LV UUID LProfile
root ubuntu-vg 1 mwi-aom--- 214.84g -1 -1 253 3 100.00 [root_mlog] pYS9i4-txAG-RUZ7-YGXe-iiLZ-29CW-WujyJr
swap ubuntu-vg 3 -wi-ao---- 16.64g -1 -1 253 4 NRw2y4-mj0A-DVFz-CuHu-PXn5-hxRu-xtKy6G
电压
root@system:~# vgs -v
VG Attr Ext #PV #LV #SN VSize VFree VG UUID VProfile
ubuntu-vg wz--n- 4.00m 3 2 0 1.58t 958.85g 0ihnWz-KuDC-8GcZ-j9Ls-dbG4-URKZ-wJ4DNV
我应该在 fstab 中使用UUID pYS9i4-txAG-RUZ7-YGXe-iiLZ-29CW-WujyJr
(来自 ubuntu-vg root)吗?
更新:
我将 sftab 改为这样:
/dev/mapper/ubuntu--vg-root / ext4 errors=remount-ro 0 1
/dev/mapper/ubuntu--vg-swap none swap sw 0 0
并且系统启动正常。
那个文件夹是53d4fe95-99ce-49dc-844c-165123990001
做什么的?
我怎样才能删除该文件夹?
安装 -l
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8124076k,nr_inodes=2031019,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1630556k,mode=755)
/dev/mapper/ubuntu--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) [root]
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1428)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/var/lib/snapd/snaps/dark-knight_1.snap on /snap/dark-knight/1 type squashfs (ro,nodev,relatime)
/var/lib/snapd/snaps/core_4206.snap on /snap/core/4206 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/cumulonimbus_18.snap on /snap/cumulonimbus/18 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4017.snap on /snap/core/4017 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4110.snap on /snap/core/4110 type squashfs (ro,nodev,relatime,x-gdu.hide)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,noexec,relatime,size=1630556k,mode=755)
nsfs on /run/snapd/ns/dark-knight.mnt type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1630552k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
gvfsd-fuse on /home/nathaniel/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
GNOME Commander 的更多内容
非常感谢有关如何删除此文件夹的任何帮助。
答案1
看来您设法将所有文件复制到了该文件夹中。只要您的所有个人文件仍在主目录中,您就可以安全地使用 删除该额外副本sudo rm -fr /53d4fe95-99ce-49dc-844c-165123990001/
。