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