Fixing Grub After Grub Customizer Removed

OK, you need to execute

sudo grub-install /dev/sdb --recheck

Afterwards run

sudo update-grub

Make sure to boot into your BIOS and select the disk sdb (could have a different name there) as your new boot disk.

P.S.: Next time, please format the code as I changed it.

Ok, wish me luck. If I don’t reply in a few minutes I guess something went wrong (thankfully I have a laptop too I can use to get help if that happens).

BTW I think this makes sense as sdb is my main Linux drive and sdc is my main Windows drive. sda and sdd are storage drives for Windows and Linux respectively.

Looks like all is good!

Thanks for the help everyone I really appreciate it!

BTW how do I rename and hide entries in grub? Can that be done through editing the config file? That’s the whole reason I was using GC in the first place.

Have you re-installed grub as you intended?

I think so. I ran all the commands cfinnberg suggested:

# Remove all grub configurations
sudo rm /etc/default/grub
sudo rm /etc/grub.d/*

# Reinstall grub
sudo pacman -S grub

# Recreate grub config:
sudo update-grub

OK, That looks good, Sorry, I somehow overlooked that grub-install worked. Can you show the result in your grub menu?

Not sure what you mean. Right now it has four entries:

Manjaro Linux
Advanced Options for Linux
Windows (/sda)
Windows (/sdc)

Or something close to that.

What do you want to hide? Usually you only have the last kernel in the main menu and the rest of kernels are in the advanced menu

I’d like to hide the extra Windows entry (the one for my storage drive) and rename it Windows 10. The rest are fine.

The right approach is to use scripts to be located in /etc/grub.d/as described here:
https://wiki.archlinux.org/index.php/GRUB#Generate_the_main_configuration_file

If /dev/sdc is your storage drive, do you need the boot partition /dev/sdc1? I guess if not and you make this unallocated space grub won’t find the partition as potentially bootable and might not create a boot menu entry for it. But not 100% if this works. If you want to try, don’t forget

sudo update-grub

after the change.

Thank you, I’ll look into those. Although I’m really loath to change anything now that it’s working. :slight_smile:

2 Likes