Skip to main content

Thread: Installing multiple distributions on GPT disk & LVM


hi all,

having difficulty understanding how grub work in scenario gpt disk & lvm.

scenario:
step 1) have bios system, , hdd formatted gpt; gdisk reports has protective mbr. created following partitions:
- 1 bios bios partition equivalent type (ef02) & flag (bios_grub): /dev/sda1
- 4 partitions /boot, linux distributions require them (such fedora/centos/etc.), type 8300. made these since i'm testing various server distibutions: /dev/sda2-5
- 1 lvm partition, type 8e00: /dev/sda6

step 2) installed arch first / partition in logical volume within lvm partition. did not use separate /boot partition, , installed grub /dev/sda following options (does grub automatically use bios boot partition, or did have point 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 fine , works.

step 3) tried installing ubuntu server, , used logical volume /, , did not use /boot partition. when asked me install grub, totally stumped; possible install grub logical volume?

questions:
a) want use arch's grub load other distributions, install grubs? forced use separate /boot partition in case?
b) in [step 2] above, should second command point bios boot partition, instead of gpt disk? become:
# grub-install --target=i386-pc --recheck --debug /dev/sda1
c) possible install grub logical volume within lvm partition?

many help/info can provide.

i not know lvm.

logically, cannot install more 1 grub mbr , bios_grub partition core.img space grub2 needs mbr continue boot. second installs may write bios_grub , cause issues. ubuntu cannot choose not install, not sure other distributions.

real curious if grub2 installed partition (do not know if works lvm or not) whether writes core.img bios_grub in effect corrupt grub in mbr.

run lots of bootinfoscripts before , after every install , prepared reinstall grub2 arch install or ever 1 want in mbr.

boot repair -also handles lvm, gpt, separate /boot , uefi dual boot.:
https://help.ubuntu.com/community/boot-repair
can repair many boot issues or 'create bootinfo' report (other options) & post link creates, can see exact configuration diagnose advanced problems.

boot info script courtesy of forum members meierfra & gert hulselmans
boot info script 0.61 released april 2, 2012
boot_info_script.sh" file renamed "bootinfoscript
http://sourceforge.net/projects/boot...foscript/0.61/
page instructions , link above new download:
http://bootinfoscript.sourceforge.net/
paste contents of results.txt in new reply, highlight entire file , click on # in edit panel(code tags) make easier read.
or can generate tags first pressing # icon in new reply edit toolbar , paste contents between generated [ code] paste here [ /code] tags.
install these before running script:
sudo apt-get install gawk
sudo apt-get install xz-utils

able search lvm partitions if lvm2 package install, fedora needs mounted see os-prober
# ("apt-get install lvm2" in debian based distros)
# able search linux software raid partitions (md raids) if
# "mdadm" package installed.
sudo apt-get install lvm2
sudo apt-get install mdadm
sudo apt-get install gawk
sudo apt-get install xz-utils
# unlzma equivalent xz --format=lzma --decompress.

git/testing version has fixes:
wget -o bootinfoscript 'http://bootinfoscript.git.sourceforge.net/git/gitweb.cgi?p=bootinfoscript/bootinfoscript;a=blob_plain;f=bootinfoscript;hb=he ad'
chmod a+x bootinfoscript
sudo bash bootinfoscript


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] Installing multiple distributions on GPT disk & LVM


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues