Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] boot partition size
Date: Wed, 25 Nov 2020 12:42:35
Message-Id: 12652751.uLZWGnKmhe@lenovo.localdomain
In Reply to: Re: [gentoo-user] boot partition size by thelma@sys-concept.com
1 On Tuesday, 24 November 2020 23:46:28 GMT thelma@×××××××××××.com wrote:
2 > On 11/24/2020 04:21 PM, Michael wrote:
3 > > On Tuesday, 24 November 2020 21:51:53 GMT thelma@×××××××××××.com wrote:
4 > >> I run gentoo installation from:
5 > >> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
6 > >>
7 > >> parted -a optimal /dev/nvme0n1
8 > >>
9 > >> Device Start End Sectors Size Type
10 > >> /dev/nvme0n1p1 2048 6143 4096 2M BIOS boot
11 > >> /dev/nvme0n1p2 6144 268287 262144 128M EFI System
12 > >> /dev/nvme0n1p3 268288 1316863 1048576 512M Linux filesystem
13 > >> /dev/nvme0n1p4 1316864 3907027119 3905710256 1.8T Linux filesystem
14 > >
15 > > I am not clear if this is a UEFI MoBo or not. If yes, you can use the
16 > > UEFI
17 > > boot manager, instead of Legacy BIOS and you do not need a 'BIOS boot
18 > > partition'. If instead you will be booting this disk both in Legacy BIOS
19 > > and UEFI modes, then leave the 'BIOS boot partition' as you have it.
20 > > When you install GRUB in the MBR it will drop in there its Stage 2 binary
21 > > code.>
22 > >> When I compiled kernel and run: make install
23 > >> it complained not enough space on disk
24 > >>
25 > >> sh ./arch/x86/boot/install.sh 5.4.72-gentoo arch/x86/boot/bzImage \
26 > >>
27 > >> System.map "/boot"
28 > >>
29 > >> cat: write error: No space left on device
30 > >> make[1]: *** [arch/x86/boot/Makefile:155: install]
31 > >>
32 > >> /dev/nvme0n1p4 1.8T 3.5G 1.7T 1% /
33 > >> cgroup_root 10M 0 10M 0% /sys/fs/cgroup
34 > >> udev 10M 0 10M 0% /dev
35 > >> tmpfs 16G 0 16G 0% /dev/shm
36 > >> /dev/sda2 6.4M 6.4M 2.0K 100% /boot
37 > >>
38 > >> (sda2 - I think is a bootable USB)
39 > >
40 > > Your /boot mountpoint should be used for /dev/nvme0n1p2, if this is a UEFI
41 > > installation. If as you report above /boot is on /dev/sda2 you have not
42 > > followed the handbook correctly. In particular you have not mounted /dev/
43 > > nvme0n1p2 as /mnt/gentoo/boot before you chrooted into /mnt/gentoo.
44 >
45 > That was the case, I just mounted the "/dev/nvme0n1p2" partition on /boot
46 > and it worked.
47 >
48 > But now I'm getting an error with installing grub.
49 >
50 > grub-install --target=x86_64-efi --efi-directory=/boot
51 > Installing for x86_64-efi platform.
52 > grub-install: error: /boot doesn't look like an EFI partition.
53 >
54 > fdisk is showing the /dev/nvme0n1p2 is EFI
55 > /dev/nvme0n1p2 6144 268287 262144 128M EFI System
56
57 Have you created a VFAT filesystem on the /dev/nvme0n1p2 partition?
58
59 unmount /dev/nvme0n1p2
60 mkfs.vfat -n boot /dev/nvme0n1p2
61 mount /dev/nvme0n1p2
62
63 the above will create the vfat fs needed for an ESP.

Attachments

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