You are not logged in.
Pages: 1
here is my config :
Ubuntu 11.1 installed on sd1. It is my default system, and where the GRUB2 config is.
I installed Archlinux on sd2, with /boot on (hd1,1) and / on (hd1,2).
I want to set up GRUB to boot both systems.
here is my /etc/grub.d/11_linux_arch, in the Ubuntu system :
#!/bin/sh -e
echo "Adding Archlinux"
cat << EOF
menuentry "ArchLinux" {
set root=(hd1,2)
linux /boot/vmlinuz-linux
initrd /boot/initramfs-linux.img
}
EOF
vmlinux-linux and initramfs-linux.img are well in my /boot folder on (hd1,1)
At grub prompt, I can see Archlinux as an option. When I select it, I get an error message, "file not found".
I can't see where is an error.
TY for any help.
Last edited by gabx (2011-11-29 22:41:11)
Offline
first of all, what about "update-grub" or something like that, of ubumtu?
second, i think your device naming is wrong.
and are you sure it is the right file?
ezik
Offline
Thanks for your help.
In fact, my file is wrong. I managed to boot Archlinux from a previous linux (opensuse 12) with grub and a correct menu.lst file. I think I shall write a file in /etc/grubd/ with all the parameters, and not a script like I did.
Should be something like that :
menuentry "ArchLinux" {
set root=(hd1,2)
linux /boot/vmlinuz-linux
initrd /boot/initramfs-linux.img
}
Offline
Here is what I added to /etc/grub.d/40_custom
# Arch Linux
menuentry "Arch Linux" {
set root=(hd1,1)
linux /vmlinuz-linux root=/dev/disk/by-uuid/38616db1-366f-40f4-a728-1230e81abb21 ro
initrd /initramfs-linux.img
}
I think telling the uuid is better but /dev/sdb2 (my / partition) works too.
Then :
#sudo update-grub
and I have been able to dual boot Archlinux and Ubuntu 11.10.
The resolution is bad, so I will add a line about it, but I guess it is not diificult.
Offline
Pages: 1