No space left on device / but there should be space enough

vikozo

Renowned Member
May 4, 2014
782
31
93
suisse
www.wombat.ch
Hello
i have a error doing a update

root@srv-03:~# apt autoremove -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
pve-kernel-5.15.107-2-pve
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
8 not fully installed or removed.
After this operation, 400 MB disk space will be freed.
(Reading database ... 172926 files and directories currently installed.)
Removing pve-kernel-5.15.107-2-pve (5.15.107-2) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.15.107-2-pve /boot/vmlinuz-5.15.107-2-pve
update-initramfs: Deleting /boot/initrd.img-5.15.107-2-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.15.107-2-pve /boot/vmlinuz-5.15.107-2-pve
run-parts: executing /etc/kernel/postrm.d/zz-proxmox-boot 5.15.107-2-pve /boot/vmlinuz-5.15.107-2-pve
Re-executing '/etc/kernel/postrm.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/C740-C0DF
Copying kernel 5.15.107-1-pve
Copying kernel 5.15.143-1-pve
cp: error writing '/var/tmp/espmounts/C740-C0DF/vmlinuz-5.15.143-1-pve': No space left on device
run-parts: /etc/kernel/postrm.d/zz-proxmox-boot exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.15.107-2-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.15.107-2-pve (--remove):
installed pve-kernel-5.15.107-2-pve package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
pve-kernel-5.15.107-2-pve
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

But

root@srv-03:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.5M 3.2G 1% /run
rpool/ROOT/pve-1 1.1T 26G 1009G 3% /
tmpfs 16G 88M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
rpool 1009G 128K 1009G 1% /rpool
rpool/data 1009G 128K 1009G 1% /rpool/data
rpool/ROOT 1009G 128K 1009G 1% /rpool/ROOT
/dev/fuse 128M 76K 128M 1% /etc/pve
tmpfs 3.2G 0 3.2G 0% /run/user/0

how to remove the old file?
have a nice day
vinc
 
Hello,
this device has not enough space: /dev/disk/by-uuid/C740-C0DF and it is not mounted by default, therefore df -h will not show it.
You can mount the partition manually and clean it up first, e. g. as described here.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!