Support Requests - CLICK TO READ BEFORE POSTING


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

'Not enough free disk space' for updates
#1

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?
Reply
#2

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

try this
Code:
df -h

Linux Lite 5.0 on Lenovo Edge 540 <3
Reply
#3

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?
Reply
#4

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.

Linux Lite 5.0 on Lenovo Edge 540 <3
Reply
#5

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...
Reply
#6

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

[Image: EtYqOrS.png%5D]

A gun in your hand is worth more than a whole police force on the phone.
Reply
#7

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.

LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
Reply
#8

Hello!

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

73 DE N4RPS
Rob

[Image: EtYqOrS.png%5D]

A gun in your hand is worth more than a whole police force on the phone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)