LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-13-2022, 12:14 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594

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
Code:
grub-install --target=i386-pc --force /dev/nvme1n1

Last edited by colorpurple21859; 10-13-2022 at 12:27 PM.
 
Old 10-14-2022, 09:24 AM   #17
Klaus150
LQ Newbie
 
Registered: Nov 2020
Location: Germany / Somewhere in Brandenburg
Distribution: Slackware15, ArcoLinux, Ubuntu, Debian
Posts: 27

Original Poster
Rep: Reputation: Disabled
My Laptop:
Code:
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?
Attached Thumbnails
Click image for larger version

Name:	Bildschirmfoto_2022-10-14_16-09-01.jpg
Views:	6
Size:	106.9 KB
ID:	39725   Click image for larger version

Name:	Bildschirmfoto_2022-10-14_16-09-39.jpg
Views:	8
Size:	124.0 KB
ID:	39726  
 
Old 10-14-2022, 10:00 AM   #18
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Klaus150 --

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 ).

HTH

-- kjh

p.s. I've got an Insyde Bios on my Laptop too
 
Old 10-14-2022, 10:06 AM   #19
Klaus150
LQ Newbie
 
Registered: Nov 2020
Location: Germany / Somewhere in Brandenburg
Distribution: Slackware15, ArcoLinux, Ubuntu, Debian
Posts: 27

Original Poster
Rep: Reputation: Disabled
kjhambrick--

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.

Regards,
Klaus150
 
Old 10-14-2022, 10:42 AM   #20
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Sorry Klaus150, I missed that.

There is a tune.exfat but on Slackware 15.0 but no mention of UUID

This https://askubuntu.com/questions/1250...hange-partuuid Ubuntu Links shows how to use gdisk but I've no experience here ( my Laptop came with a Windows 11 labeled Partition )

According to the info on the link and in the gdisk man page, Expert's Option 'c' can change the GUID on a GPT-Partitioned Disk.

No Experience here so I'll butt out now

-- kjh
 
Old 10-14-2022, 02:49 PM   #21
Klaus150
LQ Newbie
 
Registered: Nov 2020
Location: Germany / Somewhere in Brandenburg
Distribution: Slackware15, ArcoLinux, Ubuntu, Debian
Posts: 27

Original Poster
Rep: Reputation: Disabled
kjhambrick--

Thanks. That's true: I can change only the GUID (I've done it), but not the UUID.
Regards,
Klaus150
 
Old 10-14-2022, 03:30 PM   #22
Klaus150
LQ Newbie
 
Registered: Nov 2020
Location: Germany / Somewhere in Brandenburg
Distribution: Slackware15, ArcoLinux, Ubuntu, Debian
Posts: 27

Original Poster
Rep: Reputation: Disabled
A small progress:
Code:
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?

Last edited by Klaus150; 10-14-2022 at 03:52 PM.
 
Old 10-14-2022, 04:10 PM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
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.
 
Old 10-14-2022, 07:47 PM   #24
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
One way of changing uuid of efi partition is to copy/move everything off it, reformat and copy/move everything back on.
 
Old 10-15-2022, 02:07 AM   #25
stylste
LQ Newbie
 
Registered: Oct 2022
Distribution: Slackware , Arch
Posts: 18

Rep: Reputation: 2
After the change of the UUIDs you should also change the initrd in the external nvme enabling usb-storage
 
Old 10-15-2022, 04:04 AM   #26
stylste
LQ Newbie
 
Registered: Oct 2022
Distribution: Slackware , Arch
Posts: 18

Rep: Reputation: 2
Also you should change the UUIDs in elilo.conf or grug.cfg in external nvme
 
Old 10-15-2022, 05:54 AM   #27
Klaus150
LQ Newbie
 
Registered: Nov 2020
Location: Germany / Somewhere in Brandenburg
Distribution: Slackware15, ArcoLinux, Ubuntu, Debian
Posts: 27

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-15-2022, 07:40 AM   #28
stylste
LQ Newbie
 
Registered: Oct 2022
Distribution: Slackware , Arch
Posts: 18

Rep: Reputation: 2
Yes this the next step .
 
Old 10-15-2022, 07:46 AM   #29
stylste
LQ Newbie
 
Registered: Oct 2022
Distribution: Slackware , Arch
Posts: 18

Rep: Reputation: 2
#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

Last edited by stylste; 10-15-2022 at 07:49 AM.
 
Old 10-15-2022, 08:55 AM   #30
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
As suggested already you can use customs labels instead of uuid to identify partitions

Example:
Code:
fatlabel /dev/nvme1n1p2 SLACK-EFI
e2label /dev/nvme1n1p3 SLACK-ROOT
swapoff /dev/nvme1n1p4
mkswap -L SLACK-SWAP /dev/nvme1n1p4
swapon -a
/etc/fstab becomes
Code:
LABEL=SLACK-EFI     /boot/efi    vfat        defaults    1   0
LABEL=SLACK-SWAP    swap         swap        defaults    0   0
LABEL=SLACK-ROOT    /            ext4        defaults    1   1
...
Using elilo bootloader, /boot/efi/EFI/Slackware/elilo.conf should be like
Code:
chooser=simple
delay=1
timeout=1
read-only
root="LABEL=SLACK-ROOT"
#
image=vmlinuz...
I don't know how to configure grub to use partitions label instead of uuids (I don't use grub)
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Data in a Flash, Part II: Using NVMe Drives and Creating an NVMe over Fabrics Network LXer Syndicated Linux News 0 05-20-2019 11:41 PM
Clone and boot from clone geelsu Linux - Server 5 12-17-2018 12:03 PM
Migrate Linux/win10 dual boot from MBR nvme drive to a new GPT nvme drive bluemoo Linux - Software 7 09-25-2018 06:42 PM
LXer: Open-spec SBC is a clone of a clone of a clone of a Raspberry Pi 3 LXer Syndicated Linux News 0 04-25-2018 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration