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