Posts: 104
Threads: 16
Joined: Feb 2014
Reputation:
0
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?
Posts: 159
Threads: 16
Joined: Mar 2015
Reputation:
0
Are you sure you have enough free space on the /boot partition?
try this
Linux Lite 5.0 on Lenovo Edge 540 <3
Posts: 104
Threads: 16
Joined: Feb 2014
Reputation:
0
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?
Posts: 159
Threads: 16
Joined: Mar 2015
Reputation:
0
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
Posts: 104
Threads: 16
Joined: Feb 2014
Reputation:
0
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...
Posts: 1,149
Threads: 22
Joined: Feb 2014
Reputation:
0
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
A gun in your hand is worth more than a whole police force on the phone.
Posts: 1,255
Threads: 21
Joined: Aug 2014
Reputation:
0
08-01-2015, 01:49 AM
(This post was last modified: 08-01-2015, 02:02 AM by rokytnji.)
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
will tell you where everything is and
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.
Posts: 1,149
Threads: 22
Joined: Feb 2014
Reputation:
0
Hello!
Thanks, rokytnji, for 'filling in the blanks' on this one!
73 DE N4RPS
Rob
A gun in your hand is worth more than a whole police force on the phone.