Op dinsdag 7 juli 2020 08:51:00 CEST schreef Mathias Homann:
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?
I use gparted to move and enlarge partitions with data. I do this when putting an image on a SD card and I want to change the layout of the partitions on the card to change. However these partitions must not be mounted. So maybe you can use a Leap 15.2 system on an USB stick to boot. You can experiment with gparted and a system on a USB stick or SD card. I am not familiar with LV's. Assuming the size of sda2 can be shrunken, you can do that first; you need some free space at the end. I am not sure you can do that with gparted. So you may need to copy the content of sda2 to a backup. Then you can create a sda2 till the end of the disk, leaving a gap between sda1 and sda2 and populate sda2 with the saved data. This can take quite some time, because all data needs to be moved (maybe twice). After that extending sda1 with the size of the gap is easy. When you need to delete a partition and create a new one it gets a new UUID, so GRUB on the boot partition, which normally uses UUIDs can't find the new created sda2. However you can also use a label to search for partitions. So when grub uses a label to mount the root partition, where /etc/fstab is located it will find that partition. But also /etc/fstab needs a LABEL to mount the newly created partition. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org