On 07/07/2020 06:18, Felix Miata wrote:
Mathias Homann composed on 2020-07-07 02:51 (UTC-0400):
(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
Surely you cannot need all the kernels that must be installed to exhaust all the space on a 150MB /boot filesystem. How many are there? 2 should be enough.
I just added 5.3.18-lp152-20.7-default to a 15.2 system, which consumed ~39MB on /boot. 9 kernels live in this /boot. Total space consumed by /boot is 1.0GiB.
Oh really? # ls -l /boot/vmlinuz* lrwxrwxrwx 1 root root 32 Jul 6 11:22 /boot/vmlinuz -> vmlinuz-5.7.7-1.gcba119b-default -rw-r--r-- 1 root root 10279648 Jun 13 05:56 /boot/vmlinuz-5.7.2-2.g7721ea3-default -rw-r--r-- 1 root root 10279680 Jun 15 02:14 /boot/vmlinuz-5.7.2-3.ga96d63c-default -rw-r--r-- 1 root root 10279840 Jun 17 05:55 /boot/vmlinuz-5.7.2-4.gfb5dacf-default -rw-r--r-- 1 root root 10283520 Jun 18 03:30 /boot/vmlinuz-5.7.3-1.g44c4af0-default -rw-r--r-- 1 root root 10283040 Jun 21 05:15 /boot/vmlinuz-5.7.4-1.g23bad63-default -rw-r--r-- 1 root root 10283296 Jun 23 05:43 /boot/vmlinuz-5.7.4-2.g23bad63-default -rw-r--r-- 1 root root 10285856 Jun 24 04:44 /boot/vmlinuz-5.7.5-2.gf3d2ea3-default -rw-r--r-- 1 root root 10285856 Jun 26 05:06 /boot/vmlinuz-5.7.5-3.gf3d2ea3-default -rw-r--r-- 1 root root 10287520 Jun 26 09:15 /boot/vmlinuz-5.7.6-2.g1549350-default -rw-r--r-- 1 root root 10288640 Jul 2 03:27 /boot/vmlinuz-5.7.7-1.gcba119b-default # df -h /boot / Filesystem Size Used Avail Use% Mounted on /dev/sda1 1.9G 400M 1.4G 23% /boot /dev/mapper/vgmain-vROOT4 40G 6.7G 32G 18% / # blkid /dev/sda1 /dev/mapper/vgmain-vROOT4 /dev/sda1: LABEL="BOOT" UUID="fe7be533-fb41-421d-9216-29c9701ec01c" TYPE="ext2" PTTYPE="dos" PARTLABEL="primary" PARTUUID="cebb3ec5-8cfe-4272-954e-04552ca5305c" /dev/mapper/vgmain-vROOT4: LABEL="ROOT4" UUID="c7fbbfa9-50d8-4d31-add8-7a53c57ca098" TYPE="ext4" -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org