LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 07-31-2013, 11:52 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 719

Rep: Reputation: 39
House cleaning the /boot directory


Hello --

The amount of free space available in the /boot directory is around ten percent, and I am concerned the folder will get filled to capacity. To prevent this, I thought it would be a good idea to do some 'house cleaning' of the directory.

The following lists what is currently present in the folder:

Quote:
drwxr-xr-x 3 root root 7168 Jul 30 07:04 grub
-rw-r--r-- 1 root root 16098874 Jul 30 07:04 initrd.img-3.5.0-37-generic
-rw-r--r-- 1 root root 861363 Jul 10 14:13 abi-3.5.0-37-generic
-rw-r--r-- 1 root root 154713 Jul 10 14:13 config-3.5.0-37-generic
-rw------- 1 root root 2420011 Jul 10 14:13 System.map-3.5.0-37-generic
-rw------- 1 root root 5231920 Jul 10 14:13 vmlinuz-3.5.0-37-generic
-rw-r--r-- 1 root root 16042844 Jun 14 06:27 initrd.img-3.5.0-34-generic
-rw-r--r-- 1 root root 861067 Jun 7 12:53 abi-3.5.0-34-generic
-rw-r--r-- 1 root root 154698 Jun 7 12:53 config-3.5.0-34-generic
-rw------- 1 root root 2419656 Jun 7 12:53 System.map-3.5.0-34-generic
-rw------- 1 root root 5231600 Jun 7 12:53 vmlinuz-3.5.0-34-generic
-rw-r--r-- 1 root root 16039716 May 31 06:51 initrd.img-3.5.0-32-generic
-rw-r--r-- 1 root root 860983 May 29 16:57 abi-3.5.0-32-generic
-rw-r--r-- 1 root root 154698 May 29 16:57 config-3.5.0-32-generic
-rw------- 1 root root 2419134 May 29 16:57 System.map-3.5.0-32-generic
-rw------- 1 root root 5230128 May 29 16:57 vmlinuz-3.5.0-32-generic
-rw-r--r-- 1 root root 16040331 May 29 06:52 initrd.img-3.5.0-31-generic
-rw-r--r-- 1 root root 860983 May 17 11:52 abi-3.5.0-31-generic
-rw-r--r-- 1 root root 154698 May 17 11:52 config-3.5.0-31-generic
-rw------- 1 root root 2419134 May 17 11:52 System.map-3.5.0-31-generic
-rw------- 1 root root 5230128 May 17 11:52 vmlinuz-3.5.0-31-generic
-rw-r--r-- 1 root root 16040159 May 16 06:55 initrd.img-3.5.0-30-generic
-rw-r--r-- 1 root root 860943 May 15 05:12 abi-3.5.0-30-generic
-rw-r--r-- 1 root root 154661 May 15 05:12 config-3.5.0-30-generic
-rw------- 1 root root 2419138 May 15 05:12 System.map-3.5.0-30-generic
-rw------- 1 root root 5231440 May 15 05:12 vmlinuz-3.5.0-30-generic
-rw-r--r-- 1 root root 16040844 May 2 06:56 initrd.img-3.5.0-28-generic
-rw-r--r-- 1 root root 860943 Apr 24 18:08 abi-3.5.0-28-generic
-rw-r--r-- 1 root root 154661 Apr 24 18:08 config-3.5.0-28-generic
-rw------- 1 root root 2419138 Apr 24 18:08 System.map-3.5.0-28-generic
-rw------- 1 root root 5231440 Apr 24 18:08 vmlinuz-3.5.0-28-generic
-rw-r--r-- 1 root root 16036613 Apr 16 06:49 initrd.img-3.5.0-27-generic
-rw-r--r-- 1 root root 15962235 Apr 12 12:22 initrd.img-3.5.0-23-generic
drwx------ 2 root root 12288 Apr 12 12:07 lost+found
-rw-r--r-- 1 root root 860818 Mar 26 15:58 abi-3.5.0-27-generic
-rw-r--r-- 1 root root 154661 Mar 26 15:58 config-3.5.0-27-generic
-rw------- 1 root root 2418535 Mar 26 15:58 System.map-3.5.0-27-generic
-rw------- 1 root root 5229872 Mar 26 15:58 vmlinuz-3.5.0-27-generic
-rw-r--r-- 1 root root 856743 Jan 25 2013 abi-3.5.0-23-generic
-rw-r--r-- 1 root root 154436 Jan 25 2013 config-3.5.0-23-generic
-rw------- 1 root root 2421090 Jan 25 2013 System.map-3.5.0-23-generic
-rw------- 1 root root 5237968 Jan 25 2013 vmlinuz-3.5.0-23-generic
-rw-r--r-- 1 root root 176764 Nov 27 2011 memtest86+.bin
-rw-r--r-- 1 root root 178944 Nov 27 2011 memtest86+_multiboot.bin
I am not going anywhere near the grub and lost+found folders, but I wanted to know if older versions of the initrd.img, vmlinuz, System.map, config, and abi files can be safely removed from the directory.

Thanks.
 
Old 07-31-2013, 12:11 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
yes,
best doing it though a package manager like synaptic
 
Old 07-31-2013, 12:48 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 719

Original Poster
Rep: Reputation: 39
Hello --

Thanks for your reply. I have synaptic installed on the system. How would I go about removing the older versions of the files in question using that utility?
As far as I can tell, the application removes packages of files, so how can it remove the older files without accidentally removing the current ones?

Thanks.
 
Old 07-31-2013, 01:09 PM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
if you use the Sections button, then kernel

mark for removal all the old kernels

But do make sure you have at least one kernel installed
 
Old 07-31-2013, 01:21 PM   #5
kaplan71
Member
 
Registered: Nov 2003
Posts: 719

Original Poster
Rep: Reputation: 39
Thanks for the help. I removed the packages listed in the Kernel section, and the appropriate files were removed without issue.
 
Old 07-31-2013, 01:25 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
*before* you reboot, make sure you still have kernels in /boot

but I think you have already confirmed that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleaning house rgreeves Linux - Software 2 07-18-2009 11:02 PM
Cleaning house in SUSE 10.1 matuk_444 Suse/Novell 15 11-14-2006 12:17 PM
Cleaning house in KDE jinksys Linux - Software 4 10-04-2003 11:40 PM
Linux house cleaning tips? l0f33t Linux - General 1 08-11-2003 06:01 PM
house cleaning adam_boz Linux - General 3 08-10-2002 06:49 PM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration