我见过很多类似的问题,但与我的情况不太一样。
澄清:Ubuntu MATE 新旧版本均从 18.04 LTS 安装切换到 20.04 LTS
我将 SSD 设置为 Windows/Ubuntu MATE,并将两个 HDD 设置为存储 - 一个用于 Windows,另一个设置为 ubuntu 的 /home。
我最近在 SSD 上为 Windows 和 Linux 安装了全新的操作系统。
在设置过程中,我选择了“其他”,并将 SSD Linux 分区设置为 /,并将 HDD 上的正确分区标记为 /home,无格式其中包含我的旧配置、文件、存储等。(额外的问题 - 我应该将整个驱动器设置为 /home 吗?)
在启动时,登录屏幕出现问题,我可以通过 livedisk 并通过 gparted 设置自动挂载来解决(因为它没有自动挂载,所以没有 /home 可以启动)
虽然我现在可以自由使用 ubuntu,但我的旧 /home 设置均未显示 - 空桌面、空文件夹等。由于设置了自动挂载,它不会将 HDD 显示为外部存储驱动器,这是我所希望的,并且与我的旧设置相同。
当我通过 live disk 检查时,它显然被标记为 /home,并且肯定还有数据,但是当我转到旧主文件夹下的文件夹时,它是空的。奇怪的是,我可以读取但不能写入 Linux 分区上的第二个配置文件。主配置文件显示默认桌面、音乐、图片、下载文件夹,但都是空的。启动 livedisk 无法访问这些文件。可用空间表明数据仍然在那里。
我使用相同的用户名(不同的 PC 名称)和密码。我尝试过 chown(但愿意听取更多建议)。我认为在安装过程中出现了问题,设置了新家而不是正确使用旧家。有想法如何设置吗?
尝试:
- https://forums.linuxmint.com/viewtopic.php?t=310360和 https://forums.linuxmint.com/viewtopic.php?f=47&t=310511
按照这些说明操作后,我所取得的最大成果是自动挂载并能够启动到 Linux。
chown user:user /dev/sda2 -R
(正确的家庭分区)
没有效果。
可能的线索:
要求:
sudo blkid:
/dev/sdb5: UUID="64afd68d-30b8-4e9e-848e-6bc24b721026" TYPE="ext4" PARTUUID="52baa0ed-f432-4be7-ba30-b527251c7726"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="1d7eb1f8-4972-4c20-9c6e-765afbf61eb1"
/dev/sda2: UUID="3571db23-f246-49d0-93bd-11515ec34bb8" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="677ba167-e2c6-4c1c-b9bc-461f2f3f5836"
/dev/sdb1: UUID="4E81-5D64" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="51e874a2-6064-4401-ad7f-d47a55a735e2"
/dev/sdb2: PARTLABEL="Microsoft reserved partition" PARTUUID="1453ce7e-6045-46dc-8aa5-3e32e25aed94"
/dev/sdb3: UUID="2EF28285F28250CF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="45075ffc-056a-461f-b5bb-8aa8907fd080"
/dev/sdb4: UUID="5026BEB626BE9D02" TYPE="ntfs" PARTUUID="e1dc02de-c48b-4657-b00e-2daef098f383"
mount:
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,noexec,relatime,size=8124300k,nr_inodes=2031075,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,nodev,noexec,relatime,size=1633496k,mode=755)
/dev/sdb5 on / type ext4 (rw,relatime,errors=remount-ro)
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)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
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)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
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/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
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/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
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/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
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=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=825)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/var/lib/snapd/snaps/core18_1885.snap on /snap/core18/1885 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_1880.snap on /snap/core18/1880 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_9607.snap on /snap/snapd/9607 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/ubuntu-mate-welcome_559.snap on /snap/ubuntu-mate-welcome/559 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_8542.snap on /snap/snapd/8542 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/software-boutique_54.snap on /snap/software-boutique/54 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/ubuntu-mate-welcome_539.snap on /snap/ubuntu-mate-welcome/539 type squashfs (ro,nodev,relatime,x-gdu.hide)
/dev/sdb1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda2 on /home type ext4 (rw,nosuid,nodev,relatime,user)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1633492k,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)
fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb5 during installation
UUID=64afd68d-30b8-4e9e-848e-6bc24b721026 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdb1 during installation
UUID=4E81-5D64 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda2 during installation
/swapfile none swap sw 0 0
UUID=3571db23-f246-49d0-93bd-11515ec34bb8 /home ext4 auto,rw,user,exec 0 2
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 55M 1 loop /snap/core18/1880
loop1 7:1 0 55.3M 1 loop /snap/core18/1885
loop2 7:2 0 31M 1 loop /snap/snapd/9607
loop3 7:3 0 14.9M 1 loop /snap/ubuntu-mate-welcome/559
loop4 7:4 0 29.9M 1 loop /snap/snapd/8542
loop5 7:5 0 16K 1 loop /snap/software-boutique/54
loop6 7:6 0 14.9M 1 loop /snap/ubuntu-mate-welcome/539
sda 8:0 0 5.5T 0 disk
├─sda1 8:1 0 128M 0 part
└─sda2 8:2 0 5.5T 0 part /home
sdb 8:16 0 894.3G 0 disk
├─sdb1 8:17 0 100M 0 part /boot/efi
├─sdb2 8:18 0 16M 0 part
├─sdb3 8:19 0 866.9G 0 part
├─sdb4 8:20 0 505M 0 part
└─sdb5 8:21 0 26.8G 0 part /