Page 1 of 1

cannot find UUID

Posted: Sat Aug 31, 2024 7:59 pm
by Trapster

Yesterday I downloaded and successfully did a frugal install to play with easyos.
Everything booted fine, had sound, wifi, etc...
I went to reboot easyos and I got the 'cannot find UUID'
I have this frugal install on sda2 with 12 other puppy and pupdog frugal installs.
Now, they all give me the cannot find UUID when booting into ANY of them.
I can boot into a separate usb stick and check the UUID. All the grub entries have the correct UUID from blkid.

How do I fix this?
Help.

Added: I use a full install of antix on sda1 to boot from.
The frugal install is using easy-4.3.5-x86.img


Re: cannot find UUID

Posted: Sat Aug 31, 2024 8:33 pm
by williwaw

can you provide some more detail about the step you took to make the install?
can you describe what you see just before the error message, maybe a pic?
can you see the other frugal install folders if you boot into antiX and then plug in and look at your USB drive?


Re: cannot find UUID

Posted: Sat Aug 31, 2024 8:41 pm
by Trapster

I did the frugal install my normal way, Extracted the 3 files from the image file and put them in a folder. I added the boot stanzas to grub and everything booted fine.

I can't remember the exact message when booting. Something to the effect of "cannot find UUID, device does not exist"

This happens now on all my frugal installs since the reboot. Is this related to easyos being encrypted?
Everything looks normal with sda2 with gparted.
Yes, when in antix, I can see everything. The only thing that seems weird is that I cannot unmount sda2 when booting from sda1. Something about /proc/2524/exe is in use (?)
Since something is effecting all my frugal boots, I assume it's drive/partition related?


Re: cannot find UUID

Posted: Sat Aug 31, 2024 8:54 pm
by Trapster

Results of blkid

Code: Select all

$ blkid
/dev/sda1: LABEL="rootantiX17.3" UUID="a7b64448-da9b-4d5a-9a59-0038c4218990" TYPE="ext4" PTTYPE="dos" PARTUUID="355aa9d3-01"
/dev/sda2: LABEL="rootantiX17.3" UUID="f0688b03-2334-4b4a-8848-35b2bdaa97ae" TYPE="ext4" PTTYPE="dos" PARTUUID="355aa9d3-02"
/dev/sdb1: LABEL="antiX-Live-usb" UUID="e54e6ed6-1f8f-40f0-8b65-3c7d5d8e3d55" TYPE="ext4" PARTUUID="47c3f639-01"
guest@antix1:~

results of lsof | grep sda2 to find process running on sda2 while running antix from sda1.
Reasons why I can't unmount sda2

Code: Select all

guest@antix1:~
$ lsof | grep sda2
jbd2/sda2  2524             root  cwd   unknown                             /proc/2524/cwd (readlink: Permission denied)
jbd2/sda2  2524             root  rtd   unknown                             /proc/2524/root (readlink: Permission denied)
jbd2/sda2  2524             root  txt   unknown                             /proc/2524/exe (readlink: Permission denied)
jbd2/sda2  2524             root NOFD                                       /proc/2524/fd (opendir: Permission denied)
guest@antix1:~

Exact Boot message:

Code: Select all

error: no such device: f0688b03-2334-4b4a-8848-35b2bdaa97ae
error: can't find command 'kernel'.
error: you need to load the kernel first
Press any key to continue...

Hitting any key returns me to the grub/boot menu.

Part of grub.cfg:

Code: Select all

menuentry "weedogvoid (sda2)" {
 search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
 linux  /weedogvoid/vmlinuz w_bootfrom=/mnt/sda2/weedogvoid/ w_changes=/mnt/sda2/weedogvoid
 initrd /weedogvoid/initrd.gz
}
menuentry "Slacko-7 (sda2)" {
 search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
 linux  /slacko-7/vmlinuz pmedia=atahd psubdir=slacko-7 pfix=fsck
 initrd /slacko-7/initrd.gz
}
menuentry "Bullseye (sda2)" {
 search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
 linux  /bullseye/live/vmlinuz1 noauto pmedia=atahd from=/bullseye/ root=UUID=f0688b03-2334-4b4a-8848-35b2bdaa97ae:/bullseye/live psubdir=/bullseye/live changes=/bullseye/changes pfix=fsck
 initrd /bullseye/live/initrd1.xz
}
menuentry "Bookworm (sda2)" {
  search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
  linux /bookworm/live/vmlinuz1 noauto pmedia=atahd from=/bookworm/ root=UUID=f0688b03-2334-4b4a-8848-35b2bdaa97ae:/bookworm/live psubdir=/bookworm/live changes=/bookworm/live/changes pfix=fsck
  initrd /bookworm/live/initrd1.xz
}
menuentry "Mx" {
  search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
  linux /mx/antiX/vmlinuz root=UUID=f0688b03-2334-4b4a-8848-35b2bdaa97ae:/mx vga=791
  initrd /mx/antiX/initrd.gz
}
#menuentry "Voidpup (sda2)" {
# search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
# linux  /void/vmlinuz noauto pmedia=atahd from=/mnt/sda2/void/ root=UUID=f0688b03-2334-4b4a-8848-35b2bdaa97ae:/void psubdir=/void vga=791 pfix=fsck
# initrd /void/initrd.gz
#}

menuentry "VoidPup32 22.02 (sda2) - Don't copy SFS files to RAM" {
    search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
    linux /void/vmlinuz pmedia=atahd psubdir=void pfix=fsck,nocopy 
    if [ -e /ucode.cpio ]; then
      initrd /ucode.cpio /initrd.gz
    else
      initrd /void/initrd.gz
    fi
}

