You are not logged in.

#1 2017-03-27 13:14:27

D219
Member
Registered: 2017-02-23
Posts: 29

[SOLVED] Restore GRUB config after Ubuntu changed it?

So, after I decided to try to recreate BL on Ubuntu, I formatted my laptop, reinstalled BL, and installed Ubuntu alongside.

Problem is, when installing Grub, Ubuntu didn't just added his entry, but replaced every graphic related options (fonts, splashscreen...), which I liked a lot.

(It also put Ubuntu as the first and default entry like a goddamn scoundrel, but that I know how to fix.)

Searching "Change Grub config" on your favorite search engine always return the same answer, from Ubuntu, install a PPA, then a app which start a nice GUI. But I only have a minimal install, and don't want to wait until I have finished to recreate BL before changing that.

How should I go to recreate the BL grub config, while keeping the Ubuntu entry? Preferably from BL.

Last edited by D219 (2017-03-30 18:02:43)

Offline

#2 2017-03-27 14:34:46

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

Login to BL and

sudo update-grub

Offline

#3 2017-03-27 16:17:14

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

nore wrote:

Login to BL and

sudo update-grub

Hmm wouldn't this then overwrite his Ubuntu entry? He'd have to add the ubuntu entry to this BL grub, as well as put back whatever customizations he had then run the update-grub command right?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#4 2017-03-27 16:29:25

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

The `update-grub` command should add Ubuntu to the BunsenLabs GRUB menu but it sounds like the OP is booting with Ubuntu's GRUB at the moment.

This command should install BunsenLabs' GRUB bootloader to the MBR of the disk and wrest control away from Ubuntu (yay!):

sudo grub-install /dev/sda

There should be an option to skip the bootloader step in the Ubuntu installer, in future you should select this to stop BunsenLabs' GRUB from being overwritten.

Last edited by Head_on_a_Stick (2017-03-27 16:31:07)

Offline

#5 2017-03-27 16:51:49

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

lol, turns into a Boot Loader arm wrestling contest... He config file for his B.L grub should still be intact though right? He'll have to add the entry for Ubuntu right? It can't automatically find it yea?  So basically he's just putting the BL Grub where the Ubuntu one is...


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#6 2017-03-27 16:57:41

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

sudo grub-install /dev/sda && sudo update-grub

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2017-03-28 13:07:45

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,217

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

Another approach, use efibootmgr to put BL's bootloader back in charge.

"man efibootmgr"

It really easy to use.

 sudo efibootmgr -v

Will list the priority/order stuff is in and use

 sudo efibootmgr -o XXXX,XXXX,XXXX

Where XXXX is the numbers assigned in the order you want them in, listing BL's bootloader 1st.

Edit: This is assuming it's a uefi system/install and besides am sure Hoas already supplied a good fix. smile So mainly just wanted to mention efibootmgr, it's good stuff and have used it often to correct issues like this.

Crap, it's a bios/mbr setup apparently. Gotta start reading I guess. Though again knew Hoas would already have things sorted.

Dang it 1 more, have also resorted to opening whichever file-manager w sudo privs,

Ie: "gksudo thunar"

Going to /boot/efi/EFI

And removing whichever Os's bootloader from the esp on the comp, it's always fallen back to another/whichever other os's bootloader is still in the pc's ESP partition anyway.

Just to be on safeside keep a backup of any you remove. Name em something like ubuntubak and stash em in roots /home. Can always copy/paste em back. If you have m$ onboard would not do anything to its bootmanager.

Last edited by BLizgreat! (2017-03-28 13:37:08)

Offline

#8 2017-03-30 18:02:19

D219
Member
Registered: 2017-02-23
Posts: 29

Re: [SOLVED] Restore GRUB config after Ubuntu changed it?

@Damo's solution worked, and detected Ubuntu automatically.

Offline

Board footer

Powered by FluxBB