[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.
Efi firmware/bios uses partuuid to identify the efi partition and you have two efi partitions with the same part-uuid:
{EFI Hard Drive 1}/sdb2
and
{EFI USB Device (SSK)}/nvme1n1p2
Both have the same partuuid fb4091c7-a0e2-4f16-9391-38bb4e4d62d9
would suggest gdisk to change the partuuid of /dev/nvme1n1p2 on the external drive, and delete the current firmware/bios entry for the external drive with efibootmgr, then boot into the external drive and and run
Code:
grub-install --removable
This will prevent grub-install from creating nvram entry in the firmware/bios and allow for booting on other systems by using the firmware boot order.
To allow booting on systems That only support legacy mode, also run
Two internal NVMe-sticks:
-NVMe1 runs under Slackware 15
-NVMe0 runs under ArcoLinux
One internal SSD:
-runs under Windows 10
Some information about my Bios:
Code:
1. It is an "INSYDE" H2-Bios
2. Each Operating System could start over his own EFI (if all activated in Bios)
3. I use the Boot Manager from Arcolinux to boot the 3 operation systems
Thanks.
My problem is still how can I give to the External EFI-partition a new UUID, without to delete it? Is there any posibility?
If you've got ext2, ext3 or ext4 partitions then maybe create a new UUID via uuidgen, then tune2fs will work ?
Or you could use tune2fs -U random /dev/xxx or tune2fs -U time /dev/xxx ...
Code:
# man tune2fs
<<snip>>
-U UUID
Set the universally unique identifier (UUID) of the file system to UUID. The for-
mat of the UUID is a series of hex digits separated by hyphens, like this:
"c1b9d5a2-f162-11cf-9ece-0020afc76f16". The UUID parameter may also be one of the
following:
clear clear the file system UUID
random generate a new randomly-generated UUID
time generate a new time-based UUID
The UUID may be used by mount(8), fsck(8), and /etc/fstab(5) (and possibly others)
by specifying UUID=uuid instead of a block special device name like /dev/hda1.
See uuidgen(8) for more information. If the system does not have a good random
number generator such as /dev/random or /dev/urandom, tune2fs will automatically
use a time-based UUID instead of a randomly-generated UUID.
<<snip>>
I know that tune2fs works on my ext4 Partitions.
There are also btrfstune and reiserfstune.
Both have similar UUID parameters ( check the man pages ).
the EFI-Partition is a VFAT-Partition.
For the Root-partition (ext4) I changed the UUID with tune2fs and the SWAp-partition could be deleted without problems, so I can get a new UUID.
My problm is still the EFI-partition.
With GParted I could change the UUIDs of the EFI and the SWAP-partitions.
I also changed the FSTAB accordingly.
By the BOOT-Screen I can choose the EFI of the external USB...but is still the internal NVMe booting.
Question: should I update the EFI / Grub of the external USB over CHROOT, with the laptop started with the Slackware15-Boot-ISO?
At the grub menu press e for edit, at the line that starts with linux change root=UUID=xxxxxx to root=/dev/nvme1n1p3 ctrl-x to boot, once booted into the external drive check that correct efi partition is mounted to /boot/efi, rerun grub-mkconfig
Last edited by colorpurple21859; 10-15-2022 at 12:07 AM.
stylste--"After the change of the UUIDs you should also change the initrd in the external nvme enabling usb-storage"
OK.
I have changed all the UUIDs of the 3 partitions of the external USB-NVMe. Also I have adapted the FSTAB and GRUB.CFG with the new UUIDs.
When I boot from the external USB-NVMe, it stucks ...no TTY (no /mnt found. Something like https://www.linuxquestions.org/quest...ab-4175672092/).
Should I boot with the ISO from Slackware15, mounting the external USB-NVMe and proceed with INITRD with USB-storage over CHROOT?
#mkinitrd -c -k (kernel e.g. 5.15.19 (write without the word kernel)) -m usb-storage:ehci-pci:ehci-platform (optional uas:ehci-hcd:uhci-hcd:ext4)-u -w 10 -f ext4 /dev/nvme that has the grub entry#
should do
Edit
Excuse me but i dont know how to make the text as code looking
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.