Open dbworku opened 2 years ago
You are running on a legacy BIOS installation and not a UEFI installation, correct?
Yup @jacobgkau! From $ sudo parted -ls
:
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/cryptswap: 4294MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 4294MB 4294MB linux-swap(v1)
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/data-root: 995GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 995GB 995GB ext4
Error: /dev/mapper/cryptdata: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/cryptdata: 995GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
Model: Sabrent Rocket 4.0 1TB (nvme)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2097kB 524MB 522MB primary ext4 boot
2 524MB 996GB 995GB primary
3 996GB 1000GB 4295MB primary linux-swap(v1)
Thank you. I think this is a duplicate of https://github.com/pop-os/pop/issues/1714. Can you please try running sudo apt autoremove --purge
and see if that removes some of the older files? I'd like to determine if the issue (at least in your case) would be solved by automatically removing old packages, or if it's a different problem with the mechanism managing the kernel/initramfs images.
Bingo! Autoremove detected and removed the old images. Excerpt from sudo apt autoremove --purge
:
The following packages will be REMOVED:
libgl1-amber-dri* libllvm13* libllvm13:i386* libprotobuf-dev* libprotobuf-lite23* libprotoc23* libssl1.1* linux-headers-5.18.10-76051810*
linux-headers-5.18.10-76051810-generic* linux-image-5.18.10-76051810-generic* linux-modules-5.18.10-76051810-generic*
Now the boot disk looks correct.
dbworku@pop-os:~/repos/nflxprofile/python$ ls -lh /boot/
total 270M
-rw-r--r-- 1 root root 263K Sep 21 13:10 config-5.19.0-76051900-generic
-rw-r--r-- 1 root root 265K Oct 20 11:04 config-6.0.2-76060002-generic
drwxr-xr-x 4 root root 4.0K Oct 28 15:51 grub
lrwxrwxrwx 1 root root 33 Oct 25 19:00 initrd.img -> initrd.img-6.0.2-76060002-generic
-rw-r--r-- 1 root root 117M Oct 25 19:00 initrd.img-5.19.0-76051900-generic
-rw-r--r-- 1 root root 118M Oct 25 19:01 initrd.img-6.0.2-76060002-generic
lrwxrwxrwx 1 root root 34 Oct 25 19:00 initrd.img.old -> initrd.img-5.19.0-76051900-generic
drwx------ 2 root root 16K Jan 6 2022 lost+found
-rw------- 1 root root 6.1M Sep 21 13:10 System.map-5.19.0-76051900-generic
-rw------- 1 root root 6.2M Oct 20 11:04 System.map-6.0.2-76060002-generic
lrwxrwxrwx 1 root root 30 Oct 25 19:00 vmlinuz -> vmlinuz-6.0.2-76060002-generic
-rw------- 1 root root 12M Sep 21 13:10 vmlinuz-5.19.0-76051900-generic
-rw------- 1 root root 12M Oct 20 11:04 vmlinuz-6.0.2-76060002-generic
lrwxrwxrwx 1 root root 31 Oct 25 19:00 vmlinuz.old -> vmlinuz-5.19.0-76051900-generic
Heads up @jacobgkau, using autoremove
stopped working with latest update to Linux kernel 6.0.6.
dbworku@pop-os:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 13G 2.8M 13G 1% /run
/dev/mapper/data-root 912G 278G 588G 33% /
tmpfs 63G 114M 63G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p1 466M 414M 18M 97% /boot
tmpfs 13G 216K 13G 1% /run/user/1000
dbworku@pop-os:~$ ls -lh /boot/
total 407M
-rw-r--r-- 1 root root 265K Oct 20 11:04 config-6.0.2-76060002-generic
-rw-r--r-- 1 root root 265K Oct 22 08:20 config-6.0.3-76060003-generic
-rw-r--r-- 1 root root 265K Nov 21 12:20 config-6.0.6-76060006-generic
drwxr-xr-x 4 root root 4.0K Dec 2 11:40 grub
lrwxrwxrwx 1 root root 33 Dec 2 11:39 initrd.img -> initrd.img-6.0.6-76060006-generic
-rw-r--r-- 1 root root 118M Nov 3 22:01 initrd.img-6.0.2-76060002-generic
-rw-r--r-- 1 root root 118M Nov 3 22:01 initrd.img-6.0.3-76060003-generic
-rw-r--r-- 1 root root 118M Dec 2 11:40 initrd.img-6.0.6-76060006-generic
lrwxrwxrwx 1 root root 33 Dec 2 11:39 initrd.img.old -> initrd.img-6.0.3-76060003-generic
drwx------ 2 root root 16K Jan 6 2022 lost+found
-rw------- 1 root root 6.2M Oct 20 11:04 System.map-6.0.2-76060002-generic
-rw------- 1 root root 6.2M Oct 22 08:20 System.map-6.0.3-76060003-generic
-rw------- 1 root root 6.2M Nov 21 12:20 System.map-6.0.6-76060006-generic
lrwxrwxrwx 1 root root 30 Dec 2 11:39 vmlinuz -> vmlinuz-6.0.6-76060006-generic
-rw------- 1 root root 12M Oct 20 11:04 vmlinuz-6.0.2-76060002-generic
-rw------- 1 root root 12M Oct 22 08:20 vmlinuz-6.0.3-76060003-generic
-rw------- 1 root root 12M Nov 21 12:20 vmlinuz-6.0.6-76060006-generic
lrwxrwxrwx 1 root root 30 Dec 2 11:39 vmlinuz.old -> vmlinuz-6.0.3-76060003-generic
Autoremove fails when running update-initramfs
on a out of disk space error.
dbworku@pop-os:~$ sudo apt autoremove --purge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.140ubuntu13) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-6.0.6-76060006-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_7_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_7_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_0_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_0_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_4_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_4_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_imu.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_imu.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_imu.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_0.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_4.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_0.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_7.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_0.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/dcn_3_2_1_dmcub.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/dcn_3_2_0_dmcub.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/dcn_3_1_4_dmcub.bin for module amdgpu
zstd: error 25 : Write error : No space left on device (cannot write compressed block)
E: mkinitramfs failure zstd -q -1 -T0 25
update-initramfs: failed for /boot/initrd.img-6.0.6-76060006-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
dbworku@pop-os:~$
Distribution (run
cat /etc/os-release
):Related Application and/or Package Version (run
apt policy $PACKAGE NAME
):Issue/Bug Description: I use the Pop!_Shop to update my operating system. After the latest update, my OS now warns about space running out on the boot partition. It looks like this is because the latest update migrated to the Linux version
6.0.2
without deleting the third oldest version(5.18.10
) on my boot paritionSteps to reproduce (if you know): Update Linux kernel version with the "Operating System Updates" item in Pop!_Shop?
Expected behavior: When I updated to
6.0.2-76060002-generic
, any files associated with5.18.10-76051810-generic
should have been deleted...initrd.img
toinitrd.img-6.0.2-76060002-generic
initrd.img.old
toinitrd.img-5.19.0-76051900-generic
initrd.img-5.18.10-76051810-generic
(this didn't happen)Other Notes:
Evidence that the boot parition is 95% full
Evidence that we are holding on to
5.18.10-76051810-generic
files that aren't the current or.old
version.