Unable to mount external NTFS HDDs due to duplicate UUID

Pha*_*a K 8 fstab mount ntfs external-hdd uuid

I'm trying to setup /etc/fstab to automatically mount two external NTFS hard drives on boot, and decided to use the UUIDs as reference instead of the device names.

Strangely, blkid reports that both hard disks have the exact same UUID, so I am unable to add both entries into the file. Here's what it shows for the two disks:

/dev/sdc1: LABEL="Hank's Legacy" UUID="D8249BB8249B97D8" TYPE="ntfs" PARTUUID="61bf885b-01"

/dev/sdb1: LABEL="Hank's Mainframe" UUID="D8249BB8249B97D8" TYPE="ntfs" PARTUUID="f865b797-01"
Run Code Online (Sandbox Code Playgroud)

I read that tune2fs cannot be used to modify the UUID for NTFS partitions, because this is technically not a UUID, but a serial number. Any suggestions on how I can mount the two disks without causing conflicts?

Tak*_*kat 13

要挂载 NTFS 驱动器,我们也可以仅使用磁盘标签。我们可以安全地从 Windows 或使用ntfslabel更改标签 安装ntfslabel. 看

不用说,通过使用ntfslabel我们还可以更改分区的 UUID(又名序列号)。为了避免对依赖于 UUID 的 Windows 文件分配产生负面影响,我们应该只更改 UUID 的上半部分(Windows 不使用):

sudo ntfslabel --new-half-serial[=ssssssss] /dev/sdXN
Run Code Online (Sandbox Code Playgroud)

例子:

在此处输入图片说明