Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have very little space left on my main hard drive (the one that I installed Ubuntu on) and need to install apps from the software center to another disk like in Windows XP. How can I proceed in doing this?

share|improve this question
    
You may find this helpful: askubuntu.com/questions/5980/how-do-i-free-up-disk-space –  Takkat Dec 11 '12 at 8:29

1 Answer 1

In Linux all files are organized into a single tree so there's no notion of "other drive" as in Windows. Your partitions are mounted into that tree as directories, so basically the problems boils down to moving files to another directory, while making the system think the files are still in their original location.

To achieve that, you can replace any directory with a symlink to another directory, possibly on another partition:

mv /some/dir /mnt/otherdisk/some/dir
ln -s /mnt/otherdisk/some/dir /some/dir

the only tricky part is that non-root partitions may be mounted later in the boot process than the program is needed which is now located on that partition, so you need to exercise common sense when doing that.

Alternatively, you can mount some root directories, say, /home, /opt, /var to another partition.

You can also resize the root partition to make it bigger.

Before doing anything drastic though - have you deleted old kernels, apt cache and other cruft which accumulates over time recently? You may find that you're not that short on space.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.