I installed an NVME drive in an Argon One V3 case. I wanted to see how far I could push the speed, inevitably it eventually failed to boot with a kernel panic.
So I flashed a new dietpi firmware on a USB drive however the new USB drive would not boot because even though the boot order was correct and it ought to have tried the USB drive first the PARTUUID on both the NVME drive and the USB drive were the same so the PI 5 just carried on trying to boot the non working NVME drive because the PARTUUID was the same on both cmdline.txt resulting in the same kernel panic.
So my question is, is there a way to set the PartUUID for a new install because it always seems to be :-
root=PARTUUID=b0baa006-02 rootfstype=ext4 rootwait net.ifnames=0 logo.nologo console=serial0,115200 console=tty1
and fstab
PARTUUID=b0baa006-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=b0baa006-01 /boot/firmware vfat noatime,lazytime,rw 0 2
I think it would be really useful to be able to change the PARTUUID before going through the Dietpi install procedure.which would then allow another instance of Dietpi flashed to the USB stick to boot and to make changes on the non working NVME drive.
PARTUUID
is already part of the image and there is no functionality to change this during initial install. And it’s not planned to add currently.
You would need to change PARTUUID
after image has been flashed.
HI, thanks for your reply, I did try changing the PARTUUID afterwards with both fdisk and gdisk but I failed. Finally I flashed a raspberry pi image which had a different PARTUUID which then booted and I was then able to make corrections to the NVME drive.
Thank you.
you need to unmound the drive before using gdisk
. Did you?
Hi, yes I did umount the drive, gdisk asked me which partition to use 1 or 2
I tried both of them but the PARTUUID afterwards looked more like a full UUID rather than something ending with 01 or 02.
I wasn’t sure if I need to change both PARTUUID’s
I did copy the new PARTUUID over to fstab and cmdline.txt but after doing that the USB drive would not boot anymore
I have found out how to change the PARTUUID from this link :-
I used fdisk.
After changing the PARTUUID with fdisk I changed PARTUUID in cmdline.txt and also in /etc/fstab to the new PARTUUID after doing this the USB drive booted with the new PARTUUID
Some of the things which confused me before finding out how to change the PARTUUID using the supplied link.
-
To change the PARTUUID you change the disk identifier with fdisk
-
The PARTUUID (disk identifier) is changed by working on sdx NOT sdx1 or sdx2
-
After completing this procedure both partitions on the Dietpi USB drive will have PARTUUID’S similar to PARTUUID=64123f76-01 and PARTUUID=64123f76-02