LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-07-2011, 01:12 AM   #1
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 116

Rep: Reputation: Disabled
Freeing up space


When I installed ubuntu I didn't know what the H I was doing(still don't) But obviously I made a big mistake in just not using the whole internal drive. I was assured by the Installer I could use any amount greater than about 2GB. so i chose 60GB thing more was better. I didn't realize then that the amount of space I would allocate would be used also for the installed programs AND the OS. Now I'm fast running out of space. I've put a lot of time and energy in installing quite a bit of software. Since it was free, why not? I like most of the software I installed and use it every day.

My question is: How am I going to free up space? I don't want to remove the programs I've installed and I'm afraid If I try to repartition I'll lose those programs. I could shift data to an external harddrive with no problem, but the apps will be another matter. I don't care about Windows, i'm through with that anyway. I don't want to clobber grub either. Can anyone suggest something? Quick! I'm getting these rather insistant msgs that I'm running out of disk space!
Thanks,
Paul
 
Old 09-07-2011, 01:18 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
you can try a "apt-get clean" as root this will remove the downloaded archive files, that you doesn't need any more.
Code:
# apt-get clean

Last edited by angel115; 09-07-2011 at 01:19 AM.
 
Old 09-07-2011, 02:17 AM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
If you have the rest of the drive free I would just go to the live Cd and fire up gparted. You can make the partition the size of the drive. It will take a while, don't hold your breath.

You do not want this to go fast. Everything must be right. Gparted has never screwed me yet. Backing every thing up is still a very good idea.

The reason you need the live CD is you do not want the drive mounted when doing this. If you could get Gparted to do it from your install (never tried it, it might do it) you would probably really screw something (your OS) very royally. If you have an install on another HDD you can do it from there (this is what I do).

The problem is that you are probably installed on one partition. This works. Two are a whole lot better. One for / and one for /home. This of coarse gives you three partitions counting /swap.

If I were you, I would look up the directions for making a separate partition for home. I have done it, it is a pain, it works really well and every thing works fine afterwards. The directions are in the Ubuntu Community Documentation some where. Ah found it;
https://help.ubuntu.com/community/Pa...ng/Home/Moving

You will have to expand your current partition to have room to work. You will have to have the new /home created to coppy that work to. Take your time, read the directions. All commands are copy/paste so it is pretty easy.

My first install was on one partition (Ubuntu 8.04.1 LTS). I left it that way until a few months ago when I switched to Debian. Wanted all my files intact and so had to do it. I had done it before with a copy of the same OS (Gparted is a handy bugger just copy/paste the partition to another drive or open space on the same drive). You will have to edit your fstab file. This is all covered in the directions.

I do not know where your /swap is but I would move it to the end of your drive. Make your current partition double its size. Make another partition that is about the size of your current one (big enough for every thing in your /home folder).

Use the directions completely. If it all works then you can edit your fstab and see if it works when you reboot. If so you can delete the /home folder you are now using (it having been copied to your new /home partition).

Shrink your / partition to a reasonable size. Most say 10 to 15Gb. I like to install things and keep my cached packages. Right now I am using 21Gb of a 30Gb / partition. Should have gone for 35 or 40Gb.

Expand your new /home to fill the space between / and /swap.

This will give you a more robust, flexible installation, make upgrades actually work better and you could switch from Ubuntu to any Debian based OS by simply installing it on your / partition and leaving /home unformatted by the installation (thus I am now running Debian Squeeze on my old 8.04 install). I would assume this would work going to RH branch OS' too but I have never done it myself (there is no reason I can see that it would not work).

To leave your drive as flexible as possible you could also delete the current /swap and after making your current partition big enough to hold double you /home folder, create, on the rest of the drive one "extended" partition. This is a type of "primary" partition but you can create many "logical" partitions within it. You are limited by the DOS convention on partitions to 4 primaries. I have 7 partitions on this drive counting /swap.

If you do not think you will ever want another install on that drive the 3 primaries will be no problem at all.

It is a lot easier to just install the bugger on 2 partitions. Why the installers are not configured to recommend and do this is beyond me. Some folks like a lot more than just / and /home. /boot is popular, /var is too. Next time you run the installer use the manual option (Ubuntu, to confuse things, now calls it, very clear and concise, "something else"). You will see all the options in the mount points menu for partitions.

I think most people with experience all use the manual partitioning option and most create the partitions before hand with gparted or some other tool before installation begins so that they do not have to trust the installer to make them. Just point it at premade/formatted partitions and not let it format anything.

You may want to check your messages here.
 
  


Reply



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
[SOLVED] Space not freeing up after rm bryanvick Linux - General 8 10-14-2009 04:40 PM
freeing up space Paul Griesbaum Linux - Newbie 3 05-26-2009 10:23 PM
Freeing up some space. How? Rutnut Linux - General 10 06-21-2005 01:00 AM
Freeing up Space stroudt Linux - General 2 08-28-2003 03:14 PM
Freeing up Space stroudt Red Hat 6 08-28-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:57 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
Open Source Consulting | Domain Registration