Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2
Date: Wed, 20 May 2015 13:48:05
Message-Id: 20150520144751.042614f3@digimed.co.uk
In Reply to: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 by Mick
1 On Wed, 20 May 2015 14:29:27 +0100, Mick wrote:
2
3 > > > Thanks, does the 1mb partition have to have anything in it?
4 > >
5 > > No. If doesn't even need a filesystem, just create the partition with
6 > > the correct type and GRUB will work.
7 >
8 > From what I recall gdisk just starts at sector 2048, doesn't this leave
9 > space for MBR code? Note the message "MBR: protective" below:
10
11 So does fdisk with an MBR partition table. It defaults to 2048 to avoid
12 alignment problems with disks using 4k blocks.
13
14 > # gdisk /dev/sda
15 > GPT fdisk (gdisk) version 0.8.10
16 >
17 > Partition table scan:
18 > MBR: protective
19 > BSD: not present
20 > APM: not present
21 > GPT: present
22 >
23 > Found valid GPT with protective MBR; using GPT.
24
25 You still need the BIOS boot partition. This is about BIOS vs UEFI
26 booting.
27
28 % sudo gdisk -l /dev/sda
29 GPT fdisk (gdisk) version 1.0.0
30
31 Partition table scan:
32 MBR: protective
33 BSD: not present
34 APM: not present
35 GPT: present
36
37 Found valid GPT with protective MBR; using GPT.
38 Disk /dev/sda: 5860533168 sectors, 2.7 TiB
39 Logical sector size: 512 bytes
40 Disk identifier (GUID): 04EFD165-FDDF-4C24-BA81-868B97BF9949
41 Partition table holds up to 128 entries
42 First usable sector is 34, last usable sector is 5860533134
43 Partitions will be aligned on 2048-sector boundaries
44 Total free space is 2014 sectors (1007.0 KiB)
45
46 Number Start (sector) End (sector) Size Code Name
47 1 2048 4095 1024.0 KiB EF02 BIOS boot partition
48 2 4096 2101247 1024.0 MiB 8300 boot0
49 3 2101248 35655679 16.0 GiB 8200 swap0
50 4 35655680 5860533134 2.7 TiB 8300 silastic0
51
52
53 --
54 Neil Bothwick
55
56 Top Oxymorons Number 2: Exact estimate