Best UBUNTU Partition Technique

Asked by Adnan Iftekhar

Which is best ubuntu partition techniques? As in windows we have c d and e drives. we kept our data in d and e drives if windows fail to start we only format c and install windows again in the c drive and all our data is saved. So we should make / and swap and /home? when the ubuntu fail to start only format / and install it again as the /home for user data is save or can we add more partitons to save install programmes. When we install ubuntu again how i can choose the previous home directory again to use with new installation plz?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Mario Tomljenović
Solved:
Last query:
Last reply:
Revision history for this message
delance (olivier-delance) said :
#1

The most classical partition scheme is:
1) swap
2) / to contains system files and temporary one
3) /home to contains users data
If you reinstall Ubuntu, it will automatically keep previous "/home" dedicated partition (unless you format it).
There are more complicated scheme, like having /tmp and /var on a dedicated partitions. But it's mainly for old backup issues. Other reason is that / partition file system are mainly read, and /var and /tmp files mainly written.
If you have:
   Logical Volume Management
   RAID
   multi-boot with many Linux distros
having a dedicated /boot partition make sense.

Revision history for this message
Adnan Iftekhar (livenicely) said :
#2

ok! How should i manage the hard disk you think? First swap area than / and then /home or first / than swap and then /home etc. for 10.10

Revision history for this message
Best Mario Tomljenović (tomljenovicmario) said :
#3

Hi!

You sholud first make /, then /home and swap the last.

As far as I know, / and /home should be at the begining of the hard disk, so your computer could determine system partition faster, and increase booting and reading speed, I guess.

Revision history for this message
delance (olivier-delance) said :
#4

I presume "/" and "/home" must be contiguous and swap apart. The swap is rarely used, but disk arm will have frequently to go from "/" to "/home", to read software runnable and user data. As I presume also that files are more frequently at start of file system, and "/" is the smallest partition, I think that you must set "/" before "/home".
So Mario answer looks sensible to me.

Revision history for this message
Adnan Iftekhar (livenicely) said :
#5

Thanks Mario Tomljenović, that solved my question.