Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2
Date: Wed, 20 May 2015 13:29:51
Message-Id: 201505201429.37167.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 by Neil Bothwick
1 On Wednesday 20 May 2015 13:55:27 Neil Bothwick wrote:
2 > On Wed, 20 May 2015 08:21:34 -0400, covici@××××××××××.com wrote:
3 > > > If you want to be able to use UEFI, you need to use GPT. UEFI needs a
4 > > > FAT partition at the start of the drive, type FE00, but booting a GPT
5 > > > disk with MBR requires a small BIOS boot partition, type EF02, at the
6 > > > start of the drive (mine is 1MB).
7 > > >
8 > > > For ease of switching to UEFI later, I'd do
9 > > >
10 > > > sda1 1MB BIOS boot, type EF00
11 > > > sda2 /boot, type 8300
12 > > > everything else.
13 > > >
14 > > > You can make sda2 ext2, then, when it is time to switch, simply backup
15 > > > the contents of /boot, replace sda1 and sda2 with a single EF00
16 > > > partition, formatted with FAT, and copy the contents of /boot back.
17 > >
18 > > Thanks, does the 1mb partition have to have anything in it?
19 >
20 > No. If doesn't even need a filesystem, just create the partition with the
21 > correct type and GRUB will work.
22
23 From what I recall gdisk just starts at sector 2048, doesn't this leave space
24 for MBR code? Note the message "MBR: protective" below:
25
26 # gdisk /dev/sda
27 GPT fdisk (gdisk) version 0.8.10
28
29 Partition table scan:
30 MBR: protective
31 BSD: not present
32 APM: not present
33 GPT: present
34
35 Found valid GPT with protective MBR; using GPT.
36
37 Command (? for help): p
38 Disk /dev/sda: 468862128 sectors, 223.6 GiB
39 Logical sector size: 512 bytes
40 Disk identifier (GUID): E682BFC8-0C85-459B-BA14-87F4E68CD711
41 Partition table holds up to 128 entries
42 First usable sector is 34, last usable sector is 468862094
43 Partitions will be aligned on 2048-sector boundaries
44 Total free space is 27368557 sectors (13.1 GiB)
45
46 Number Start (sector) End (sector) Size Code Name
47 1 2048 1093631 533.0 MiB EF00 ESP
48 2 1093632 43036671 20.0 GiB 8300 root
49 3 43036672 441495551 190.0 GiB 8300 home
50
51 --
52 Regards,
53 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 Neil Bothwick <neil@××××××××××.uk>