Results 1 to 8 of 8

Thread: How do I make more space on the / drive?

  1. #1
    Join Date
    Oct 2007
    Beans
    78

    How do I make more space on the / drive?

    I'm running out of room on a 40 g drive i use for /. I've removed all my stuff from my /home directory, but still am sitting at 96% used. I've also got
    an 80 g, a 120 g, and a 160 g installed in the system; is there some way i can repartition one of the others and mount it to /?

    any ideas would be most helpful...


    Happy New Year...

  2. #2
    Join Date
    Oct 2008
    Location
    Newcastle upon Tyne, UK
    Beans
    364
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How do I make more space on the / drive?

    Quote Originally Posted by ah pook View Post
    I've removed all my stuff from my /home directory, but still am sitting at 96% used.
    Have you emptied the trash?

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I make more space on the / drive?

    Check out this HOWTO:
    Disk Full? - Check Your Trash Bin(s)

    It started out to discuss hidden trash files but expanded to cover other places to look for space 'hogs': trash, apt packages, misplaced backup files, large log files, etc.

    You can use gparted to resize partitions. If you run the following it can give us an idea of what kind of space you have:
    Code:
    df -Th
    Last edited by drs305; January 2nd, 2009 at 02:20 AM.
    GRUB2

    Retired.

  4. #4
    Join Date
    Apr 2008
    Location
    UK
    Beans
    496
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I make more space on the / drive?

    Well, you can mount one of them to a directory under /. For example:

    Code:
    sudo mount /dev/sdb1 /mntpt
    Code:
    sudo mount /dev/sdc2 /media/myDrive
    Where /dev/xxxx is the partition you want to mount. The second directory (the one to mount to) must already exist.

    I always find the disk usage analyser to be a very useful tool in discovering where my disk space has gone. Access it via Applications -> Accessories -> Disk Usage Analyser. Alternatively run it with Alt+F2, "baobab".

  5. #5
    Join Date
    Oct 2007
    Beans
    78

    Re: How do I make more space on the / drive?

    That's just what I needed! Thanks!

  6. #6
    Join Date
    May 2007
    Location
    New York, USA
    Beans
    278
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I make more space on the / drive?

    I agree with the previous posts; use the disk analyser and try to find out what's taking up all the space. Optionally, if you prefer the commandline, you can use:


    Code:
    sudo du -hcs /*
    Find which directory is the largest, enter that, and repeat. If you find that /var looks suspiciously large, for example:

    Code:
    sudo du -hcs /var/*

  7. #7
    Join Date
    Dec 2008
    Beans
    9

    Re: How do I make more space on the / drive?

    The Disk Usage Analyzer will tell you what parts of the drive are using the most disk space. If you're a developer I noticed that any Java docs take around 300Mb, so I was using a few gig for multiple Java VMs and tools.

    Also most of the stuff in /usr/share/doc is very bloated and often worthless. It's hard to find and when you do find it usually is in a bad bloated format.

    Cheers,
    Kris

  8. #8
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: How do I make more space on the / drive?

    you should also erase all the downloaded .debs during updates:

    Code:
    sudo apt-get clean
    And as the poster above said to mount in /media/xxx

    You could also mount it in some place else... e.g. if you have a lot of videos in your home folder or music, you could use that bigger partition to make a seperate /home folder or maybe just /home/USER/Music or whatever

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
  •