not enough space for upgrading

David Restall - System Administrator dave at restall.net
Fri Dec 15 11:51:22 UTC 2006


Hi Pol, 

> I would like to upgrade the linux-image-2.6.17-generic but installation
> fails due to 'no space on device'.
> Probably it is because of the large amount of space required in the /lib 
> My root has is only 150 MB and only 44 MB are available.
> The  /lib/modules alone, containing only the 2.6.17-10-generic/ directory,
> takes about 56 MB.
> 
> Any hints?
> 
> Thank you for your help

Long gone are the days when we could install GNU/Linux on a 512MB HDD
and just use a massive 32MB for the root partition :-(

I fell into the same trap when I first installed Ubuntu and ran short of
disk space.  How I solved the problem was to create a directory on
another partition e.g. /home/2.6.17-10-generic then create a symlink to
that from /lib, e.g. :-

	ln -s /home/2.6.17-10-generic /lib/2.6.17-10-generic

then install your kernel.

Once that is done, do a du -h /home/2.6.17-10-generic and if it uses
less space than what is available on your / partition, remove the sym
link and then :-

	mv /home/2.6.17-10-generic /lib

if there is not enough space, clear some space out.  I had a few older
kernel packages on the disk that I never used so I deleted them and
there was enough.

TTFN


D
ubuntu/users-2006-12-15.tx             linux_milano at yahoo.it ubuntu-users
+----------------------------------------------------------------------------+
| Dave Restall, Computer Nerd, Cyclist, Radio Amateur G4 FCU, Bodger         |
| Mob +44 (0) 7973 831245      Skype: dave.restall             Radio: G4 FCU |
| email : dave at restall.net                     Web : Not Ready Yet :-(       |
+----------------------------------------------------------------------------+
| MS-DOS must die!                                                           |
+----------------------------------------------------------------------------+





More information about the ubuntu-users mailing list