Go2linux Posted December 11, 2012 Posted December 11, 2012 Hi. I have a pc with Debian and Ubuntu where sda3 is free and I want arch on it. I have Debian managing grub 2 on MBR. When I installed Ubuntu on sda2 I made Ubuntu install grub on sda2 and then on Debian I run 'update-grub' and it found Ubuntu and added it to the menu. Now with arch, which method should I follow? Thanks Guillermo Quote
securitybreach Posted December 11, 2012 Posted December 11, 2012 Well when it asks to install Grub during the Arch installation, choose to install it to the partition instead of the mbr. Then just add an Arch entry on your debian menu.lst: # (3) Arch Linux title Arch Linux root (hd0,2) kernel /boot/vmlinuz-linux root=/dev/sda3 ro initrd /boot/initramfs-linux.img Quote
ichase Posted December 11, 2012 Posted December 11, 2012 Greetings Guillermo, good to see you again. Actually I would install Arch on sda3 and not install grub at all. Just make sure sda3 is set as root and add it to your grub config file in debian so that it shows on your grub menu at boot. Make sure to install the December Arch install media as it is already configured with systemd. If you run into any issues, don't hesitate to let us know. 2 Quote
Go2linux Posted December 11, 2012 Author Posted December 11, 2012 Greetings Guillermo, good to see you again. Actually I would install Arch on sda3 and not install grub at all. Just make sure sda3 is set as root and add it to your grub config file in debian so that it shows on your grub menu at boot. Make sure to install the December Arch install media as it is already configured with systemd. If you run into any issues, don't hesitate to let us know. Thanks for your quick reply. I am using the latest media. I am using this one: http://archlinux.supsec.org/iso/2012.12.01/archlinux-2012.12.01-dual.iso I have seen it is now closer to Gentoo installation rather than Debian installation. I have not installed it for some two years, I just upgraded my system before. Now I am performing a clean installation. I am following this instructions. https://wiki.archlinux.org/index.php/Installation_Guide to install it on a X86_64 system. So, what you are saying is that I should skip the grub installation completely, and then let Grub from Debian find it by running update-grub ? thanks. Guillermo. Quote
securitybreach Posted December 11, 2012 Posted December 11, 2012 It is really up to you but I personally would install grub to the Arch partition and make a grub entry on debian but Ian's way would work as well. Quote
Go2linux Posted December 11, 2012 Author Posted December 11, 2012 Thanks you both. I will try and let you know how it goes. regards, Guillermo. Quote
V.T. Eric Layton Posted December 11, 2012 Posted December 11, 2012 ...I would install Arch on sda3 and not install grub at all. Just make sure sda3 is set as root and add it to your grub config file in debian so that it shows on your grub menu at boot. This manual method is the way I have always included new operating systems in my GRUB. I'm using legacy GRUB, though, but it should work the same way in GRUB2, I believe. Feliz Navidad to you and your family, Guillermo! ~Eric 1 Quote
Go2linux Posted December 11, 2012 Author Posted December 11, 2012 This manual method is the way I have always included new operating systems in my GRUB. I'm using legacy GRUB, though, but it should work the same way in GRUB2, I believe. Feliz Navidad to you and your family, Guillermo! ~Eric Thanks Eric. I just have one doubt. What does he means by being sure it is set as root? is that the boot flag in fdisk? or just that I may have just one partition where /sda3 is / that is what I am doing, no separate /home /boot or any other, just one / at /dev/sda3 Merry Christmas for you and loved ones too. Quote
V.T. Eric Layton Posted December 11, 2012 Posted December 11, 2012 No, I think he just means that the sda3 must be the root partition. He will elaborate, if we're not understanding fully. Quote
Go2linux Posted December 11, 2012 Author Posted December 11, 2012 Well, it worked. On debian I mounted the Arch Partition mount /dev/sda3 /mnt then I run os-prober then update-grub and that was it. reboot, choose Arch and I am happy! Thanks! 2 Quote
sunrat Posted December 12, 2012 Posted December 12, 2012 I don't think it's necessary to mount the partition or install GRUB to it. When you run os-prober it looks for all kernels in all partitions and lists them in config file so update-grub can use them. It's even easier in siduction, update-grub automatically runs os-prober so it all happens with just the one command. Quote
V.T. Eric Layton Posted December 12, 2012 Posted December 12, 2012 It worked. That's what matters, not the method. It's great to have OPTIONS! That's what Linux is all about. 2 Quote
Go2linux Posted December 12, 2012 Author Posted December 12, 2012 I don't think it's necessary to mount the partition or install GRUB to it. When you run os-prober it looks for all kernels in all partitions and lists them in config file so update-grub can use them. It's even easier in siduction, update-grub automatically runs os-prober so it all happens with just the one command. I had to mount as it was not working without it. On Debian update-grub also runs OS-prober. But it not worked until I've mounted the arch partition. With Ubuntu it had no problems. Quote
securitybreach Posted December 12, 2012 Posted December 12, 2012 Well, it worked. On debian I mounted the Arch Partition mount /dev/sda3 /mnt then I run os-prober then update-grub and that was it. reboot, choose Arch and I am happy! Thanks! Excellent!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.