Welcome to WebmasterWorld Guest from 54.196.17.193

Forum Moderators: bakedjake

Message Too Old, No Replies

Linux: Hard disk filling up

Is is safe to delete these files?

     
7:37 pm on Jul 6, 2014 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Aug 13, 2003
posts: 1030
votes: 0


My little SSD drive is filling up and I discover that in the /boot directory, there are lots of files which are different kernals, configuration and more with version numbers in the file names them.

Am I ok to delete those files with the older version numbers to free some space up?
8:00 pm on July 6, 2014 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts: 2932
votes: 20


The older versions may be used in some situations when the system is started with other than the default startup settings. Which versions are used in that situation depends on the configuration of your boot loader.

If your system is configured to use grub as boot loader, the configuration file /boot/grub/grub.conf will show you which kernels are still configured as bootable.

On many systems, /boot is a separate partition and freeing up space there may not create extra space in the other file systems. Sometimes /boot is also mounted as readonly and deleting the files is not possible in that case, unless the partition is remounted with read-write permissions.
8:01 pm on July 6, 2014 (gmt 0)

Full Member from FR 

10+ Year Member

joined:Nov 4, 2006
posts: 292
votes: 0


what does df -h give as output ?
8:33 pm on July 6, 2014 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Aug 13, 2003
posts: 1030
votes: 0


I see. So deleting those files as will free space in a partition I can't normally touch anyway. That would be pointless!

Found a culprit with the disk analyser - very large Apache log and error files.

df -h was telling me 49Gb of 50Gb was used and I was getting the low space warning in the desktop. Deleting the Apache files has freed up over 20Gb! So I should be ok now. Thanks.
8:57 pm on July 6, 2014 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts: 2932
votes: 20


Good to hear you have found the cause of your full disk.
2:56 am on July 7, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 2002
posts:747
votes: 10


Don't forget to check the tmp path as many web plug-ins use it but fail to clean up on exiting.
8:25 pm on Aug 2, 2014 (gmt 0)

Junior Member from IT 

joined:Oct 29, 2013
posts: 143
votes: 0


Yes, your tmp and log files (especially error logs) fill up a lot of webdisk space! I'm glad you got that one sorted out. :)

Also, if you can access the package manager, either via UI or terminal, you can look up your list of installations and get rid of what you don't need anymore (especially outdated and no longer used libraries).
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members