Gentoo Archives: gentoo-user

From: Kerin Millar <kerframil@×××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] MBR partition
Date: Sat, 06 Sep 2014 06:16:01
Message-Id: 540AA690.1090905@fastmail.co.uk
In Reply to: Re: [gentoo-user] MBR partition by Joseph
1 On 06/09/2014 04:10, Joseph wrote:
2 > On 09/05/14 21:02, Joseph wrote:
3 >> I'm configuring MBR partition for older disk and need to know what
4 >> code to enter for boot partition.
5 >> My BIOS is not EFI type.
6
7 Not that it particularly matters but a partition dedicated to /boot
8 contains a Linux filesystem and, thus, 83 is appropriate.
9
10 >
11 > My current configuration:
12 > fdisk -l /dev/sda
13 >
14 > Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
15 > Units: sectors of 1 * 512 = 512 bytes
16 > Sector size (logical/physical): 512 bytes / 512 bytes
17 > I/O size (minimum/optimal): 512 bytes / 512 bytes
18 > Disklabel type: dos
19 > Disk identifier: 0x021589e5
20 >
21 > Device Boot Start End Blocks Id System
22 > /dev/sda1 * 2048 155647 76800 83 Linux
23 > /dev/sda2 155648 4349951 2097152 82 Linux swap / Solaris
24 > /dev/sda3 4349952 937703087 466676568 83 Linux
25 >
26 > Does the sda1 has to start with "1" or 2048?
27
28 As of util-linux-2.18, partitions are aligned to 1 MiB boundaries by
29 default, so as to avoid performance degradation on SSDs and advanced
30 format drives [1].
31
32 Further, beginning at 2048 as opposed to 63 (in the manner of MS-DOS)
33 provides more room for boot loaders such as grub to embed themselves.
34
35 To have the first sector be a partition boundary is impossible because
36 that is the location of the MBR and the partition table.
37
38 In summary, let it be.
39
40 --Kerin
41
42 [1] https://bugs.gentoo.org/show_bug.cgi?id=304727
43 [2] https://en.wikipedia.org/wiki/Master_boot_record

Replies

Subject Author
Re: [gentoo-user] MBR partition Joseph <syscon780@×××××.com>