Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu as a LAMP server. I'd like to arrange the disk partition and folder structure for an easy upgrade to the next Ubuntu version.

In Windows it can be: A: windows B: program files C: data.
How should this be done in Ubuntu? Thanks.

share|improve this question
You mentioned LAMPP. Did you mean the lampp stack from the repositories or ? – Lekensteyn Mar 12 '11 at 22:22
up vote 3 down vote accepted

Ubuntu can easily be upgraded without losing data. Because Ubuntu knows where each application resides (thanks to apt), there is no need for a separate directory for applications.

You'll mostly be fine with a separate /home directory, in case you want to wipe your root partition or clone your home directory. All user settings and documents are stored in /home.

share|improve this answer
please can you explain with example why its better to have also /home partition + security issue – Yosef Mar 13 '11 at 21:53
A recent example: my friend was cloning his disk to his home folder, but ran out of space. Because the root partition and home folder resided on the same partition, no log files could be written either (1 reason). Having a partition instead of a folder allows you to set disk quotas for a specific partition, this is usually not interesting for home users, but is included for completeness. – Lekensteyn Mar 13 '11 at 22:27

Your Answer


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.