I'm running a box under Gentoo. Said box is a server (no GUI, only SSH).Since I used genkernel to generate my kernel, I've seen that it creates several images (System.map, initramfs, kernel) that takes some place:$ du -ahd1|sort -k1h0       ./boot0       ./.keep12K     ./lost+found1.4M    ./memtest86plus2.4M    ./System.map-genkernel-x86_64-4.9.34-gentoo2.7M    ./System.map-genkernel-x86_64-4.12.5-gentoo3.7M    ./kernel-genkernel-x86_64-4.9.34-gentoo4.2M    ./initramfs-genkernel-x86_64-4.9.34-gentoo8.1M    ./grub8.3M    ./kernel-genkernel-x86_64-4.12.5-gentoo31MIndeed, my /boot partition is only 32M large and I'd like to change its size to some size that better accommodate this (like 256M).My /dev/sda is as follow; for reference, it is an Intel SSD (although it is an old model).$ lsblk /dev/sdaNAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTsda      8:0    0 37.3G  0 disksda2   8:2    0 37.2G  0 part /sda1   8:1    0   32M  0 part /bootI know I can grow a partition on some condition (end of disk, etc) and shrink it. I also know it is risky and I'm not enough confident to do it without using a good GUI.Can I do that:shrink /dev/sda2 to get some spacecreate and mount /dev/sd3 as /new_bootcopy whole /boot to /new_boot (either threw a simple copy, either threw dd ?)swap /boot and /new_bootdrop /dev/sda1 and resize /dev/sda2Or is there a better solution ? (I have physical access to the server)
Gentoo: changing the size of a /boot partition at the beginning of a disk
boot;partition;gentoo
Just use your root partition to store the content of /boot:mount --move /boot /elsewhere or umount /boot it and mount it on /elsewherecopy the content of /elsewhere into the now (probably) empty /boot while preserving the rights and owners of everything (cp -a /elsewhere/. /boot)umount /elsewhereremove /boot from /etc/fstabupdate grub (grub-install probably, or your Gentoo wrapper if any)rebootEnsure that everything is fine and that you are not using anything from your old /boot partition before emptying it or recycling it (personnally I would not take any risk for 32M)