Linux Lite Forums
'Not enough free disk space' for updates - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.linuxliteos.com/forums/forumdisplay.php?fid=20)
+--- Thread: 'Not enough free disk space' for updates (/showthread.php?tid=2042)



'Not enough free disk space' for updates - mandoran - 07-31-2015

I've encountered a problem with regular updates for LL 2.4 - I am supposedly 21.2 MB short on "disk /boot" for an 82.8MB download and despite following instructions (emptying trash and running sudo apt-get clean) the update insists the lack of space remains.

What can I do?


Re: 'Not enough free disk space' for updates - UltraCookie - 07-31-2015

Are you sure you have enough free space on the /boot partition?

try this
Code:
df -h



Re: 'Not enough free disk space' for updates - mandoran - 07-31-2015

Thanks - the info there is: /dev/sda1                  236M  165M  59M  74% /boot
so I do seem a bit short, which doesn't surprise me.

I guess the correct question is how I can create more space?


Re: 'Not enough free disk space' for updates - UltraCookie - 07-31-2015

I found this one-liner

Code:
dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |while read n;do apt-get -y remove $n;done

from here

maybe it helps.

PS: you need to run the command in a root terminal. just adding sudo does not work.


Re: 'Not enough free disk space' for updates - mandoran - 07-31-2015

Something i used to do which I think would help, was to search on Linux-generic in Synaptic and then completely remove everything but the current and previous versions. Am I right in thinking this is both safe and helpful?

Ah, Lite Tweaks is probably the safest way to do this...


Re: 'Not enough free disk space' for updates - N4RPS - 07-31-2015

Hello!

Yes, if you have old kernels on /boot, removing them should get you the space you need. You could try GPartEd in a LiveCD/LiveUSB to 'grow'  it, but that can get flaky when /boot comes into play.

In the future, if you can, you might want to make /boot a tad larger...

73 DE N4RPS
Rob
Rob



Re: 'Not enough free disk space' for updates - rokytnji - 08-01-2015

Resizing is done with livecd like Parted Magic Iso, Linux Lite 2.4 live.

You shrink the drive you wish to borrow the space from for boot. It cannot be on a extended partition however (the one you need to borrow space from.
Shrink it. When done. Resize the /boot to grab the extra space. Hit apply. Done.

Latest gparted live cd  if you need just a small iso for just partitioning work. I keep one on my cd rack.
http://gparted.org/livecd.php

Code:
df -h --total

will tell you where everything is and

Code:
sudo parted -l

should inform you of extended/logical partitions.
Code:
sudo parted -l
Model: ATA SAMSUNG HM321HI (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size    Type      File system     Flags
1      1049kB  106MB  105MB   primary   ntfs            boot
2      106MB   123GB  122GB   primary   ntfs
3      123GB   320GB  198GB   extended
6      123GB   141GB  19.0GB  logical   ext4
5      141GB   316GB  174GB   logical   ext4
7      316GB   320GB  4193MB  logical   linux-swap(v1)

If my /boot partition is above extended. I have to borrow space from ntfs primary and shrink that one.
If my /boot partition is below extended. I have to borrow space from ext4  and borrow space for either one of those. One is my / root. The other is /home.


Re: 'Not enough free disk space' for updates - N4RPS - 08-01-2015

Hello!

Thanks, rokytnji, for 'filling in the blanks' on this one!

73 DE N4RPS
Rob