View previous topic :: View next topic |
Author |
Message |
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Tue Sep 19, 2023 6:47 am Post subject: [ABORTED] Gentoo not detected by Debian's GRUB |
|
|
Hello,
This topic is out-dated, an installation with LVM seems to brings too many problems as it is for now. I re-installed the system, and I have still problem to boot it up, more here.
Thanks for your time and help, will try to close this topic.
this is the context:
I use SystemD Stage and follow the AMD64 Handbook.
From Debian 12 I resized my hard drive and set up a volume group (LVM) of 250Gb to host a Gentoo fresh installation. Both hard drive containing OS are using GPT tables. Alongside them there is also a Windows 11. I used a chroot to install Gentoo from Debian.
In that volume group I have:
/ : 64Gb, ext4
/home: 128Gb, ext4
/usr/src: 10Gb, ext4
/var/cache/distfiles: 30Gb, ext4
/var/tmp/portage: tmpfs
In fstab these partition are mounted like this:
Code: | ### LVM
### https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System#Filesystem_information
### "UUIDs of the filesystem on a LVM volume and its LVM snapshots are identical, therefore"
### "using UUIDs to mount LVM volumes should be avoided."
# /dev/mapper/vg0_gentoo-lv_vol1_gentoo_home: UUID="ea4955a7-b38c-4572-a7e0-33e8461f56ab" BLOCK_SIZE="4096" TYPE="ext4"
# /dev/mapper/vg0_gentoo-lv_vol1_gentoo_usr_src: UUID="a17cf1de-a5dc-44ff-a2bb-e4f542d90f96" BLOCK_SIZE="4096" TYPE="ext4"
# /dev/mapper/vg0_gentoo-lv_vol1_gentoo_root: UUID="6a2be7fa-b2e3-45d7-bef1-3c763ffc6b07" BLOCK_SIZE="4096" TYPE="ext4"
# /dev/mapper/vg0_gentoo-lv_vol1_gentoo_var_cache_distfiles: UUID="4be17401-b3d6-405a-a392-91a58e09d9d9" BLOCK_SIZE="4096" TYPE="ext4"
# /
/dev/mapper/vg0_gentoo-lv_vol1_gentoo_root / ext4 defaults,noatime 0 1
# /home
/dev/mapper/vg0_gentoo-lv_vol1_gentoo_home /home ext4 defaults,noatime 0 2
# Swap
# No swap, not very good with tmpfs. In emergency, using a swap file could do the tricks.
# /usr/src
/dev/mapper/vg0_gentoo-lv_vol1_gentoo_usr_src /usr/src ext4 defaults,noatime 0 2
# /var/cache/distfiles
/dev/mapper/vg0_gentoo-lv_vol1_gentoo_var_cache_distfiles /var/cache/distfiles ext4 defaults,noatime 0 2
# /var/tmp/portage
# https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
# "The size parameter can be adjusted in /etc/fstab to set the max size of the tmpfs,"
# "limiting RAM usage. Systems with large amounts of RAM can increase the value quite"
# "significantly."
#
# From @sam on #gentoo@libera.eu.chat: having only 8Gb left for system is a terrible idea.
# 16Gb is probably more suited with 32Gb of memory.
tmpfs /var/tmp/portage tmpfs size=16G,uid=portage,gid=portage,mode=775 0 0 |
EDIT: While composing this message, I just realized that Debian is mounting the /boot/efi partition at boot, while Gentoo was not. So I added this line:
Code: | UUID=569B-9899 /boot/efi vfat umask=0077 0 1 |
[i](Same, exact problem, but at least I think I needed it…)[/i]
After some days of questionning and trying, I got a newly installed Gentoo… that is unbootable in that state. GRUB (from Debian) don't detect it if using os-prober, updating grub and re-installing it on my main drive (where are Debian and Windows main partition, / and C:, as the ESP partition).
If I try to boot directly on that hard drive (with Gentoo LVM VG), I get a GRUB error:
Code: | GRUB Loading.
Welcome to GRUB!
error: file '/boot/grub/i386-pc/normal.mod' not found.
grub rescue> _ |
The thing is while installing Gentoo's bootloader, midway I realized I should keep GRUB from Debian «just in case» and just add Gentoo. I removed since sys-boot/grub, removed the GRUB_PLATFORMS line.
And now I'm stuck.
Other things I noted on my Gentoo's chroot that /boot is very different from Debian:
On Gentoo:
Code: | Desktop / # ls /boot/*
/boot/config-6.1.53-gentoo-dist /boot/System.map-6.1.53-gentoo-dist /boot/vmlinuz-6.1.53-gentoo-dist
/boot/initramfs-6.1.53-gentoo-dist.img /boot/System.map-6.1.53-gentoo-x86_64.old /boot/vmlinuz-6.1.53-gentoo-x86_64.old
/boot/grub: |
On Debian:
Code: | [08:26:01]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# ls /boot/*
/boot/config-6.1.0-12-amd64 /boot/initrd.img-6.1.0-12-amd64 /boot/System.map-6.1.0-12-amd64 /boot/vmlinuz-6.1.0-12-amd64
/boot/efi:
EFI
/boot/grub:
fonts grub.cfg grubenv locale unicode.pf2 x86_64-efi
/boot/lost+found: |
The ESP partition is on the same hard drive as Debian and Windows, but not Gentoo. This partition contains as you can see here:
Code: | [08:28:53]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# ls /boot/efi/EFI/
Boot debian Microsoft |
I think, and I could be very wrong, that Gentoo don't «know» where is the ESP partition.
Since I'm not sure what is relevant, a few files and command output that seems always important:
Code: | Desktop / # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
#LC_MESSAGES=C.ut8
LC_MESSAGES=fr_FR.utf8
MAKEOPTS="-j12"
#PORTAGE_SCHEDULING_POLICY="idle"
USE="-gtk -gnome grub qt5 qt6 kde dvd dvdr alsa cdr bash-completion bluetooth colord crypt css cups curl ffmpeg flac gif gimp git gstreamer gui gzip handbook hddtemp icu jack javascript jpeg jpeg2k lm-sensors man matroska mp3 mp4 mpeg mplayer mtp ncurses networkmanager nocd nvenc ogg pdf png posix pulseaudio raw rdp readline scanner smp snmp sound spell ssl syslog systemd udev udisks uefi unicode upower usb v4l vcd verify-sig videos vim-syntax vorbis vulkan wayland webkit x264 xattr xml xmpp zip lvm gles2"
VIDEO_CARDS="nvidia vesa amdgpu"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE" |
From Debian:
Code: | [08:28:55]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# fdisk -l
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 39A3DDF1-4DAD-4175-B6F2-4DB1636C6C7A
Device Start End Sectors Size Type
/dev/sda1 2048 1085439 1083392 529M Windows recovery environment
/dev/sda2 1085440 1290239 204800 100M EFI System
/dev/sda3 1290240 1323007 32768 16M Microsoft reserved
/dev/sda4 1323008 249399295 248076288 118.3G Microsoft basic data
/dev/sda5 249399296 250718207 1318912 644M Windows recovery environment
/dev/sda6 250720256 281970687 31250432 14.9G Linux swap
/dev/sda7 281970688 283924479 1953792 954M BIOS boot
/dev/sda8 283924480 342517759 58593280 27.9G Linux filesystem
/dev/sda9 405745664 500117503 94371840 45G Linux filesystem
/dev/sda10 342517760 403455259 60937500 29.1G Linux filesystem
/dev/sda11 403456000 405745663 2289664 1.1G Linux filesystem
Partition table entries are not in disk order.
Disk /dev/sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EZEX-00B
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x02e41f56
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 976760831 976758784 465.8G 7 HPFS/NTFS/exFAT
/dev/sdc2 976760832 1953523711 976762880 465.8G 83 Linux
Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 860
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 926A88DB-E42A-4526-9013-B5F302971C07
Device Start End Sectors Size Type
/dev/sdb1 34 32767 32734 16M Microsoft reserved
/dev/sdb2 61440 1429233663 1429172224 681.5G Microsoft basic data
/dev/sdb3 1429233664 1953523711 524290048 250G Linux filesystem
Disk /dev/mapper/vg0_gentoo-lv_vol1_gentoo_root: 64 GiB, 68719476736 bytes, 134217728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg0_gentoo-lv_vol1_gentoo_home: 128 GiB, 137438953472 bytes, 268435456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg0_gentoo-lv_vol1_gentoo_usr_src: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg0_gentoo-lv_vol1_gentoo_var_cache_distfiles: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes |
What is puking Debian if I try to detect Gentoo:
Quote: | [08:42:44]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# os-prober
/dev/sdb2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
[08:44:45]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-12-amd64
Found initrd image: /boot/initrd.img-6.1.0-12-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sdb2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
[08:45:12]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# grub-install /dev/sdb
Installing for x86_64-efi platform.
Installation finished. No error reported. |
Kind of lost here. Have you an idea to wake up Gentoo ?
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website.
Last edited by kgdrenefort on Fri Oct 06, 2023 10:16 am; edited 1 time in total |
|
Back to top |
|
|
pc_user4 n00b
Joined: 14 Sep 2023 Posts: 15
|
Posted: Tue Sep 19, 2023 7:07 am Post subject: |
|
|
Hello kgdrenefort,
I could be wrong, but from inspecting your setup, it seems that Debian installed the bootloader to the ESP created by Windows, but in your actual Debian install, the /boot and /boot/efi appear to be within the context of your / partition.
If you run df after boot, see if your ESP partition is showing up in the list. This is an easy way to see if it had been loaded by the OS.
Potentially, you need to make sure to unmount the ESP after booting into both Debian and Gentoo separately, where you can then find if there are files within /boot or /boot/efi which are actually on the / partition, then remove the contents of those directories if this is the case. Then you would mount the real ESP (which contains the folders 'debian' and 'Microsoft') and re-run the grub-install. Hopefully, after doing this on both Linux installs, you have a Grub menu for Gentoo, Debian and Windows.
If you use systemd, I would recommend systemd-boot over grub, there is much less that can go wrong - if you are on OpenRC this is obviously not an option. I feel that maybe systemd-boot adoption is sparse in the Gentoo community so if a guide would be helpful, I could write one.
edit:
I've seen that you have two boot partitions
Code: | /dev/sda2 1085440 1290239 204800 100M EFI System
/dev/sda7 281970688 283924479 1953792 954M BIOS boot |
Likely /dev/sda7 "BIOS boot" is not needed. I don't see it in your fstab? I'm not sure that it's doing anything. |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Tue Sep 19, 2023 9:51 am Post subject: |
|
|
pc_user4 wrote: | Hello kgdrenefort,
I could be wrong, but from inspecting your setup, it seems that Debian installed the bootloader to the ESP created by Windows, but in your actual Debian install, the /boot and /boot/efi appear to be within the context of your / partition.
|
I can't remember honnestly, so far:
- I installed Windows 11 by replacing 10
- I had to re-install this Debian 12 after some time for no related reasons
So it's possible that this ESP partition come from Windows, I have to many old habbits from BIOS I didn't completly get rid off I guess.
pc_user4 wrote: | If you run df after boot, see if your ESP partition is showing up in the list. This is an easy way to see if it had been loaded by the OS. |
The partition is mounted at boot time, as asked by fstab on Debian:
Code: | /dev/sdb2 96M 35M 62M 37% /boot/efi |
Code: | # /boot was on /dev/sdb11 during installation
UUID=30d970a9-3a7b-448d-922b-4ed2ddfec145 /boot ext2 defaults 0 2
# /boot/efi was on /dev/sdb2 during installation
UUID=569B-9899 /boot/efi vfat umask=0077 0 1 |
As we can see, during /boot and /boot/efi (ESP partition) where pointed, I did not modified anything after that for these.
pc_users4 wrote: | Potentially, you need to make sure to unmount the ESP after booting into both Debian and Gentoo separately, where you can then find if there are files within /boot or /boot/efi which are actually on the / partition, then remove the contents of those directories if this is the case. Then you would mount the real ESP (which contains the folders 'debian' and 'Microsoft') and re-run the grub-install. Hopefully, after doing this on both Linux installs, you have a Grub menu for Gentoo, Debian and Windows. |
I don't get this: I should unmount on Debian and Gentoo the ESP (aka /boot/efi on Debian) after each boot ? What is the purposes ?
Do you mean that the /boot partition into Debian is plain wrong and should probably removes it ?
pc_users4 wrote: | If you use systemd, I would recommend systemd-boot over grub, there is much less that can go wrong - if you are on OpenRC this is obviously not an option. I feel that maybe systemd-boot adoption is sparse in the Gentoo community so if a guide would be helpful, I could write one. |
Could be a good idea, but for now I would really like to keep this on GRUB from Debian.
pc_users4 wrote: | edit:
I've seen that you have two boot partitions
Code: | /dev/sda2 1085440 1290239 204800 100M EFI System
/dev/sda7 281970688 283924479 1953792 954M BIOS boot |
Likely /dev/sda7 "BIOS boot" is not needed. I don't see it in your fstab? I'm not sure that it's doing anything. |
You mean is not needed because there is the EFI System partition ?
I'll definitly read more about ESP partition, I'm outdated on that and it brings problem.
Beside, thanks for your reply, if you can explains a little bit more where I asked question, would help me understand where I'm wrong.
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 501
|
Posted: Tue Sep 19, 2023 10:00 am Post subject: |
|
|
Please boot Debian and show the entire /boot/grub/grub.cfg and /etc/default/grub. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54603 Location: 56N 3W
|
Posted: Tue Sep 19, 2023 10:12 am Post subject: |
|
|
pc_user4,
The bios_boot partition is used by grub when BIOS booting and GPT are in use.
That's a combination that is not supported everywhere. That's the only time its required.
A 2M bios_boot is adequate, if its needed at all. Grub uses it raw. It does not have a filesystem and it does not belong to the user.
With BIOS booting, the first stage of the boot loader is the the MBR, in LBA 0. The next part follows, in the free space before the first partition when BIOS is in use.
When GPT is in use, the GPT starts at LBA 1, so that space is not available. Grub uses the bios_boot partition instead.
With EFI booting, the firmware loads an EFI compliant program from the ESP. There is no part of the boot loader outside of any filesystem. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Tue Sep 19, 2023 10:15 am Post subject: |
|
|
sMueggli wrote: | Please boot Debian and show the entire /boot/grub/grub.cfg and /etc/default/grub. |
Code: | [12:02:03]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt8 --hint-efi=hd1,gpt8 --hint-baremetal=ahci1,gpt8 0c3d2680-2c69-42aa-874a-8c1ba2416b44
else
search --no-floppy --fs-uuid --set=root 0c3d2680-2c69-42aa-874a-8c1ba2416b44
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1920x1080
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd1,gpt8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt8 --hint-efi=hd1,gpt8 --hint-baremetal=ahci1,gpt8 0c3d2680-2c69-42aa-874a-8c1ba2416b44
else
search --no-floppy --fs-uuid --set=root 0c3d2680-2c69-42aa-874a-8c1ba2416b44
fi
insmod png
if background_image /usr/share/desktop-base/emerald-theme/grub/grub-16x9.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
echo 'Loading Linux 6.1.0-12-amd64 ...'
linux /vmlinuz-6.1.0-12-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.1.0-12-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
menuentry 'Debian GNU/Linux, with Linux 6.1.0-12-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-12-amd64-advanced-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
echo 'Loading Linux 6.1.0-12-amd64 ...'
linux /vmlinuz-6.1.0-12-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.1.0-12-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-12-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-12-amd64-recovery-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
echo 'Loading Linux 6.1.0-12-amd64 ...'
linux /vmlinuz-6.1.0-12-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.1.0-12-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-efi-569B-9899' {
insmod part_gpt
insmod fat
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 569B-9899
else
search --no-floppy --fs-uuid --set=root 569B-9899
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ### |
Code: | [12:13:58]
[Kernel: 6.1.0-12-amd64 - Debian: 12.1]
[root]@[Desktop] [~]
# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
GRUB_DISABLE_OS_PROBER=false
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1920x1080
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1" |
_________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 501
|
Posted: Tue Sep 19, 2023 12:45 pm Post subject: |
|
|
Please make sure you have installed the package "lvm2" on Debian.
Then mount the partition which contains the /boot directory of Gentoo and rerun "sudo update-grub" and also "sudo os-prober". Share the input and output of the executed commands.
EDIT: And please show also from Debian:
Code: | echo "$(LVM_SUPPRESS_FD_WARNINGS=1 lvs --noheadings --separator : -o vg_name,lv_name | sed "s|-|--|g;s|^[[:space:]]*\(.*\):\(.*\)$|/dev/mapper/\1-\2|")"
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|