public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] boot partition size
@ 2020-11-24 21:51 thelma
  2020-11-24 23:21 ` Michael
  2020-11-24 23:25 ` Dale
  0 siblings, 2 replies; 5+ messages in thread
From: thelma @ 2020-11-24 21:51 UTC (permalink / raw
  To: Gentoo mailing list

I run gentoo installation from:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks

parted -a optimal /dev/nvme0n1

Device           Start        End    Sectors  Size Type
/dev/nvme0n1p1    2048       6143       4096    2M BIOS boot
/dev/nvme0n1p2    6144     268287     262144  128M EFI System
/dev/nvme0n1p3  268288    1316863    1048576  512M Linux filesystem
/dev/nvme0n1p4 1316864 3907027119 3905710256  1.8T Linux filesystem

When I compiled kernel and run: make install
it complained not enough space on disk

sh ./arch/x86/boot/install.sh 5.4.72-gentoo arch/x86/boot/bzImage \
	System.map "/boot"
cat: write error: No space left on device
make[1]: *** [arch/x86/boot/Makefile:155: install]

/dev/nvme0n1p4  1.8T  3.5G  1.7T   1% /
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
udev             10M     0   10M   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
/dev/sda2       6.4M  6.4M  2.0K 100% /boot

(sda2 - I think is a bootable USB)

-- 
Thelma


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] boot partition size
  2020-11-24 21:51 [gentoo-user] boot partition size thelma
@ 2020-11-24 23:21 ` Michael
  2020-11-24 23:46   ` thelma
  2020-11-24 23:25 ` Dale
  1 sibling, 1 reply; 5+ messages in thread
From: Michael @ 2020-11-24 23:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1765 bytes --]

On Tuesday, 24 November 2020 21:51:53 GMT thelma@sys-concept.com wrote:
> I run gentoo installation from:
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
> 
> parted -a optimal /dev/nvme0n1
> 
> Device           Start        End    Sectors  Size Type
> /dev/nvme0n1p1    2048       6143       4096    2M BIOS boot
> /dev/nvme0n1p2    6144     268287     262144  128M EFI System
> /dev/nvme0n1p3  268288    1316863    1048576  512M Linux filesystem
> /dev/nvme0n1p4 1316864 3907027119 3905710256  1.8T Linux filesystem

I am not clear if this is a UEFI MoBo or not.  If yes, you can use the UEFI 
boot manager, instead of Legacy BIOS and you do not need a 'BIOS boot 
partition'.  If instead you will be booting this disk both in Legacy BIOS and 
UEFI modes, then leave the 'BIOS boot partition' as you have it.  When you 
install GRUB in the MBR it will drop in there its Stage 2 binary code.


> When I compiled kernel and run: make install
> it complained not enough space on disk
> 
> sh ./arch/x86/boot/install.sh 5.4.72-gentoo arch/x86/boot/bzImage \
> 	System.map "/boot"
> cat: write error: No space left on device
> make[1]: *** [arch/x86/boot/Makefile:155: install]
> 
> /dev/nvme0n1p4  1.8T  3.5G  1.7T   1% /
> cgroup_root      10M     0   10M   0% /sys/fs/cgroup
> udev             10M     0   10M   0% /dev
> tmpfs            16G     0   16G   0% /dev/shm
> /dev/sda2       6.4M  6.4M  2.0K 100% /boot
> 
> (sda2 - I think is a bootable USB)

Your /boot mountpoint should be used for /dev/nvme0n1p2, if this is a UEFI 
installation.  If as you report above /boot is on /dev/sda2 you have not 
followed the handbook correctly.  In particular you have not mounted /dev/
nvme0n1p2 as /mnt/gentoo/boot before you chrooted into /mnt/gentoo.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] boot partition size
  2020-11-24 21:51 [gentoo-user] boot partition size thelma
  2020-11-24 23:21 ` Michael
