Need to see more info for Grub entries at boot, maybe partition labels

Forum Forums New users New Users and General Questions Need to see more info for Grub entries at boot, maybe partition labels

  • This topic has 0 replies, 1 voice, and was last updated Aug 14-5:20 am by BobC.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40268
    Moderator
    BobC

      On each partition there is a label, and I always enter a label to remind me about that partition, as I have many partitions that I create and load to test different scenarios with as clean of a setup as possible to be able to reproduce problems and get good tests of solutions. Of course, there might be another, better place to put this info, but currently I put it in the partition label so I can remember what is in each.

      When I boot, if I could see that info it would help a lot.

      There look to be different types of entries generated in /boot/grub/grub.cfg by the different update-grub related scripts it looks, and the main entry from 10_linux doesn’t tell you what partition it’s on or any info about it except the version:

      ### BEGIN /etc/grub.d/10_linux ###
      menuentry 'antiX-19.1 Marielle Franco' --class antix_19_1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9dd9ef75-417a-4169-8221-34342d349716' {
      
      submenu 'Advanced options for antiX-19.1 Marielle Franco' $menuentry_id_option 'gnulinux-advanced-9dd9ef75-417a-4169-8221-34342d349716' {
      	menuentry 'antiX-19.1 Marielle Franco, with Linux 4.9.212-antix.1-amd64-smp' --class antix_19_1 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.212-antix.1-amd64-smp-advanced-9dd9ef75-417a-4169-8221-34342d349716' {

      Looking at the 30_os-prober entries, they do say what partition they are on, but when I get 4 or 5 different antiX 19.1 partitions on the same system, it would be super helpful to be able to distinguish them from one another:

      ### BEGIN /etc/grub.d/30_os-prober ###
      menuentry 'antiX 19 (19) (on /dev/sda4)' --class antix --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-bc65f4e9-23b9-4e09-95f2-2146b807b675' {
      	insmod part_gpt
      	insmod ext2
      	set root='hd0,gpt4'
      	if [ x$feature_platform_search_hint = xy ]; then
      	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  bc65f4e9-23b9-4e09-95f2-2146b807b675
      	else
      	  search --no-floppy --fs-uuid --set=root bc65f4e9-23b9-4e09-95f2-2146b807b675
      	fi
      	linux /boot/vmlinuz-4.20.12-antix.1-amd64-smp root=UUID=bc65f4e9-23b9-4e09-95f2-2146b807b675 ro vga=791 gfxsave quiet acpi_osi=! acpi_osi=Windows i915.preliminary_hw_support=1
      	initrd /boot/initrd.img-4.20.12-antix.1-amd64-smp
      }
      submenu 'Advanced options for antiX 19 (19) (on /dev/sda4)' $menuentry_id_option 'osprober-gnulinux-advanced-bc65f4e9-23b9-4e09-95f2-2146b807b675' {
      	menuentry 'antiX-19 Marielle Franco (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.20.12-antix.1-amd64-smp--bc65f4e9-23b9-4e09-95f2-2146b807b675' {
      		insmod part_gpt
      		insmod ext2
      		set root='hd0,gpt4'
      		if [ x$feature_platform_search_hint = xy ]; then
      		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  bc65f4e9-23b9-4e09-95f2-2146b807b675
      		else
      		  search --no-floppy --fs-uuid --set=root bc65f4e9-23b9-4e09-95f2-2146b807b675
      		fi
      		linux /boot/vmlinuz-4.20.12-antix.1-amd64-smp root=UUID=bc65f4e9-23b9-4e09-95f2-2146b807b675 ro vga=791 gfxsave quiet acpi_osi=! acpi_osi=Windows i915.preliminary_hw_support=1
      		initrd /boot/initrd.img-4.20.12-antix.1-amd64-smp
      	}
      }
      
      menuentry 'antiX 19 (19) (on /dev/sda9)' --class antix --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-d4ea1368-1350-4251-b942-d27acc5a40c5' {
      	insmod part_gpt
      	insmod ext2
      	set root='hd0,gpt9'
      	if [ x$feature_platform_search_hint = xy ]; then
      	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  d4ea1368-1350-4251-b942-d27acc5a40c5
      	else
      	  search --no-floppy --fs-uuid --set=root d4ea1368-1350-4251-b942-d27acc5a40c5
      	fi
      	linux /boot/vmlinuz-4.20.12-antix.1-amd64-smp root=/dev/sda9
      	initrd /boot/initrd.img-4.20.12-antix.1-amd64-smp
      }
      submenu 'Advanced options for antiX 19 (19) (on /dev/sda9)' $menuentry_id_option 'osprober-gnulinux-advanced-d4ea1368-1350-4251-b942-d27acc5a40c5' {
      	menuentry 'antiX 19 (19) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.20.12-antix.1-amd64-smp--d4ea1368-1350-4251-b942-d27acc5a40c5' {
      		insmod part_gpt
      		insmod ext2
      		set root='hd0,gpt9'
      		if [ x$feature_platform_search_hint = xy ]; then
      		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  d4ea1368-1350-4251-b942-d27acc5a40c5
      		else
      		  search --no-floppy --fs-uuid --set=root d4ea1368-1350-4251-b942-d27acc5a40c5
      		fi
      		linux /boot/vmlinuz-4.20.12-antix.1-amd64-smp root=/dev/sda9
      		initrd /boot/initrd.img-4.20.12-antix.1-amd64-smp
      	}
      }
      

      Any ideas on how to better identify the partitions when I boot without breaking Grub or OS-Prober?

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.