kcy29581
August 25th, 2012, 12:32 AM
Hi all,
I am having some difficulty understanding how grub would work in my scenario with a GPT disk & LVM.
Scenario:
Step 1) I have a BIOS system, and my HDD is formatted with GPT; gdisk reports it has a protective MBR. I created the following partitions:
- 1 BIOS bios partition with equivalent type (ef02) & flag (bios_grub): /dev/sda1
- 4 partitions for /boot, for Linux distributions that require them (such as Fedora/CentOS/etc.), type 8300. I made these since I'm testing various server distibutions: /dev/sda2-5
- 1 LVM partition, type 8e00: /dev/sda6
Step 2) I installed Arch first with the / partition in a logical volume within the LVM partition. I did not use a separate /boot partition, and installed grub to /dev/sda with the following options (does grub automatically use the BIOS boot partition, or did I have to point it there?):
# modprobe dm-mod
# grub-install --target=i386-pc --recheck --debug /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
Arch boots up fine and works.
Step 3) I now tried installing Ubuntu server, and used a logical volume for /, and did not use a /boot partition. When it asked me where to install grub, I was totally stumped; is it even possible to install grub to a logical volume?
Questions:
a) I want to use Arch's grub to load all the other distributions, so where do I install their grubs? Am I forced to use a separate /boot partition in my case?
b) In [Step 2] above, should my second command point to my BIOS boot partition, instead of the GPT disk? It would become:
# grub-install --target=i386-pc --recheck --debug /dev/sda1
c) Is it possible to install grub to a logical volume within an LVM partition?
Many thanks for any help/info you can provide.
I am having some difficulty understanding how grub would work in my scenario with a GPT disk & LVM.
Scenario:
Step 1) I have a BIOS system, and my HDD is formatted with GPT; gdisk reports it has a protective MBR. I created the following partitions:
- 1 BIOS bios partition with equivalent type (ef02) & flag (bios_grub): /dev/sda1
- 4 partitions for /boot, for Linux distributions that require them (such as Fedora/CentOS/etc.), type 8300. I made these since I'm testing various server distibutions: /dev/sda2-5
- 1 LVM partition, type 8e00: /dev/sda6
Step 2) I installed Arch first with the / partition in a logical volume within the LVM partition. I did not use a separate /boot partition, and installed grub to /dev/sda with the following options (does grub automatically use the BIOS boot partition, or did I have to point it there?):
# modprobe dm-mod
# grub-install --target=i386-pc --recheck --debug /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
Arch boots up fine and works.
Step 3) I now tried installing Ubuntu server, and used a logical volume for /, and did not use a /boot partition. When it asked me where to install grub, I was totally stumped; is it even possible to install grub to a logical volume?
Questions:
a) I want to use Arch's grub to load all the other distributions, so where do I install their grubs? Am I forced to use a separate /boot partition in my case?
b) In [Step 2] above, should my second command point to my BIOS boot partition, instead of the GPT disk? It would become:
# grub-install --target=i386-pc --recheck --debug /dev/sda1
c) Is it possible to install grub to a logical volume within an LVM partition?
Many thanks for any help/info you can provide.