@ 2020-11-24 23:25 ` Dale
  1 sibling, 0 replies; 5+ messages in thread
From: Dale @ 2020-11-24 23:25 UTC (permalink / raw
  To: gentoo-user

thelma@sys-concept.com wrote:
> I run gentoo installation from:
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
>
> parted -a optimal /dev/nvme0n1
>
> Device           Start        End    Sectors  Size Type
> /dev/nvme0n1p1    2048       6143       4096    2M BIOS boot
> /dev/nvme0n1p2    6144     268287     262144  128M EFI System
> /dev/nvme0n1p3  268288    1316863    1048576  512M Linux filesystem
> /dev/nvme0n1p4 1316864 3907027119 3905710256  1.8T Linux filesystem
>
> When I compiled kernel and run: make install
> it complained not enough space on disk
>
> sh ./arch/x86/boot/install.sh 5.4.72-gentoo arch/x86/boot/bzImage \
> 	System.map "/boot"
> cat: write error: No space left on device
> make[1]: *** [arch/x86/boot/Makefile:155: install]
>
> /dev/nvme0n1p4  1.8T  3.5G  1.7T   1% /
> cgroup_root      10M     0   10M   0% /sys/fs/cgroup
> udev             10M     0   10M   0% /dev
> tmpfs            16G     0   16G   0% /dev/shm
> /dev/sda2       6.4M  6.4M  2.0K 100% /boot
>
> (sda2 - I think is a bootable USB)
>

From that last tidbit, yep, /boot appears to be full.  I think the
smallest I ever used for /boot was like 300MBs or so.  Right now, mine
is about 400MBs and is 30% used.  I'd think 100MBs would suffice if you
don't keep to many old kernels laying about.  I cleaned out old kernels
a while back.  Generally when I reach about 50% or so, I clean house. 
This is du -shc /boot for my system.  Maybe it will help you determine
the minimum size needed. 



root@fireball / # du -shc /boot/*
0          /boot/boot
102K    /boot/config-4.19.40-2
110K    /boot/config-5.6.7-2
34M     /boot/grub
6.9M    /boot/grub2
8.9M    /boot/initramfs-4.19.40-3.img
8.9M    /boot/initramfs-5.6.7-2.img
7.0M    /boot/kernel-4.19.40-3
11M     /boot/kernel-5.6.7-2
12K      /boot/lost+found
1.2M    /boot/memtest86-iso
363K    /boot/memtest86plus
152K    /boot/mt500rc1.bin
4.0M    /boot/System.map
4.0M    /boot/System.map-5.4.32
4.0M    /boot/System.map-5.4.32.old
4.0M    /boot/System.map.old
94M     total
root@fireball / #


Let's see.  Kernel:  12MBs at least.  Grub, not sure which one is in
actual use but picking largest one:  35MBs.  Stupid init thingy: 
10MBs.  System.map file:  4MBs.  That's 61MBs.  100MBs would be a bit of
a squeeze but doable.  Future needs may cause trouble tho. 

Hope that helps.

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] boot partition size
  2020-11-24 23:21 ` Michael
@ 2020-11-24 23:46   ` thelma
  2020-11-25 12:42     ` Michael
  0 siblings, 1 reply; 5+ messages in thread
From: thelma @ 2020-11-24 23:46 UTC (permalink / raw
  To: gentoo-user

On 11/24/2020 04:21 PM, Michael wrote:
> On Tuesday, 24 November 2020 21:51:53 GMT thelma@sys-concept.com wrote:
>> I run gentoo installation from:
>> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
>>
>> parted -a optimal /dev/nvme0n1
>>
>> Device           Start        End    Sectors  Size Type
>> /dev/nvme0n1p1    2048       6143       4096    2M BIOS boot
>> /dev/nvme0n1p2    6144     268287     262144  128M EFI System
>> /dev/nvme0n1p3  268288    1316863    1048576  512M Linux filesystem
>> /dev/nvme0n1p4 1316864 3907027119 3905710256  1.8T Linux filesystem
> 
> I am not clear if this is a UEFI MoBo or not.  If yes, you can use the UEFI 
> boot manager, instead of Legacy BIOS and you do not need a 'BIOS boot 
> partition'.  If instead you will be booting this disk both in Legacy BIOS and 
> UEFI modes, then leave the 'BIOS boot partition' as you have it.  When you 
> install GRUB in the MBR it will drop in there its Stage 2 binary code.
> 
> 
>> When I compiled kernel and run: make install
>> it complained not enough space on disk
>>
>> sh ./arch/x86/boot/install.sh 5.4.72-gentoo arch/x86/boot/bzImage \
>> 	System.map "/boot"
>> cat: write error: No space left on device
>> make[1]: *** [arch/x86/boot/Makefile:155: install]
>>
>> /dev/nvme0n1p4  1.8T  3.5G  1.7T   1% /
>> cgroup_root      10M     0   10M   0% /sys/fs/cgroup
>> udev             10M     0   10M   0% /dev
>> tmpfs            16G     0   16G   0% /dev/shm
>> /dev/sda2       6.4M  6.4M  2.0K 100% /boot
>>
>> (sda2 - I think is a bootable USB)
> 
> Your /boot mountpoint should be used for /dev/nvme0n1p2, if this is a UEFI 
> installation.  If as you report above /boot is on /dev/sda2 you have not 
> followed the handbook correctly.  In particular you have not mounted /dev/
> nvme0n1p2 as /mnt/gentoo/boot before you chrooted into /mnt/gentoo.

That was the case, I just mounted the "/dev/nvme0n1p2" partition on /boot and it worked.

But now I'm getting an error with installing grub.

grub-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.

fdisk is showing the /dev/nvme0n1p2 is EFI 
/dev/nvme0n1p2    6144     268287     262144  128M EFI System

 
No, don't need BIOS, boot partition (created it by mistake), I think I can remove this partition with fdisk
/dev/nvme0n1p1    2048       6143       4096    2M BIOS boot


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] boot partition size
  2020-11-24 23:46   ` thelma
@ 2020-11-25 12:42     ` Michael
  0 siblings, 0 replies; 5+ messages in thread
From: Michael @ 2020-11-25 12:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2644 bytes --]

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

Have you created a VFAT filesystem on the /dev/nvme0n1p2 partition?

unmount /dev/nvme0n1p2
mkfs.vfat -n boot /dev/nvme0n1p2
mount /dev/nvme0n1p2

the above will create the vfat fs needed for an ESP.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-25 12:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-24 21:51 [gentoo-user] boot partition size thelma
2020-11-24 23:21 ` Michael
2020-11-24 23:46   ` thelma
2020-11-25 12:42     ` Michael
2020-11-24 23:25 ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox