How do I clean out the boot. It is full and i can not install update. Is there a way to expand it? Right now it is 217MB
How do I clean out the boot. It is full and i can not install update. Is there a way to expand it? Right now it is 217MB
to give you some usefull help, first tell us about your hardware/installation
http://ubuntuforums.org/showthread.p...1#post12495221
hp pavilion dv6 newest version. used a flash drive to install
Do you have a separate /boot partition?
Let's see the output of command mount.
Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads --- System-Info-Script
You probably have old (backup) kernels in /boot/ that are safe to remove (it's recommended to keep at least 1 old kernel).
To view do:
To remove old kernels do for example:Code:ls -al /boot/
Where 3.2.0-40-generic is the kernel version you want to remove.Code:sudo rm /boot/*-3.2.0-40-generic
Not necessary to make room, but you might want to cleanup the old kernel entries from the GRUB menu by doing:
Code:sudo update-grub
Last edited by miegiel; May 17th, 2013 at 06:47 PM.
Removing old kernels using the package manager is cleaner than using rm.Substitute your old kernel versions. Keep one old kernel as backup. This will update grub automatically.Code:sudo apt-get purge linux-image-3.2.0-40-generic
As Miegiel explained, remove the unwanted and oldest vmlinuz*, initrd.img*, System.map* and config*. after this update the grub with update-grub command.
It will make you some space to update the kernel
Thanks
Shivu
Hi
The problem is that will not cleanly remove the kernels as it will leave other files dotted around the filing system.
It will also leave the package manager in an inconsistent state. It will have the kernels flagged as installed when they are not.
Although what you and Miegel propose will work, I would advocate doing a proper job and remove them using the suggestion in post #6 or a variation of it using dpkg.
@OP. Please post the output of
You can copy and paste it into the terminal and copy and paste the results back here.Code:dpkg -l | grep -E linux-"headers-|image-"
It will also show the kernel headers you have installed as they may need cleaning up as well.
Kind regards
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
that is what i gotCode:ii linux-image-3.5.0-17-generic 3.5.0-17.28 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-3.5.0-24-generic 3.5.0-24.37 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-3.5.0-25-generic 3.5.0-25.39 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-3.5.0-26-generic 3.5.0-26.42 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-3.5.0-27-generic 3.5.0-27.46 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP iF linux-image-3.8.0-19-generic 3.8.0-19.30 amd64 Linux kernel image for version 3.8.0 on 64 bit x86 SMP ii linux-image-extra-3.5.0-17-generic 3.5.0-17.28 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-extra-3.5.0-24-generic 3.5.0-24.37 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-extra-3.5.0-25-generic 3.5.0-25.39 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-extra-3.5.0-26-generic 3.5.0-26.42 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-extra-3.5.0-27-generic 3.5.0-27.46 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP iU linux-image-extra-3.8.0-19-generic 3.8.0-19.30 amd64 Linux kernel image for version 3.8.0 on 64 bit x86 SMP iU linux-image-generic 3.8.0.19.35 amd64 Generic Linux kernel image jtbrooks101@jtbrooks101-HP-Pavilion-dv6-Notebook-PC:~$
Last edited by matt_symes; May 19th, 2013 at 01:48 PM. Reason: Added code tags
I would suggest you use synaptic, which you may need to install first, as it is quite simply the best package manager available and gives you a lot of flexibility that the software-centre does not. Now search for and remove:-
along with any same numbered header packages. That will leave you with two kernels only and should clean out a great deal of space on your system.linux-image-3.5.0-17-generic 3.5.0-17.28 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-3.5.0-24-generic 3.5.0-24.37 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-3.5.0-25-generic 3.5.0-25.39 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-3.5.0-26-generic 3.5.0-26.42 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-extra-3.5.0-17-generic 3.5.0-17.28 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-extra-3.5.0-24-generic 3.5.0-24.37 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-extra-3.5.0-25-generic 3.5.0-25.39 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
linux-image-extra-3.5.0-26-generic 3.5.0-26.42 amd64 Linux kernel image for version 3.5.0 on 64 bit x86 SMP
Last edited by matt_symes; May 19th, 2013 at 01:50 PM. Reason: Added quote tags
Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads --- System-Info-Script
Bookmarks