Code: Select all
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c1f44c7c-ad69-49dc-9959-cfc16eb0e295
else
search --no-floppy --fs-uuid --set=root c1f44c7c-ad69-49dc-9959-cfc16eb0e295
fi
echo 'Loading Linux 4.19.86-gentoo-x86_64 ...'
linux /vmlinuz-4.19.86-gentoo-x86_64 root=UUID=363a15fb-07b4-4f5a-b8b9-20e422e4e0fc ro
echo 'Loading initial ramdisk ...'
initrd /initramfs-4.19.86-gentoo-x86_64.img

Is c1f44c7c-ad69-49dc-9959-cfc16eb0e295 the UUID of /dev/sda2? Does ls /boot show that file vmlinuz-4.19.86-gentoo-x86_64 is present?yarug wrote:This is the Grub entry:
Code: Select all
[...] set root='hd0,gpt2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c1f44c7c-ad69-49dc-9959-cfc16eb0e295 else search --no-floppy --fs-uuid --set=root c1f44c7c-ad69-49dc-9959-cfc16eb0e295 [...]
Thanks for the reply GDH-gentoo.GDH-gentoo wrote:Is c1f44c7c-ad69-49dc-9959-cfc16eb0e295 the UUID of /dev/sda2? Does ls /boot show that file vmlinuz-4.19.86-gentoo-x86_64 is present?

