Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] UEFI booting
Date: Sat, 27 Aug 2016 11:30:56
Message-Id: 1523238.quvKKnLGk4@dell_xps
In Reply to: Re: [gentoo-user] UEFI booting by Peter Humphrey
1 On Saturday 27 Aug 2016 10:19:48 Peter Humphrey wrote:
2 > On Friday 26 Aug 2016 12:33:47 Mick wrote:
3 > > On Friday 26 Aug 2016 09:32:25 Peter Humphrey wrote:
4 > > > In my search for a suitable boot method, I'm trying Mike G's
5 > > > systemd-boot ebuild. I've installed it with no problem, and now I reach
6 > > > the heart-in-mouth stage of actually replacing gummiboot with it. But
7 > > > first, the backup, including dd of what used to be called the MBR (what
8 > > > is it now?).
9 > > >
10 > > > # parted -l
11 > > > Model: Unknown (unknown)
12 > > > Disk /dev/nvme0n1: 256GB
13 > > > Sector size (logical/physical): 512B/512B
14 > > > Partition Table: gpt
15 > > > Disk Flags:
16 > > >
17 > > > Number Start End Size File system Name Flags
18 > > >
19 > > > 1 1049kB 3146kB 2097kB uefi bios_grub
20 > > > 2 3146kB 144MB 141MB fat32 boot boot, esp
21 > > > 3 144MB 4504MB 4360MB linux-swap(v1) swap
22 > > > 4 4504MB 15.0GB 10.5GB ext4 rescuesys
23 > > > 5 15.0GB 32.2GB 17.2GB ext4 gentoo
24 > > > 6 32.2GB 36.5GB 4295MB ext4 var
25 > > > 7 36.5GB 45.1GB 8590MB ext4 home
26 > > >
27 > > > [...]
28 > > >
29 > > > That start block of the uefi partition looks odd to me.
30 > >
31 > > The 'Name' of the 1st partition is the label you have provided when you
32 > > created it. It is NOT the type of the partition, which is shown under the
33 > > 'Flags' column as 'bios_grub'.
34 >
35 > Yes, I know that of course. I called the first partition "uefi" because
36 > that's what the wiki used, and nothing more suitable suggested itself.
37 >
38 > > The 1st partition was created to accommodate Grub's boot code.
39 >
40 > Now that I didn't know. Well, I was hazy about it anyway.
41 >
42 > > It starts on the first cylinder (change the units in parted to cyl and
43 > > you'll see it starts at '0 cyl') and has no fs on it.
44 >
45 > Indeed, except that parted doesn't want to use cylinders in its list output.
46
47 Run parted:
48
49 parted /dev/sda
50
51 then set the units e.g. to "MiB", or sectors "s", or cylinders "cyl":
52
53 (parted) unit MiB
54 (parted) p
55
56 to see the result. Then q to quit without changing the table.
57 --
58 Regards,
59 Mick

Attachments

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