1 |
On Friday 26 Aug 2016 12:33:47 Mick wrote: |
2 |
> On Friday 26 Aug 2016 09:32:25 Peter Humphrey wrote: |
3 |
> > In my search for a suitable boot method, I'm trying Mike G's |
4 |
> > systemd-boot ebuild. I've installed it with no problem, and now I reach |
5 |
> > the heart-in-mouth stage of actually replacing gummiboot with it. But |
6 |
> > first, the backup, including dd of what used to be called the MBR (what |
7 |
> > is it now?). |
8 |
> > |
9 |
> > # parted -l |
10 |
> > Model: Unknown (unknown) |
11 |
> > Disk /dev/nvme0n1: 256GB |
12 |
> > Sector size (logical/physical): 512B/512B |
13 |
> > Partition Table: gpt |
14 |
> > Disk Flags: |
15 |
> > |
16 |
> > Number Start End Size File system Name Flags |
17 |
> > |
18 |
> > 1 1049kB 3146kB 2097kB uefi bios_grub |
19 |
> > 2 3146kB 144MB 141MB fat32 boot boot, esp |
20 |
> > 3 144MB 4504MB 4360MB linux-swap(v1) swap |
21 |
> > 4 4504MB 15.0GB 10.5GB ext4 rescuesys |
22 |
> > 5 15.0GB 32.2GB 17.2GB ext4 gentoo |
23 |
> > 6 32.2GB 36.5GB 4295MB ext4 var |
24 |
> > 7 36.5GB 45.1GB 8590MB ext4 home |
25 |
> > |
26 |
> > [...] |
27 |
> > |
28 |
> > That start block of the uefi partition looks odd to me. |
29 |
> |
30 |
> The 'Name' of the 1st partition is the label you have provided when you |
31 |
> created it. It is NOT the type of the partition, which is shown under the |
32 |
> 'Flags' column as 'bios_grub'. |
33 |
|
34 |
Yes, I know that of course. I called the first partition "uefi" because |
35 |
that's what the wiki used, and nothing more suitable suggested itself. |
36 |
|
37 |
> The 1st partition was created to accommodate Grub's boot code. |
38 |
|
39 |
Now that I didn't know. Well, I was hazy about it anyway. |
40 |
|
41 |
> It starts on the first cylinder (change the units in parted to cyl and |
42 |
> you'll see it starts at '0 cyl') and has no fs on it. |
43 |
|
44 |
Indeed, except that parted doesn't want to use cylinders in its list output. |
45 |
|
46 |
> > I'm pretty sure I didn't specify a start position to parted when I was |
47 |
> > constructing the partition layout six months ago, preferring to let the |
48 |
> > program choose a value itself. |
49 |
> |
50 |
> Parted and friends will create this partition for Grub at the very start |
51 |
> of the disk, when you use GPT. |
52 |
|
53 |
Quite so. |
54 |
|
55 |
> > I do remember, though, that parted had a strange idea of what |
56 |
> > 2MB meant: it's turned out to be 2097kB. |
57 |
> |
58 |
> You are mixing decimal and binary. 2MiB = 2 x 1024^2 = 2,097,152 |
59 |
|
60 |
Well, it isn't me who's mixing them, but parted. I was operating in MiB |
61 |
throughout, as far as I could tell. |
62 |
|
63 |
> > My question for the panel is whether I need to do anything about that |
64 |
> > partition layout. What do you think? |
65 |
> |
66 |
> You don't have to do something about it, if you want to retain the ability |
67 |
> to use Grub. If you will no longer use grub then you probably do not |
68 |
> need the first grub-specific partition. |
69 |
|
70 |
I hope I never have to look at grub-2 again. All the same, 2MiB is a small |
71 |
enough price to pay for flexibility. |
72 |
|
73 |
> As shown above the second partition is your EFI partition. 141MB may not |
74 |
> be enough to store many kernel images, but it depends on how many kernel |
75 |
> images and initramfs you keep in there at any time. |
76 |
|
77 |
I expect to hold two or three kernels in the boot partition: the latest, a |
78 |
recent known-working one and perhaps a long-term one. I haven't needed an |
79 |
initramfs yet. |
80 |
|
81 |
-- |
82 |
Rgds |
83 |
Peter |