Hm, it should just work then. Reboot the computer, and when GRUB's menu is showing, instead of selecting an option, press 'c' to get to the grub> prompt. Then use the ls -lh (hd0,gpt2)/ command to ask GRUB to display the contents of what should be /dev/sda2. Do you see those files in the output?yarug wrote:Yes, c1f44c7c-ad69-49dc-9959-cfc16eb0e295 corresponds to /dev/sda2 (my boot partition) and /boot contains the files vmlinuz-4.19.86-gentoo-x86_64 and initramfs-4.19.86-gentoo-x86_64.img.
Not that I can think of.possible that a separate boot or EFI system partition was or was not mounted at the time the new kerenl was compiled and installed or when grub -mkconfig was run??
Correct. When I enter the chrooted environment before mounting /dev/sda2 to /boot, /boot is empty. After mounting /boot it lists the kernel files:usually ls -al run with separate /boot not mounted should show empty except . and .. and show kernels and asystem maps and configs and grub directory when boot partition is mounted
Code: Select all
(chroot)
00:39 0 livecd / # ls -al /boot
total 8
drwxr-xr-x 2 root root 4096 Oct 16 2016 .
drwxr-xr-x 21 root root 4096 Dec 23 16:36 ..
-rw-r--r-- 1 root root 0 Oct 16 2016 .keep
(chroot)
00:39 0 livecd / # mount /dev/sda2 /boot
(chroot)
00:40 0 livecd / # ls -al /boot
total 17594
drwxr-xr-x 4 root root 1024 Dec 23 20:20 .
drwxr-xr-x 21 root root 4096 Dec 23 16:36 ..
-rw-r--r-- 1 root root 0 Oct 16 2016 .keep
-rw-r--r-- 1 root root 3309939 Dec 23 20:00 System.map-4.19.86-gentoo-x86_64
drwxr-xr-x 6 root root 1024 Dec 23 20:21 grub
-rw-r--r-- 1 root root 8070776 Dec 23 20:17 initramfs-4.19.86-gentoo-x86_64.img
drwx------ 2 root root 12288 Sep 12 2013 lost+found
-rw-r--r-- 1 root root 6541984 Dec 23 20:00 vmlinuz-4.19.86-gentoo-x86_64
I'm not sure I follow. There are no files in the /boot directory if /boot is not mounted (/dev/sda2).umount the boot partition then mount it somewhere else like /mnt or /mnt/boot and then mv all files in the boot directory to the /mnt location where the boot partition is mounted then umount from /mnt abd mount boot partition to the empty boot directory/mountpoint ls /boot check all is well
Code: Select all
livecd ~ # mount /dev/sda2 /mnt/gentoo
livecd ~ # ls -al /mnt/gentoo/
total 12946
drwxr-xr-x 4 root root 1024 Dec 25 00:52 .
drwxr-xr-x 6 root root 120 Dec 24 17:22 ..
-rw-r--r-- 1 root root 0 Oct 16 2016 .keep
-rw-r--r-- 1 root root 2961468 Dec 25 00:38 System.map-4.19.86-gentoo-x86_64
drwxr-xr-x 6 root root 1024 Dec 25 00:52 grub
-rw-r--r-- 1 root root 4954620 Dec 25 00:46 initramfs-4.19.86-gentoo-x86_64.img
drwx------ 2 root root 12288 Sep 12 2013 lost+found
-rw-r--r-- 1 root root 5268016 Dec 25 00:38 vmlinuz-4.19.86-gentoo-x86_64
Code: Select all
livecd ~ # umount /dev/sda2
livecd ~ # mount /dev/sdb2 /mnt/gentoo
livecd ~ # ls -al /mnt/gentoo/
total 59726
drwxr-xr-x 4 root root 1024 Oct 16 2016 .
drwxr-xr-x 6 root root 120 Dec 24 17:22 ..
-rw-r--r-- 1 root root 0 Oct 16 2016 .keep
-rw-r--r-- 1 root root 2101526 Apr 16 2014 System.map-genkernel-x86_64-3.12.13-gentoo
-rw-r--r-- 1 root root 2193027 Jan 24 2015 System.map-genkernel-x86_64-3.17.7-gentoo
-rw-r--r-- 1 root root 2192880 Jan 31 2015 System.map-genkernel-x86_64-3.17.8-gentoo-r1
-rw-r--r-- 1 root root 2264577 Jan 3 2016 System.map-genkernel-x86_64-4.1.12-gentoo
drwxr-xr-x 4 root root 1024 Jan 3 2016 grub
-rw-r--r-- 1 root root 9234244 Apr 17 2014 initramfs-genkernel-x86_64-3.12.13-gentoo
-rw-r--r-- 1 root root 9312112 Jan 24 2015 initramfs-genkernel-x86_64-3.17.7-gentoo
-rw-r--r-- 1 root root 9308860 Jan 31 2015 initramfs-genkernel-x86_64-3.17.8-gentoo-r1
-rw-r--r-- 1 root root 9426612 Jan 3 2016 initramfs-genkernel-x86_64-4.1.12-gentoo
-rw-r--r-- 1 root root 3600880 Apr 16 2014 kernel-genkernel-x86_64-3.12.13-gentoo
-rw-r--r-- 1 root root 3704384 Jan 24 2015 kernel-genkernel-x86_64-3.17.7-gentoo
-rw-r--r-- 1 root root 3704224 Jan 31 2015 kernel-genkernel-x86_64-3.17.8-gentoo-r1
-rw-r--r-- 1 root root 3840832 Jan 3 2016 kernel-genkernel-x86_64-4.1.12-gentoo
drwx------ 2 root root 12288 Sep 12 2013 lost+found
Code: Select all
livecd ~ # mount /dev/sda4 /mnt/gentoo
livecd ~ # umount /dev/sda4
livecd ~ # mount /dev/sdb4 /mnt/gentoo
mount: /mnt/gentoo: wrong fs type, bad option, bad superblock on /dev/sdb4, missing codepage or helper program, or other error.
Code: Select all
livecd ~ # parted -a optimal /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA MB1000GCWCV (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 34.6MB 33.6MB grub bios_grub
2 34.6MB 303MB 268MB ext2 boot msftdata
3 303MB 4598MB 4295MB linux-swap(v1) swap msftdata
4 4598MB 1000GB 996GB ext4 rootfs msftdata
(parted) q
livecd ~ # parted -a optimal /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
OK/Cancel? OK
Model: ATA MB1000GCWCV (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 34.6MB 33.6MB grub bios_grub
2 34.6MB 303MB 268MB ext2 boot msftdata
3 303MB 4598MB 4295MB linux-swap(v1) swap msftdata
4 4598MB 1000GB 996GB ext4 rootfs msftdata
(parted) q
Code: Select all
livecd ~ # blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: PARTLABEL="grub" PARTUUID="f07b1822-c457-44f1-bcfb-9a75a15a4648"
/dev/sda2: UUID="c1f44c7c-ad69-49dc-9959-cfc16eb0e295" TYPE="ext2" PARTLABEL="boot" PARTUUID="fb2eb17c-f0a6-4799-b1e0-c856cc4caec9"
/dev/sda3: UUID="b68d0122-6c9e-44de-8ae3-3e0f38a9fb10" TYPE="swap" PARTLABEL="swap" PARTUUID="44fd6afc-6c84-4ee5-95c8-692f3c6b8423"
/dev/sda4: UUID="363a15fb-07b4-4f5a-b8b9-20e422e4e0fc" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="02b72bbd-cec7-4f99-b8c0-245a2bdabe8a"
/dev/sdb1: PARTLABEL="grub" PARTUUID="f07b1822-c457-44f1-bcfb-9a75a15a4648"
/dev/sdb2: UUID="c1f44c7c-ad69-49dc-9959-cfc16eb0e295" TYPE="ext2" PARTLABEL="boot" PARTUUID="fb2eb17c-f0a6-4799-b1e0-c856cc4caec9"
/dev/sdb3: UUID="b68d0122-6c9e-44de-8ae3-3e0f38a9fb10" TYPE="swap" PARTLABEL="swap" PARTUUID="44fd6afc-6c84-4ee5-95c8-692f3c6b8423"
/dev/sdb4: UUID="363a15fb-07b4-4f5a-b8b9-20e422e4e0fc" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="02b72bbd-cec7-4f99-b8c0-245a2bdabe8a"
/dev/sdc1: UUID="2019-12-23-03-48-36-03" LABEL="Gentoo amd64 20191222T214502Z" TYPE="iso9660" PTUUID="5cd52f0e" PTTYPE="dos" PARTUUID="5cd52f0e-01"
/dev/sdc2: SEC_TYPE="msdos" LABEL_FATBOOT="GENTOOLIVE" LABEL="GENTOOLIVE" UUID="913D-5710" TYPE="vfat" PARTUUID="5cd52f0e-02"
you wrote:had to replace a hard disk (RAID 1)
Is it normal blkid shows the same UUID/PARTUUID for the 2 drives (in my case)? I would assume if it where 2 seperate drives the IDs would be different?DONAHUE wrote: blklid says there is no raidyou wrote:had to replace a hard disk (RAID 1)
apparently array was not rebuilt after the disk replacement
Cloning UUID/PARTUUID is possible but seems to violate the spirit and intent of Universally Unique IDentifier. HP does do strange things ...you wrote:in my hardware raid setup.
and
Is it normal blkid shows the same UUID/PARTUUID for the 2 drives (in my case)? I would assume if it where 2 seperate drives the IDs would be different?