menuentry "antiX GNU/Linux - sda1" --class antix --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a7b64448-da9b-4d5a-9a59-0038c4218990' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  a7b64448-da9b-4d5a-9a59-0038c4218990
	else
	  search --no-floppy --fs-uuid --set=root a7b64448-da9b-4d5a-9a59-0038c4218990
	fi
	echo	'Loading Linux 4.9.146-antix.1-486-smp ...'
	linux	/boot/vmlinuz-4.9.146-antix.1-486-smp root=UUID=a7b64448-da9b-4d5a-9a59-0038c4218990 ro vga=791 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.9.146-antix.1-486-smp
}
menuentry "Fossapup - UPupFF+D 20.12 - Don't copy SFS files to RAM" {
    search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
    linux /fossapup/vmlinuz pmedia=atahd psubdir=fossapup pfix=fsck,nocopy 
    if [ -e /ucode.cpio ]; then
      initrd /ucode.cpio /fossapup/initrd.gz
    else
      initrd /fossapup/initrd.gz
    fi
}
menuentry "Jammy Jellyfish 22.04+8" {
	search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
	linux /jammyjellyfish/vmlinuz pmedia=atahd psubdir=jammyjellyfish pfix=fsck,nocopy
    initrd /jammyjellyfish/initrd.gz

}

menuentry "antiX-22 SD Card" {
	insmod part_msdos
		insmod ext2
		set root='hd0,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 e54e6ed6-1f8f-40f0-8b65-3c7d5d8e3d55
		else
		  search --no-floppy --fs-uuid --set=root e54e6ed6-1f8f-40f0-8b65-3c7d5d8e3d55
		fi
		linux /antiX/vmlinuz root=UUID=e54e6ed6-1f8f-40f0-8b65-3c7d5d8e3d55 ro vga=791 gfxsave quiet
		initrd /antiX/initrd.gz
}

#menuentry "antix-22-iso" {
# insmod ext2
#  search --no-floppy --fs-uuid --set f0688b03-2334-4b4a-8848-35b2bdaa97ae
#  linux /antix-22-iso/vmlinuz from=hd bdir=/antix-22-iso gfxsave persist=auto,home!,root!
#  initrd /antix-22-iso/initrd.gz
#}
# w_bootfrom=UUID=f0688b03-2334-4b4a-8848-35b2bdaa97ae

menuentry "antiX-22" {
		search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
		linux /antix-22-iso/vmlinuz from=hd bdir=/antix-22-iso gfxsave persist=auto,home!,root! root=UUID=f0688b03-2334-4b4a-8848-35b2bdaa97ae ro vga=791 quiet menus
		initrd /antix-22-iso/initrd.gz
}
menuentry "Jammypup-iso " {
insmod ext2
set isofile="/jammyjellyfish/JammyPup32-22.04+8.iso"
loopback loop (hd0,2)$isofile
linux (loop)/jammyjellyfish/vmlinuz find_iso=$isofile
initrd (loop)/jammyjellyfish/initrd
}

menuentry "Vanilla pup 9.3.14 - don't copy SFS to Ram" {
	search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
	linux /vanillapup/vmlinuz pmedia=atahd psubdir=vanillapup pfix=fsck,nocopy
	errorcheck off
	initrd /vanillapup/initrd.gz
}

menuentry "easyos (sda2)" {
	search --no-floppy --fs-uuid --set=root f0688b03-2334-4b4a-8848-35b2bdaa97ae
	kernel /easyos/vmlinuz rw wkg_uuid=f0688b03-2334-4b4a-8848-35b2bdaa97ae wkg_dir=easyos pfix=fsck,nocopy
	initrd /easyos/initrd
}

Re: cannot find UUID

Posted: Sun Sep 01, 2024 12:18 am
by BarryK

It looks like you have a too-old version of grub, that does not support ext4 encryption. This page explains:

https://easyos.org/install/easy-frugal- ... ation.html

Quoting:

Problem with old GRUB versions:
GRUB v1, GRUB4DOS, and GRUB v2 prior to version 2.0.4 (released 2019), do not recognise an ext4 filesystem if it has modern features such as the "encrypt" feature turned on. You can still use them; however, the feature of EasyOS to encrypt some folders in the working-partition will not be available. Folder encryption is a security protection if someone steals your computer, or whatever media EasyOS is installed on. You will have to forego that extra protection.

If this is your situation, you either have to update grub, or revert ext4 to not have encryption feature enabled.

The latter is easier said than done. Easy to enable it:

Code: Select all

# tune2fs -O encrypt /dev/<partition>

...however, tune2fs cannot turn encrypt off.

Can't recall how to turn it off. Quick search, yes, need to use debugfs:

https://unix.stackexchange.com/question ... filesystem


Re: cannot find UUID (SOLVED)

Posted: Mon Sep 02, 2024 1:50 pm
by Trapster

Updating grub to 2.06 fixed the issue.

I downloaded and compiled 2.06.
My issue now is update-grub is looking for files in /usr/local/etc/grub.d instead of /etc/grub.d
Should I have done something different with ./configure or make?
I am temporarily using symlinks until I figure that one out.

Regardless, I am now able to boot into my other frugal installs.

Thanks!


Re: cannot find UUID (SOLVED)

Posted: Mon Sep 02, 2024 3:53 pm
by BarryK
Trapster wrote: Mon Sep 02, 2024 1:50 pm

Updating grub to 2.06 fixed the issue.

I downloaded and compiled 2.06.
My issue now is update-grub is looking for files in /usr/local/etc/grub.d instead of /etc/grub.d
Should I have done something different with ./configure or make?
I am temporarily using symlinks until I figure that one out.

Regardless, I am now able to boot into my other frugal installs.

Thanks!

Yes, you should always do this:

Code: Select all

# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

Re: cannot find UUID

Posted: Mon Sep 02, 2024 8:47 pm
by Trapster

That did it, thanks!