Write error : cannot write block : No space left on device
Seems like your boot partition is full.
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Write error : cannot write block : No space left on device
Seems like your boot partition is full.
For some reason the Debian installer likes to make a tiny /boot
so you can only fit 2-3 kernels at most. Try removing some old ones first.
would you help the noob here and explain how to do that?
I've created a small helper script to help me with this:
#!/bin/bash
USED_VER=$(uname -r)
echo "Kernel version in use: $USED_VER"
echo "Other installed versions:"
dpkg --list 'linux-image*' | grep ^ii | grep -v $USED_VER
echo "Remove unneeded packages above using the following command:"
echo "sudo apt remove linux-image-VERSION"
It prints a list of the installed kernels (excl. the running one) and prints the command to uninstall the packages (it doesn't remove anything by itself).
Something like dpkg -l '*linux-image*'
and then see which are installed (ii
), and then do a dpkg remove <package name from above>
on some, but don't remove the one you are running now, check uname -a
to see.
Keep in mind this is all from memory, so might be wrong
Edit: now I see others replied as well with better ways
apt autoremove should do it
Note. Before rebooting, regenerate initramfs for all kernel versions. I am not in debian, but dpkg-reconfigure initramfs-tools might do it.