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'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
1  
You mentioned LAMPP. Did you mean the lampp stack from the repositories or xampp.org ? –  Lekensteyn Mar 12 '11 at 22:22

1 Answer 1

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

 
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.