You are not logged in.

#1 2012-01-21 00:08:22

cubemike99
Member
Registered: 2012-01-20
Posts: 2

GRUB overwritten by Ubuntu

My bad if this is in the wrong section or it's been answered before. *I* wasn't able to find it.
But anyway...
I triple boot Windows XP, Ubuntu, and Arch. At one point, these three OS's managed to coexist peacefully in GRUB. However, recently, I had to reinstall Ubuntu. While the Ubuntu installer supposedly detected the Windows and Arch partitions, it overwrote GRUB, making only Ubuntu and Windows present in the GRUB menu. I've tried things like update-grub in Ubuntu and using Boot-Repair in an Ubuntu live-cd. So, how can I get Arch back? Any help is greatly appreciated.

Offline

#2 2012-01-21 01:01:18

shikitohno
Member
From: NY
Registered: 2011-09-17
Posts: 36

Re: GRUB overwritten by Ubuntu

You can always just edit the grub menu that Ubuntu is using.  This page should have everything you need to see how you would go about doing that.  And if you really wanted Arch to be handling it, I suppose you could just reinstall GRUB once you boot back into Arch, and make sure to edit the /boot/grub/menu.lst file again to add options for Ubuntu and XP if it's not automatically taken care of for you by GRUB.  In the future, you should try searching the wiki, forums and web a bit more thoroughly, though, as even in the short time I've been active here, I've seen a number of posts like this.  The wiki also has all the info you should need to get back into Arch, and reinstall GRUB so Arch handles it if you so desire.

Offline

#3 2012-01-21 01:08:43

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,143

Re: GRUB overwritten by Ubuntu

I'm pretty sure Ubuntu will have installed grub2 whereas Arch defaults to grub. So you need to figure out which you're using or if you're chainloading etc.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2012-01-21 01:19:43

shikitohno
Member
From: NY
Registered: 2011-09-17
Posts: 36

Re: GRUB overwritten by Ubuntu

I just went with GRUB as that's what the OP said, but that's a valid point.  If you are in fact using GRUB2, just look here instead to see how to go about configuring your menu to add an option for Arch.

Offline

#5 2012-01-21 01:58:10

cubemike99
Member
Registered: 2012-01-20
Posts: 2

Re: GRUB overwritten by Ubuntu

I believe I have GRUB2, since I have no menu.lst. I found that to add an entry to the menu, you add

menuentry "Arch" {
set root=(hd0,2)
linux /boot/vmlinuz
initrd /boot/initrd.img
}

to /etc/grub.d/40_custom, but I'm not sure how to customise that to my system, since I have a separate /boot (sda5), /home (sda6), / (sda7), and swap (sda9) partitions.

Offline

#6 2012-01-21 04:49:59

shikitohno
Member
From: NY
Registered: 2011-09-17
Posts: 36

Re: GRUB overwritten by Ubuntu

Mount your arch boot partition, and look at your menu.lst file on it.  Here are some instructions from Ubuntu's community documentation on how to convert GRUB entries from your menu.lst file to valid GRUB2 entries.

Last edited by shikitohno (2012-01-21 06:31:16)

Offline

#7 2012-01-21 06:10:50

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: GRUB overwritten by Ubuntu

shikitohno wrote:

Mount your arch boot partition, and look at your menu.lst file on it.  Here are some instructions from Ubuntu's community documentation on how to convert GRUB entries from your menu.lst file to valid GRUB2 entries.

https://wiki.archlinux.org/index.php/GR … onfig_file

Offline

Board footer

Powered by FluxBB