View previous topic :: View next topic |
Author |
Message |
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Sat Jul 24, 2021 6:57 pm Post subject: GRUB error: Invalid volume |
|
|
Hi,
Whenever I Code: | grub-mkconfig -o /boot/grub/grub.cfg |
I get this:
Code: |
Generating grub configuration file ...
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
Found linux image: /boot/vmlinuz-5.10.52-gentoo-dist
Found initrd image: /boot/amd-uc.img /boot/initramfs-5.10.52-gentoo-dist.img
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
error: invalid volume.
Found linux image: /boot/vmlinuz-5.10.52-gentoo
Found initrd image: /boot/amd-uc.img
Found linux image: /boot/vmlinuz-5.10.52-gentoo.old
Found initrd image: /boot/amd-uc.img
error: invalid volume.
error: invalid volume.
error: invalid volume.
|
There's nothing in in dmesg that has "volume" in it.
All my disks are also fine.
What does this mean? _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sat Jul 24, 2021 9:22 pm Post subject: |
|
|
The only references to "volumes" in
/etc/grub.d
are
Code: |
grep -r vol /etc/grub.d
/etc/grub.d/20_linux_xen: rootsubvol="`make_system_path_relative_to_its_root /`"
/etc/grub.d/20_linux_xen: rootsubvol="${rootsubvol#/}"
/etc/grub.d/20_linux_xen: if [ "x${rootsubvol}" != x ]; then
/etc/grub.d/20_linux_xen: GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
/etc/grub.d/30_os-prober: BTRFSsubvol="`echo ${OS} | cut -d ':' -f 7`"
/etc/grub.d/30_os-prober: LINUXPROBED="`linux-boot-prober btrfs ${BTRFSuuid} ${BTRFSsubvol} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
/etc/grub.d/10_linux: rootsubvol="`make_system_path_relative_to_its_root /`"
/etc/grub.d/10_linux: rootsubvol="${rootsubvol#/}"
/etc/grub.d/10_linux: if [ "x${rootsubvol}" != x ]; then
/etc/grub.d/10_linux: GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
|
I suppose you dont use os-prober nor xen so the relevant ones are in
/etc/grub.d/10_linux
I think this is the culprit
Code: |
rootsubvol="`make_system_path_relative_to_its_root /`"
|
or a seriously messed /etc/default/grub
plz run
Code: |
grep GRUB_CMDLINE_LINUX /etc/default/grub
lsblk
|
If it boots then these are benign msgs that you should ignore
_________________
|
|
Back to top |
|
|
|