Uderc programming article aggregator sites

How to install Ubuntu alongside Arch Linux?

Tags:
Answers: Have 6 answers
Advertisement
I already have Arch installed and I have downloaded the Ubuntu 13.04 ISO. My grub file is auto generated following the beginners installation guide since I don't have much knowledge about GRUB2 commands or configuration. I looked up https://wiki.archlinux.org/index.php/GR … _arguments - The Ubuntu ISO section, but didn't understand it. It instructs to to create a /archives but I don't know whether I have to create a new partition or do it in the one where Arch is. Also do I have to install Ubuntu before doing this. But wouldn't that overwrite my existing "grub.cfg"?
Can I do something like deleting the existing grub.cfg, installing Ubuntu on a separate partition and then add Arch to the Ubuntu grub menu. If this can be done, please tell me exactly what to delete in "/boot". I'm thinking the wiki's method is much more difficult and would prefer to add menu entries to Ubuntu's grub rather than the existing one. I have seen many people doing this on Google, but they all install Arch after Ubuntu rather than the other way round.
Running lsblk -lf
NAME   FSTYPE LABEL      UUID                                 MOUNTPOINT
sda                                                           
├─sda1 ntfs              1CF45A405825898C                     
├─sda2 ntfs              E27CDAE57CDAB40F                     /mnt/tempdrive1
├─sda3 ntfs              D44E14D44E14B0EA                     /mnt/tempdrive2
├─sda4                                                       
└─sda5 ext4   arch_linux 44d38a19-2b36-465f-9ae1-f3387e5dc558 /
sr0                                                         
#sda4 is an extended partition which has sda5, on which Arch is installed. sda2 and sda3 are the #Windows partitions I want to delete and merge into a single one to make space for Ubuntu. sda1 is #/boot (maybe, that's what it shows in Gparted. Doesn't it have to be boot since it is the only one left?
Please help with detailed instructions since I am a complete novice at these sort of things (boot and all). Contrary to the norm, I installed Arch first, and am curious about Ubuntu so I want to try it out. Post any other information you'd like to have, and maybe I'll post a gparted screenshot if needed.
P.S- Not sure whether I'm allowed to post about installing some other distro, so I posted in this section. Please notify me via email if I'll have to remove it, and I'll do so.
Advertisement
The best answer: I am not sure to what senjin refers, as I have never had a problem with ubuntu controlling grub, with one exception:
Sometimes ubuntu's OS-prober can't find Arch (so it disappears from the automatically created menu).  Maybe this is the problem senjin found.
One way around this is to have a file in your Arch /etc that OS-prober looks for when it searches for other operating systems.  Look for a file in your ubuntu called /etc/lsb-release.  Make an appropriate copy in your Arch install, and OS-prober will always find it.
Another way to ensure OS-prober always finds Arch is to mount the Arch / partition before [re]running update-grub.
Finally, since you don't really need to ever generate a new menu entry for Arch - since it will always be the same - you can simply run update-grub once, copy the menu entries generated into /etc/grub.d/40-custom, and then disable the OS-prober (so it will only ever update the ubuntu entries (what I do these days).
grub, run from other distros, losing "Arch" seems to be a fairly common problem that is easily solved by any of the above.