Grub config a bit false

I have a small problem with my grub config:
there is a entry named “Manjaro 20.1.1 (on /dev/sdax)”.

Here is the relevant part of grub.cfg:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Manjaro Linux (20.1.1) (on /dev/sda4)' --class manjarolinux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b2532996-24ad-41a0-83dd-5149e4b5c392' {
	savedefault
	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-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  6a1e2b52-ff96-49e9-acda-c3ddd8a2e4af
	else
	  search --no-floppy --fs-uuid --set=root 6a1e2b52-ff96-49e9-acda-c3ddd8a2e4af
	fi
	linux /vmlinuz-4.19-x86_64 root=UUID=b2532996-24ad-41a0-83dd-5149e4b5c392 rw quiet apparmor=1 security=apparmor udev.log_priority=3
	initrd /intel-ucode.img /boot/initramfs-4.19-x86_64.img
}
submenu 'Advanced options for Manjaro Linux (20.1.1) (on /dev/sda4)' $menuentry_id_option 'osprober-gnulinux-advanced-b2532996-24ad-41a0-83dd-5149e4b5c392' {
	menuentry 'Manjaro Linux (on /dev/sda4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.19-x86_64--b2532996-24ad-41a0-83dd-5149e4b5c392' {
		savedefault
		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-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  6a1e2b52-ff96-49e9-acda-c3ddd8a2e4af
		else
		  search --no-floppy --fs-uuid --set=root 6a1e2b52-ff96-49e9-acda-c3ddd8a2e4af
		fi
		linux /vmlinuz-4.19-x86_64 root=UUID=b2532996-24ad-41a0-83dd-5149e4b5c392 rw quiet apparmor=1 security=apparmor udev.log_priority=3
		initrd /intel-ucode.img /boot/initramfs-4.19-x86_64.img

How can I remove this part?

The grub.cfg at /boot is generated automatically.

Are you really sure htere is not /dev/sda4 partition that contains some old installation?

You can rerun the sudo update-grub to check if the /dev/sda4 was detected again.

I have started
update-grub
and the part “Manjaro (20.1.1) on /dev/sda4”
occurs again.
/dev/sda4 is my root partition.

Are you running kernel 4.19? If yes, I would install another kernel, boot into it, run sudo update-grub and then return to 4.19 if you like. By this procedure I could clean-up my grub boot menu entries when I used 4.19 earlier times.

1 Like

I have also installed kernel 4.14.
Booting and starting “update-grub”
results into a correct grub config without “Manjaro (20.1.1) on /dev/sda4”

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.