You are not logged in.
Hi everyone !
I have ubuntu/ windows 7 working for awhile now, I want to install arch with it and share the boot partition with separate folder for each distro and mount it to /boot for each distro. I have read someone mentioned make it work but I have no idea how to do it.
My partition scheme now
/dev/sda1 windows 7
/dev/sda5 /boot <- have ubuntu want to install /boot/arch in it
/dev/sda6 / for ubuntu
/dev/sda7 / for arch
/dev/sda8 / share home partition
Now I have install arch on sda7 but no idea how to do next...
thanks
Last edited by Tg (2009-11-01 10:04:47)
Offline
I have ubuntu/ windows 7 working for awhile now, I want to install arch with it and share the boot partition with separate folder for each distro and mount it to /boot for each distro.
Simply edit your menu.lst on /dev/sda5 adding an entry for Arch. Or can can add two entries, one for arch, one chainloading arch's native grub screen via a +chainloader line. See this wiki page for more.
http://wiki.archlinux.org/index.php/Grub
My system is setup this way; my menu.lst
timeout 5
default 0
color light-blue/black light-cyan/blue
splashimage /grub/arch.xpm.gz
title Arch Linux
root (hd0,2)
kernel /boot/vmlinuz26 root=/dev/sda3 ro quiet acpi_enforce_resources=lax vga=773
initrd /boot/kernel26.img
title Arch Linux (testing)
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro quiet acpi_enforce_resources=lax vga=773
initrd /boot/kernel26.img
title Windows XP Professional x64 Edition
root (hd0,0)
makeactive
chainloader +1
title GParted live 0.4.6-1 (07-Aug-2009)
root (hd0,6)
kernel /live/vmlinuz1 toram boot=live union=aufs noswap noprompt vga=788 ip=frommedia
initrd /live/initrd1.img
boot
title Memtest86+ v4.00 (22-Sep-2009)
root (hd0,6)
kernel /memtest86.bin
title Arch Linux Native GRUB screen
root (hd0,1)
chainloader +1
Last edited by graysky (2009-10-31 13:19:05)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Kubuntu and Arch have been sharing a 150MB /boot nicely here
grub2:
menuentry " arch" {
set root=(hd0,2)
linux /vmlinuz26 root=/dev/mapper/vg-arch cryptdevice=/dev/sda3:vg ro quiet
initrd /kernel26.img
}
menuentry " kubuntu" {
set root=(hd0,2)
linux /vmlinuz root=/dev/mapper/vg-kubuntu ro quiet splash
initrd /initrd.img-2.6.31-14-generic
}
They use different kernel and initrd names
Last edited by vacant (2009-10-31 14:50:16)
Offline
@vacant - might not wanna confuse him. I'm assuming that he isn't using grub2
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
On Ubuntu keep /dev/sda5 mounted on /boot.
On Arch mount /dev/sda5 on /realboot. Then use mount --bind to mount /realboot/arch as /boot. (See man mount for fstab entries.) In menu.lst set root to the same partition as Ubuntu and use something like kernel /arch/vmlinuz26. Similarly for the initrd entry.
Edit: I just noticed you also intend on sharing /home. Be careful as this can lead to unexpected errors. I suggest keeping a separate data partition for shared data symlinked to from the real homes on the distros' partitions.
Last edited by fsckd (2009-10-31 15:16:44)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Thanks guys. I'll try that out tomorrow.
To fsckd: I think it shouldn't be a problem if I keep UID from two distro the same.
Last edited by Tg (2009-10-31 19:30:18)
Offline
You could also use seperate folders on the boot partion for each distro. That way you are more or less sure that <insertautomatictoolhere> won't mess up your other distroes.
Edit: too late, stupid 500 error
Last edited by Mr.Elendig (2009-10-31 19:39:22)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
To fsckd: I think it shouldn't be a problem if I keep UID from two distro the same.
That should work.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
I'm back..
It still doesn't work.. I used grub to and tried
menuentry "Archlinux (chainloader, not working now)" {
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 696bf0a5-0161-461c-9c9f-929c2f73bf55
chainloader +1
}
menuentry "Archlinux (not chainloader)" {
insmod ext2
set root=(hd0,6)
linux /archlinux/vmlinuz26 root=UUID=696bf0a5-0161-461c-9c9f-929c2f73bf55 ro single
initrd /archlinux/kernel26.img
}
both didn't work. First one give me "Error: Invalid Signature", second give me "Error: You need to load kernel first"
I copy /boot in arch to /boot/arch. Am I doing something wrong here ?
EDIT: I change both entry set root=(hd0,5). The first entry still not working but second got a little bit running but stop and said can't find device UUID=696bf0a5-0161-461c-9c9f-929c2f73bf55
Last edited by Tg (2009-11-01 06:03:41)
Offline
@vacant - might not wanna confuse him. I'm assuming that he isn't using grub2
I guess you were right.
Tg that code is not for grub but for grub2. You should take a look at graysky's code and implement it accordingly.
Last edited by sHyLoCk (2009-11-01 05:53:44)
Offline
graysky wrote:@vacant - might not wanna confuse him. I'm assuming that he isn't using grub2
I guess you were right.
Tg that code is not for grub but for grub2. You should take a look at graysky's code and implement it accordingly.
But I use grub2. Sorry but I forgot to add that. Also I'm confuse on where I have to set root to in grub.cfg ? /boot partition or / partition of distro.
Last edited by Tg (2009-11-01 06:07:42)
Offline
Hmm Edit didn't work for some reason, sorry for double post
thanks everyone for example config, I got one that work now. Not come out as I imagine ( I prefer using uuid ) but it's work now.
menuentry "Archlinux (not chainloader)" {
insmod ext2
set root=(hd0,5)
linux /archlinux/vmlinuz26 root=/dev/sda7 ro single
initrd /archlinux/kernel26.img
}
Last question
which partition hd0,5 point to ? Also, it's possible to do chainloader ?
EDIT: thanks for answer. I felt stupid now because it said "root" so I tried to point at /.
Last edited by Tg (2009-11-01 06:18:43)
Offline
graysky wrote:@vacant - might not wanna confuse him. I'm assuming that he isn't using grub2
I guess you were right.
Tg that code is not for grub but for grub2. You should take a look at graysky's code and implement it accordingly.
"grub2" is grub. Just as "grub legacy" is grub. The shorthand "grub" refers to the software but no longer implies a version. I made no assumption and clearly stated "grub2" even though this is the default for both Arch and Ubuntu. If you want to post grub legacy code you should make that clear,
This is recommended terminology: http://www.gnu.org/software/grub/
"GRUB 2 and GRUB Legacy
"Currently under development, GRUB 2, has replaced what was formerly known as GRUB (i.e. version 0.9x), which has, in turn, become GRUB Legacy.
Offline
Arch linux till now ships off with grub legacy. Even with the latest 2009.08 ISO. I could care less about what ubuntu does.So you shouldn't just assume people are using GRUB2. That's all I wanted to point out.
Offline
Arch linux till now ships off with grub legacy. Even with the latest 2009.08 ISO. I could care less about what ubuntu does.So you shouldn't just assume people are using GRUB2. That's all I wanted to point out.
Good to see you using the correct terminology now. I did not "assume people are using grub2". I stated I was.
Offline