Hi all, With the help of GRUB2[1], I'm able to boot my box (Intel DG35EC mobo and Intel Core 2 Duo CPU) which has both the disks partitioned in GPT. I've GNU/Linux and FreeBSD installed as primary operating systems. GRUB2 also has support for booting FreeBSD kernels and loading FreeBSD modules[2] directly without the need of loader(8).
#v+
% sudo gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.2.0
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 976773168 sectors, 465.8 GiB
Disk identifier (GUID): FADB3815-91DF-4134-8492-E6FE33A3162E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Total free space is 93345773 sectors (44.5 GiB)
Number Start (block) End (block) Size Code Name
1 34 2081 1024.0 KiB EF02 BIOS boot
2 2082 125831201 60.0 GiB 0700 GNU/Linux root
3 125831202 134219809 4.0 GiB A503 FreeBSD-Root
4 134219810 142608417 4.0 GiB A502 swap
5 142608418 143132705 256.0 MiB 0700 GNU/Linux boot
6 143132706 252184609 52.0 GiB A503 FreeBSD-Home
7 252184610 378013729 60.0 GiB 0700 GNU/Linux home
8 378013730 380110881 1024.0 MiB 0700 news spool
9 380110882 883427361 240.0 GiB 0700 archives
% sed -e '/^#/d' -e '/^[[:space:]]*$/d' </boot/grub/grub.cfg
insmod gpt
set default=0
set timeout=10
set root=(hd1,2)
search --no-floppy --fs-uuid --set 6ad9832e-6241-4adc-b67b-3829cd1a2942
if loadfont /usr/share/grub/ascii.pf2 ; then
set gfxmode=1024x768
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
menuentry "Arch GNU/Linux" {
set root=(hd0,5)
linux /vmlinuz26 root=/dev/sdb2 ro vga=0x0f00
initrd /kernel26.img
}
menuentry "Arch GNU/Linux (fallback)" {
set root=(hd0,5)
linux /vmlinuz26 root=/dev/sdb2 ro vga=0x0f00
initrd /kernel26-fallback.img
}
insmod bsd
menuentry "FreeBSD 7.2-RELEASE" {
set root=(hd0,3)
freebsd /boot/kernel/kernel
freebsd_loadenv /boot/device.hints
freebsd_module_elf /boot/kernel/coretemp.ko
freebsd_module_elf /boot/kernel/geom_journal.ko
set FreeBSD.vfs.root.mountfrom=ufs:ad6p3.journal
}
#v-
I've used gdisk (or GPT fdisk)[3] for partitioning GPT partitions. Now I
don't use any disks partitioned with old IBM MBR partitioning or BSD
disklabels :).
Anyone interested in giving GPT a shot, can post there queries here.
References:
[1] http://www.gnu.org/software/grub/grub-2.en.html
[2] http://www.mail-archive.com/[email protected]/msg10852.html
[3] http://www.rodsbooks.com/gdisk/
Happy GPTing,
Ashish SHUKLA
--
For a young man, not yet: for an old man, never at all.
-- Diogenes, asked when a man should marry
When should a man marry? A young man, not yet; an elder man, not at all.
-- Sir Francis Bacon, "Of Marriage and Single Life"
pgpVLoI5Osrao.pgp
Description: PGP signature
_______________________________________________ bsd-india mailing list [email protected] http://www.bsd-india.org/mailman/listinfo/bsd-india
