我在互联网上搜索了这个问题,但什么也找不到。我刚刚在朋友的笔记本电脑上安装了Manjaro和Linux Mint。我对Linux并不陌生,使用Gentoo、Arch、Ubuntu、CentoOS已经20多年了,他是一个经验丰富的Ubuntu&铸币工人。他有一个加密分区,安装在主文件夹中名为rob_docs的文件夹上,所有权设置为rob:rob用户在每个Distro上以1000的UID进行抢劫。当他将文件保存到Manjaro上的rob_docs时,它们在Mint中看不到,反之亦然。我看不出有什么原因。每个发行版中的/dev/mapper/rob_docs与/root中的luks密钥文件相同/以下是每个Distro的相关权限:Manjaro
$ ls -l ~/
total 4
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Desktop
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Documents
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Downloads
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Music
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Pictures
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Public
drwxr-xr-x 5 rob rob 4096 Apr 8 11:38 rob_docs
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Templates
drwxr-xr-x 1 rob rob 0 Apr 7 13:08 Videos
$ ls -l ~/rob_docs
total 36
drwxr-xr-x 2 rob rob 4096 Apr 7 17:12 firefox
-rw-r--r-- 1 rob rob 10961 Apr 8 11:38 grub-info-manjaro.txt
drwxr-xr-x 2 rob rob 4096 Apr 7 17:21 info
drwx------ 2 rob rob 16384 Apr 4 13:21 lost+found
薄荷
$ ls -l ~/
total 40
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Desktop
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Documents
drwxr-xr-x 3 rob rob 4096 Apr 7 12:14 Downloads
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Music
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Pictures
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Public
drwxrwxr-x 6 rob rob 4096 Apr 8 11:00 rob_docs
drwxrwxr-x 3 rob rob 4096 Apr 7 13:32 ROB-FG
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Templates
drwxr-xr-x 2 rob rob 4096 Apr 5 19:49 Videos
$ ls -l ~/rob_docs
total 52
-rw-rw-r-- 1 rob rob 0 Apr 6 09:31 EmptyFile.txt
drwxrwxr-x 3 rob rob 4096 Apr 7 18:39 firefox
-rw-rw-r-- 1 rob rob 9047 Apr 8 11:00 grub-info.txt
drwxr-xr-x 26 rob rob 12288 Mar 29 15:24 TEFL_course
drwxrwxr-x 2 rob rob 4096 Apr 7 18:36 test_folder
drwxr-xr-x 3 rob rob 4096 Apr 8 10:46 video_recordings
正如你所看到的,它们好像是两个不同的分区,但它们不是。在每个/etc/fstab文件中,要装载/dev/mapper/rob_docs的UUID是相同的。
为什么会发生这种情况?
通过在没有启动选项的情况下重新安装Mint解决了这个问题-从Live DVD中的cmmmand行:-
泛素-b
因为Manjaro和另一个Linux Distro只使用一个EFI分区,所以Manjaro用于更新启动菜单的grub。然后重新创建了LUKS分区,一切都很好,两个发行版都将从LUKS Partiton 中写入和读取