Not enough space in boot to upgrade

Asked by giulia

Hello
I am trying to upgrade from my 8.04 to 8.10 to go then to 9.04 and 9.10.
During the upgrade I get the message I need more space in my boot
partition. I have moved everthing away from there but it is still not enough
as it asks me 126M of space and I only have 100M on it.
Can you please tell me what to do ?
I have seen that others had the problem in the past but I have not
found an answer to my question, as my partition seems to be smaller that the space required.

Many thanks
cheers giulia

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gparted Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please open a terminal and please send us the result of

df -h

command.

Thank you

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#2

You can do a few things:

1. sudo apt-get clean
Old debs mount up in /var/caches/apt/archives and are not cleaned out automatically so running this can clean stuff out

2. sudo apt-get --purge remove openoffice*
OpenOffice.org takes up ~500Mb. If you uninstall this app and install Abiword (sudo apt-get install abiword) for word processing (takes about 10Mb) and install gnumeric (sudo apt-get install gnumeric) for spreadsheet functionality (takes about 12Mb space) you will save a massive amount of space.

3. Old kernels
When you get a new kernel in ubuntu, you will keep the old kernels, even with a release upgrade. If you run:
uname -a
You can see your current kernel version. You can then run:
dpkg -l | grep linux-image
To see the installed kernels. You can then use:
sudo apt-get --purge remove linux-image-<version>
To remove the old kernel, do NOT remove the kernel which is running. Once all the old kernels are removed you can run:
sudo apt-get --purge autoremove
Each kernel you remove will give you about 120Mb per kernel.

4. Unnecessary packages
You can save further space by removing unneeded packages. If you do not use VNC then you can remove vinagre, if you only use apt-get then you can uninstall software-centre. If you never use ubuntuone, remove the client. f you run:
dpkg -l less
and read the list (ignore any packages starting with 'lib') then you can remove unused packages and save more space

Revision history for this message
Rama Prakash S (ramp-subbu) said :
#3

I also face the same problem while trying to upgrade from 9.04 to 9.10 .. here is the output of df - h command

rama@rama-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 2.3G 2.2G 1.2M 100% /
tmpfs 973M 0 973M 0% /lib/init/rw
varrun 973M 112K 973M 1% /var/run
varlock 973M 4.0K 973M 1% /var/lock
udev 973M 188K 973M 1% /dev
tmpfs 973M 344K 973M 1% /dev/shm
lrm 973M 2.4M 971M 1% /lib/modules/2.6.28-11-generic/volatile
overflow 1.0M 12K 1012K 2% /tmp
/dev/sda3 98G 5.9G 92G 6% /media/disk
/dev/sda5 47G 18G 29G 39% /media/disk-1
/dev/sda2 49G 2.8G 47G 6% /media/disk-2

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

This is your problem:
/dev/sda6 2.3G 2.2G 1.2M 100% /

You have a very small partition for / which is limiting you.

If you can uninstall old kernels you will get some free space.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

and the other steps I mentioned

Revision history for this message
giulia (giu8888) said :
#6

Hello
I wrote an answer but I think I lost it with the upgrade...
So THANKS! number 3 of your comments worked, without
need to remove openoffice (which I actually use in its totality...)
but just going with the removal of the old kernels.

Thanks again!
cheers
giulia

--- On Sat, 11/14/09, actionparsnip <email address hidden> wrote:

> From: actionparsnip <email address hidden>
> Subject: Re: [Question #90218]: Not enough space in boot to upgrade
> To: <email address hidden>
> Date: Saturday, November 14, 2009, 5:44 PM
> Your question #90218 on gparted in
> ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gparted/+question/90218
>
>     Status: Needs information => Answered
>
> actionparsnip proposed the following answer:
> You can do a few things:
>
> 1. sudo apt-get clean
> Old debs mount up in /var/caches/apt/archives and are not
> cleaned out automatically so running this can clean stuff
> out
>
> 2. sudo apt-get --purge remove openoffice*
> OpenOffice.org takes up ~500Mb. If you uninstall this app
> and install Abiword (sudo apt-get install abiword) for word
> processing (takes about 10Mb) and install gnumeric (sudo
> apt-get install gnumeric) for spreadsheet functionality
> (takes about 12Mb space) you will save a massive amount of
> space.
>
> 3. Old kernels
> When you get a new kernel in ubuntu, you will keep the old
> kernels, even with a release upgrade. If you run:
> uname -a
> You can see your current kernel version. You can then run:
> dpkg -l | grep linux-image
> To see the installed kernels. You can then use:
> sudo apt-get --purge remove linux-image-<version>
> To remove the old kernel, do NOT remove the kernel which is
> running. Once all the old kernels are removed you can run:
> sudo apt-get --purge autoremove
> Each kernel you remove will give you about 120Mb per
> kernel.
>
> 4. Unnecessary packages
> You can save further space by removing unneeded packages.
> If you do not use VNC then you can remove vinagre, if you
> only use apt-get then you can uninstall software-centre. If
> you never use ubuntuone, remove the client. f you run:
> dpkg -l less
> and read the list (ignore any packages starting with 'lib')
> then you can remove unused packages and save more space
>
> --
> If this answers your question, please go to the following
> page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/gparted/+question/90218/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go
> to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/gparted/+question/90218
>
> You received this question notification because you are a
> direct
> subscriber of the question.
>

Revision history for this message
giulia (giu8888) said :
#7

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Keep the space down dude, you don't have much to spare so you have to be economical with the apps you have installed.

I suggest you also review your installed apps and remove ones you don't use (Gimp is quite large too, you can uninstall it to gain more space)

Stuff like that. If you also run:

dpkg -l | grep xserver-xorg-video

You will see tonnes of drivers for tonnes of video cards you wil lnever need (they are quite small but there are lots of them so they mount up). A default install of Ubuntu is MASSIVELY bloated so as to appeal to maximum users and give a lot of functionality out of the box. Unfortunately this add a LOT of extra data which can cause issues like yours. Uninstalling them will free space nicely.

I also suggest you move /var/cache/apt onto one of the other partitions and symlink the folder back to its original place so that downloaded updates from the repos will be stored on the bigger partition, rather than using the space on sda6 which is quite small.

Revision history for this message
Rama Prakash S (ramp-subbu) said :
#9

is there any way to increase the space allocated .. i have a lot of space in my harddisk ...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

You can use gparted in a live CD to resize partitions to make one bigger and the other, smaller

Make sure you backup the data you need as the system comes with zero SLA and no promises. There are guides all over the internet regarding this.