Deepin20两块ntfs格式的盘UUID相同,怎么修改
Tofloor
poster avatar
haobaicai222
deepin
2020-12-23 04:31
Author

我的笔记本电脑本来就是按照的双系统,一个英文版win10和一个中文版win10。今天安装了Deepin20系统,但是在启动的时候遇到了问题:Deepin的启动菜单里面能看到三个系统,但是只能启动Deepin20和WinChina系统,下面两个无论选择WinChina还是选择WinEnglish启动,都只能启动到中文版的win10。后来进入Deepin里面用命令查看发现,之前两个win10的系统盘UUID居然是一样的,想求助大神怎么修改ntfs盘的UUID,或者是这种情况怎么能让其3个系统都能启动?在线等回复,急,非常感谢!


Reply Favorite View the author
All Replies
haobaicai222
deepin
2020-12-23 04:32
#1

启动菜单截图:


Reply View the author
SamLukeYes
deepin
2020-12-23 04:34
#2

uuid 还能撞?[尖叫]

Reply View the author
haobaicai222
deepin
2020-12-23 04:35
#3

UUID截图


Reply View the author
haobaicai222
deepin
2020-12-23 04:36
#4
SamLukeYes

uuid 还能撞?[尖叫]

对啊,怎么图片上传不了。很郁闷


Reply View the author
haobaicai222
deepin
2020-12-23 04:38
#5

aigoni@aigoni-PC:~/Desktop$ blkid
/dev/nvme0n1p1: LABEL="WinEnglish" UUID="09C1B27DA5EB573A" TYPE="ntfs" PARTUUID="a58fc54c-01"
/dev/nvme0n1p2: LABEL="WinChina" UUID="09C1B27DA5EB573A" TYPE="ntfs" PARTUUID="a58fc54c-02"
/dev/nvme0n1p3: LABEL="Data" UUID="48C26D71C26D6462" TYPE="ntfs" PARTUUID="a58fc54c-03"
/dev/nvme0n1p4: UUID="969eafe8-4807-4b52-a4cb-2a90d5174d16" TYPE="ext4" PARTUUID="a58fc54c-04"

Reply View the author
haobaicai222
deepin
2020-12-23 04:42
#6

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'WinEnglish' --class windows --class os $menuentry_id_option 'osprober-chain-09C1B27DA5EB573A' {
insmod part_msdos
insmod ntfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 09C1B27DA5EB573A
else
search --no-floppy --fs-uuid --set=root 09C1B27DA5EB573A
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'WinChina' --class windows --class os $menuentry_id_option 'osprober-chain-09C1B27DA5EB573A' {
insmod part_msdos
insmod ntfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 09C1B27DA5EB573A
else
search --no-floppy --fs-uuid --set=root 09C1B27DA5EB573A
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###


我发现WinChina和WinEnglish的UUID都一样,两个磁盘一样,然后只能启动其中一个系统,ntfs磁盘的UUID能修改吗?具体怎么操作,才能三个系统都能启动,求大神指点!

Reply View the author
asmask9904
deepin
2020-12-23 04:48
#7
It has been deleted!
enforcee
deepin
2020-12-23 05:17
#8

你可以试试用Windows的引导deepin

(没试过,提个想法)

Reply View the author
lcw0268
deepin
2020-12-23 05:40
#9

楼主说的我云里雾里。

sudo fdisk -l

看看磁盘?

sudo dpkg-reconfigure grub?

Reply View the author
SamLukeYes
deepin
2020-12-23 05:54
#10

可以暂时改为用卷标或者 PARTUUID 来区别这两个分区,但可能 update-grub 以后又没了,我不知道怎么永久修改 grub 的行为让它默认不用 UUID [尾]

要不楼主换个引导器,比如 refind?

Reply View the author
蔡EEPIN
deepin
2020-12-23 05:57
#11
It has been deleted!
Ziggy
deepin
2020-12-23 06:16
#12

看看gparted能不能改

Reply View the author
deepinuser17
deepin
2020-12-23 07:56
#13

可以试试用硬盘分区名,

/dev/nvme0n1p1   WinEnglish

/dev/nvme0n1p2   WinChina

Reply View the author
mcaoser
deepin
2020-12-23 18:31
#14

系统引导挂载分会使用grub的配置文件和/etc/fstab,所以要修改这两个地方,在修改之前,需要用tune2fs及uuedgen等命令,百度一下,应该好解决。当然修改好硬盘的UUID和fstab后,更新gurb也可以,再一个方法就是直接用设备名,不使用UUID,但使用设备名是有缺点的,不细说。

Reply View the author
gongsong
deepin
2020-12-24 00:32
#15

gparted 分区右键 new uuid

Reply View the author