Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB error: Invalid volume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hjkl
Apprentice
Apprentice


Joined: 22 Apr 2021
Posts: 198
Location: Somewhere in Europe

PostPosted: Sat Jul 24, 2021 6:57 pm    Post subject: GRUB error: Invalid volume Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Jul 24, 2021 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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