BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] free up space on a RedHat RHEL 5 system
- Subject: [Discuss] free up space on a RedHat RHEL 5 system
- From: michael.timony at verizon.net (Mick Timony - Verizon)
- Date: Tue, 23 Oct 2012 15:02:57 -0400
- In-reply-to: <CADjQVpn3TEjMNd4jnDUNueV_gL9k=v_cSOgZ0FViw_Z1_t-Dzg@mail.gmail.com>
- References: <CAM9bQ=iU8fhBELSsCueUkV9hVo3-Cn2i5ca7dswHvAifKhXA8Q@mail.gmail.com> <20121023181842.GE2794@randomstring.org> <CADjQVpn3TEjMNd4jnDUNueV_gL9k=v_cSOgZ0FViw_Z1_t-Dzg@mail.gmail.com>
Some tips for freeing up space: 1. Remove older unused kernels and related source files and header files. 2. Remove unused or unnecessary packages. 3. Clean up /tmp (if it's mounted under /) a reboot should do the trick. If /boot is mounted under / and you've upgraded kernels over the years then you should be able to free up a few hundred megabytes by removing unused older kernels (at least this is what happens on my Debian based boxes). As a fail-safe I always keep at least 2 kernels in /boot, the latest and the previous known working kernel. Also /usr/src may have kernel sources and/or header files for older kernels that you no longer need and you should be able to remove those also. Just make sure to use the package manager to remove any older kernels and kernel sources or header files. To find packages on Red Hat system and sort them size the following should work: rpm -qa --queryformat="%{NAME} %{SIZE}\n" | sort -k 2 -n The hard is trying to figure which packages to remove. If this is server and you normally use the command line then remove any X based and just ssh in, if it's a desktop then removing games can often free up a lot of space. As Scott said, what does "dh -h" show? On Tue, Oct 23, 2012 at 2:24 PM, Scott Ehrlich <srehrlich at gmail.com> wrote: > On Tue, Oct 23, 2012 at 2:18 PM, Dan Ritter <dsr at randomstring.org> wrote: > > On Tue, Oct 23, 2012 at 02:12:03PM -0400, John Malloy wrote: > >> Does anyone have suggestions on how to free up space on a RedHat > RHEL 5 > >> system? > >> > >> > >> It is an ext3 file system > >> > >> It's root partition is totally (100%) full > >> > >> > >> /var is on a separate partition. > >> > >> > >> I cannot seem to locate any unnecessary file to delete. > > > > Do you have free space on another disk? Can you add one, > > temporarily, via USB or otherwise? > > > > -dsr- > > _______________________________________________ > > Discuss mailing list > > Discuss at blu.org > > http://lists.blu.org/mailman/listinfo/discuss > > A review of ls -la / shows nothing special? > > Is /home also part of /? If so, might there be unwanted files in > someone's directory? > > What about system permissions? Might one or more files have been > written to places they should not have? > > What does a du -h / show? > > How about df -h? > > Scott > _______________________________________________ > Discuss mailing list > Discuss at blu.org > http://lists.blu.org/mailman/listinfo/discuss >
- References:
- [Discuss] free up space on a RedHat RHEL 5 system
- From: jomalloy at gmail.com (John Malloy)
- [Discuss] free up space on a RedHat RHEL 5 system
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] free up space on a RedHat RHEL 5 system
- From: srehrlich at gmail.com (Scott Ehrlich)
- [Discuss] free up space on a RedHat RHEL 5 system
- Prev by Date: [Discuss] free up space on a RedHat RHEL 5 system
- Next by Date: [Discuss] Some Java questions
- Previous by thread: [Discuss] free up space on a RedHat RHEL 5 system
- Next by thread: [Discuss] free up space on a RedHat RHEL 5 system
- Index(es):