1 |
Peter Humphrey, mused, then expounded: |
2 |
|
3 |
> 2. It's much easier to install other distros if they have their |
4 |
> own boot partition to play in. SuSE, for instance, seems |
5 |
> to be unable to combine its own image with all the |
6 |
> existing ones, so I have to go grubbing around the disks |
7 |
> looking for images to make grub.conf entries. |
8 |
> |
9 |
|
10 |
We do the following to boot multiple os': |
11 |
|
12 |
create a small partition on dev/sda1 that contains just |
13 |
|
14 |
/boot/grub/* |
15 |
in /boot/grub/menu.lst (or grub.conf): |
16 |
|
17 |
# Imaging Environment grub configuration file |
18 |
# Installs in to MBR of first disk, and allows |
19 |
# chaning to the other boot options. |
20 |
default 8 |
21 |
timeout 15 |
22 |
#serial --unit=1 --speed=38400 --word=8 --parity=no --stop=1 |
23 |
#terminal --timeout=10 --dumb serial console |
24 |
|
25 |
title disk 1 slot 1 root /dev/sda2 image likely x86_64-rhel4u4 |
26 |
# OS root device /dev/sda2 |
27 |
root (hd0,1) |
28 |
rootnoverify (hd0,1) |
29 |
chainloader +1 |
30 |
|
31 |
title disk 1 slot 2 root /dev/sda3 image likely x86_64-rhel5-ga |
32 |
# OS root device /dev/sda3 |
33 |
root (hd0,2) |
34 |
rootnoverify (hd0,2) |
35 |
chainloader +1 |
36 |
|
37 |
title disk 1 slot 3 root /dev/sda5 image likely x86_64-sles10-gmc |
38 |
# OS root device /dev/sda5 |
39 |
root (hd0,4) |
40 |
rootnoverify (hd0,4) |
41 |
chainloader (hd0,0)/boot/grub/bootsect-xfs-sda5 |
42 |
|
43 |
title disk 1 slot 4 root /dev/sda6 image likely x86_64-sles9sp3-e1000 |
44 |
# OS root device /dev/sda6 |
45 |
root (hd0,5) |
46 |
rootnoverify (hd0,5) |
47 |
chainloader (hd0,0)/boot/grub/bootsect-xfs-sda6 |
48 |
|
49 |
etc... |
50 |
|
51 |
Then install each dist in it's own partition with no individual /boot partition. |
52 |
The chainloader then picks up the grub entry from that partition. I do the same |
53 |
with WinXP on my laptop for the few times I boot into that partition. |
54 |
|
55 |
Typically, though, we only use parted to setup our partitions. And a lot of the |
56 |
time we set up our systems as GPT disks with labels. |
57 |
|
58 |
Bob |
59 |
- |
60 |
-- |
61 |
gentoo-amd64@g.o mailing list |