[SOLVED] Slackware 15 - NVME clone to external NVME - Boot problem from external NVME
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware 15 - NVME clone to external NVME - Boot problem from external NVME
Hi,
I run Slackware 15 on an internal NVMe without any problem. To have a second "Backup", I have cloned with Clonezilla the internal NVMe to an external NVMe, connected to the laptop on the GEN2-Usb. Cloning runs without problems.
I also changed the FSTAB of the external NVMe to the right UUIDs.
By boot over EFI, i can choose the external NVMe, but always boot into the internal NVMe.
Any idea what I can do?
Thanks a lot.
Regards,
Klaus
I just noticed, that the internal NVMe have the same UUIDs as the external USB-NVMe (for ESP / SWAP and Root).
Should I change the UUIDs with tune2fs ?
I just noticed, that the internal NVMe have the same UUIDs as the external USB-NVMe (for ESP / SWAP and Root).
Should I change the UUIDs with tune2fs ?
I have changed in the clone of the FSTAB-file the original INTERNAL NVMe against the /DEV/SDBx (as per LSBLK).
I can boot from the external NVMe (shown also by EFIBOOTMGR), but it load everything directly from the internal NVMe. IT means, there are some links to the Internal NVMe.
Any Idea?
I have changed in the clone of the FSTAB-file the original INTERNAL NVMe against the /DEV/SDBx (as per LSBLK).
I can boot from the external NVMe (shown also by EFIBOOTMGR), but it load everything directly from the internal NVMe. IT means, there are some links to the Internal NVMe.
Any Idea?
Use labels in fstab, or if you insist on using names like 'sd*' make sure the kernel doesn't change the names dynamically.
It does that when usb_storage is compiled in, so where sda was initially SATA it may sometimes become USB ..
I'm assuming when nvme is compiled in, the kernel also dynamically names it nvme0/nvme1 depending on how it's wired and what is set in bios.
So yeah, I guess use labels or uuid in fstab.
I just noticed, that the internal NVMe have the same UUIDs as the external USB-NVMe (for ESP / SWAP and Root).
Should I change the UUIDs with tune2fs ?
All UUIDs on a clone need to be changed, lest you risk corruption you may not notice until something inexplicably crashes sometime in the future.
Please edit your post #3 to contain what you posted within code tags. Always paste command input/output within code tags to preserve the readability of the original output.
As others have pointed out each fileystem should have its own UUID (file system UUID) and each partition its own PARTUUID (Partition UUID). The second U in UUID stands for unique.
I have changed the UUID of the ROOT-partition.
I can also delete the SWAP-partition to get a new UUID for it. No Poblem.
My problem is how to change the UUID of the EFI (which is VFAT)-Partition.
Maybe some hints. Thanks.
The real mess is that a certain boot loader sometimes decides where the root is by reading uuid.
If you have such a boot loader, which you neglected to mention, it may boot from nvme1 and set sdb3 as root because sdb3 has the same uuid.
And I don't understand the benefit of multiple vfat partitions for EFI, don't you need just one per machine?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.