If you try and mount it normally using the mount command, it should give you the following error:

$ sudo mount /dev/nvme0n1p2 testdisk/
mount: wrong fs type, bad option, bad superblock on /dev/nvme0n1p2,
missing codepage or helper program, or other error

   In some cases useful info is found in syslog - try
   dmesg | tail or so.

Reviewing dmesg, will confirm the reason it cannot mount is due to duplicate UUID’s:

$ dmesg | tail
[34203.720218] nvme nvme1: pci function 0000:00:1f.0
[34203.726009] nvme 0000:00:1f.0: enabling device (0000 -> 0002)
[34203.734574] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
[34203.740890] nvme 0000:00:1f.0: irq 30 for MSI/MSI-X
[34203.846266] nvme 0000:00:1f.0: irq 30 for MSI/MSI-X
[34203.846289] nvme 0000:00:1f.0: irq 31 for MSI/MSI-X
[34203.846322] nvme 0000:00:1f.0: irq 32 for MSI/MSI-X
[34203.858638] nvme1n1: p1 p2
[34329.927343] XFS (nvme0n1p2): Filesystem has duplicate UUID 000000000-44d0-ad12-000000000 – can’t mount
[34742.982379] XFS (nvme0n1p2): Filesystem has duplicate UUID 000000000-44d0-ad12-000000000 – can’t mount

You can easily overcome this by using the mount option below:

$ sudo mount -o rw,nouuid /dev/nvme0n1p2 testdir/

Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *