Results 1 to 6 of 6

Thread: No free space even after deleting files As Root

  1. #1
    Join Date
    Oct 2010
    Posts
    61

    No free space even after deleting files As Root

    I have installed the Linux Mint 10 operating system on my machine I want to free some space in root. So utilized open as administrator option in order to remove some files presented on the partition but even after deleting those files, It didn't made any extra space on it. I am not allowed to empty trash folder through a gnome window. Can you guys suggest me how can I deal with it?

  2. #2
    Join Date
    May 2008
    Posts
    991

    Re: No free space even after deleting files As Root

    Most users of Linux home or using a server running Linux OVH find themselves overnight with a full root partition, it is the beginning of his troubles: crash various daemons (server, eg mysql, apache , etc.). In fact, it would not have waited for the first begin to worry take things in hand. If you do not regularly log in via ssh on your machine or use "df-h" to see the share file system used, it is still possible to install utilities MRTG to monitor disk space remaining at regular intervals, and automatically, with additional results graphically. However, your root partition is full and you do not know what to do. Your system is in production and you can not bring yourself to do a reinstall.

  3. #3
    Join Date
    Nov 2009
    Posts
    1,269

    Re: No free space even after deleting files As Root

    1. Clean / tmp : This directory contains a number of temporary files created by programs running, including the daemons (session files etc.). Normally, this directory is cleaned during the boot of the machine.

    2. Clean / var / tmp and more specifically / var / tmp / portage : The latter often contains directories of porting work, not deleted when the build stopped prematurely.

    3. Clean / usr / portage / distfiles and / usr / portage / packages : The first contains the sources of the packets that you have installed, the second the old binary packages. To clean this directory, use only the utility eclean gentoolkit present in package.
    Code:
      man eclean
    should inquire about using this tool. You can also find a comprehensive tutorial on the forums Gentoo.org [Fr ].

    4. Clean / usr / src : The hierarchy of this directory is typically as follows:
    Code:
      nuxbox src # ls-lh
     total 8.0K
     lrwxrwxrwx 1 root root 22 10:58 p.m. on October 5 linux -> linux-2.6.22-gentoo-r8
     drwxr-xr-x 20 root root 4.0K 5 October 11:46 p.m. linux-2.6.20-hardened-r10
     drwxr-xr-x 19 root root 4.0K Oct. 19 8:26 p.m. linux-2.6.22-gentoo-r8
     drwxr-xr-x 19 root root 4.0K linux October 19 8:26 p.m.-2. <x>. <yz> - <kernel>-r <n>
    THIS IS a list of directories containing the source list of cores that you use to compile your current kernel, for some packages, etc., and a symbolic link to the current kernel sources. You can carefully remove the unused sources of nuclei. To check the currently running:
    Code:
      $ Uname-r
    5. Clean / var / log (/ home / log) : This directory contains log files of processes and system daemons. They are all quite valuable to varying degrees, so do not delete them all without prior notice.
    Code:
      $ Du-sh / var / log
    Tell you the disk space used by this directory. If not already the case, consider setting up a rotation system log, as logrotate or in the specific case of apache log files, an application that will provide more detailed graphical statistics apache (eg : webalizer). If applicable, please check your log rotation policy (refer to the documentation of packets considered).

  4. #4
    Join Date
    Nov 2009
    Posts
    687

    Re: No free space even after deleting files As Root

    Mysql has a nice feature in case of destruction of databases (provided you have activated before the course): Replication. The basic idea is to log each request in a log file to allow the appropriate re-create a mysql database as it is at time t from a dump of time t-1. From there we just make things even more advanced (master-slave replication, etc.). For more information, refer to the MySQL reference manual. Here where the low is that these log files, if nothing is done, quickly take a disproportionate size (several gigabytes) per file. They are stored in / var / log / mysql. You must choose between two alternatives:

    Disable-replication: Edit / etc / mysql / my.cnf; in rubirque "[mysqld]" comment out "log-bin"
    Code:
      [Mysqld]
     ...
     # Log-bin
     server-id = 1 
     ....
    Monitor these logs and set up rotations: it's up to you.

  5. #5
    Join Date
    May 2008
    Posts
    1,020

    Re: No free space even after deleting files As Root

    Let the theory portage man-pages and other reference manual will tell you everything you need to know to administer a system in Gentoo. The local tree downloaded from servers Gentoo / Portage usually takes significant disk space.
    Code:
      # Du-sh / usr / portage
    You show as usual disk space. The problem is that by default it is located in / usr / portage. Fortunately, all is well designed, can tell Portage where to store the tree (eg in a score full of empty (sic) such as your / home that is 250GB while your poor / unfortunate only 3 GB but that's another story), and resynchronize. But out of respect for equipment and bandwidth of servers by providing the tree, otherwise proceed. Create a dedicated partition for this purpose; move to the tree mount this partition on the mount point / usr / portage (which has taken care to empty).

  6. #6
    Join Date
    Nov 2009
    Posts
    1,292

    Re: No free space even after deleting files As Root

    You're on an OVH server, no way to reach the table because they are all mounted partiton. Never mind: Create the directory / home / portage tree and then copy into this directory and delete the old tree.
    Code:
      # Mkdir / home / portage
     # Chown portage: portage / home / portage
     # Cp-R / usr / portage / * / home / portage /
     # Rm-R / usr / portage
    Then enter or return to portage tree: edit / etc / make.conf and add to the guidelines:
    Code:
     PORTDIR = "/ home / portage"
     DISTDIR = "/ home / portage / distfiles" or "$ {PORTDIR} / distfiles"
     PKGDIR = "/ home / portage / packages" or "$ {PORTDIR} / packages"
    Well, this is done, we are proud (e) the work done. We check that port has moved:
    Code:
     # Emerge - search bash
     ..
     !  ARCH is not set ...  Are you missing the / etc / make.profile symlink?
     !  Is the symlink correct?  Is your portage tree complete?
    You guessed it: by moving the tree, it has nullified the symbolic link that defines the ARCH (Architecture) system: / etc / make.profile. You will need resettlement, you can do by hand:
    Code:
      # Ls-alh / etc / make.profile
     ///// Note the line which is then displayed.  It should look like "lrwxrwxrwx 1 root root 55 9:42 p.m. Jan. 22 / etc / make.profile -> / usr/portage/profiles/default-linux/x86/2007.0/desktop /"
     / / / / The part that concerns us is the end of the road; here: default-linux/x86/2007.0/desktop / it's your profile.
     # Cd / etc
     # Rm-i make.profile
     # Ln-s / home / portage / profiles / <path> / <votre> / <profile> make.profile
    or do it using eselect with the profile option.
    Code:
      # Eselect profile

Similar Threads

  1. Replies: 6
    Last Post: 28-03-2012, 08:50 PM
  2. Replies: 6
    Last Post: 21-08-2011, 08:02 AM
  3. How to Delete Duplicate Files on Windows XP To Free Space
    By Mastermind in forum Tips & Tweaks
    Replies: 2
    Last Post: 11-09-2009, 10:05 AM
  4. Replies: 1
    Last Post: 24-08-2009, 09:47 PM
  5. Problem : No free space even after deleting files
    By LinuxeD in forum Operating Systems
    Replies: 2
    Last Post: 19-08-2009, 12:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,486,738.87135 seconds with 16 queries