On 07/07/2020 08.51, Mathias Homann wrote:
Hi,
(this is on 15.2)
today's kernel update barfed on me, "package kernel-xxxx needs YY MB on /boot". I managed to install the update by manually moving the old kernel images to /tmp, installing the update rpm, and then moving them back, but for obvious reasons I don't want to have to do that with every kernel update, so here's the plea for inspiration:
how can I resize /dev/sda1 and the filesystem on it, without loosing anythign on my system?
The situation:
/dev/sda[abcd] exist. /dev/sda1 is a bog-standard ext4, 150MB, mounted on /boot
What is "bog"? :-?
/dev/sda2 covers the rest of the disk, and is a PV for LVM /dev/sd[bcd]1 all exist, span their whole disks, and are PVs in the same VG as /dev/sda2
I have enough room to do a pvmove from /dev/sda2 to anywhere else if i resize a few of the volumes in my VG, so getting to the point where /dev/sda1 is all that's left on /dev/sda should be easy enough, but I've never resized a normal partition - learned about LVM too early in my career ;)
How do I resize a normal partition and the filesystem on it? Like I already said, filesystem is ext4.
Different idea: uninstall plymouth. That reduces the size of each initrd by several megabytes, maybe 15 or 20. That might give you some years extra :-D You could also reformat sda1 as ext2. No journal saves some space, and you really do not need a journal on such a small filesystem. Or, try format as ext4 without journal (it is what I do on USB sticks): mke2fs -t ext4 -O ^has_journal /dev/sda1 but I think it is better as ext2. All my /boot partitions are ext2. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)