Addition/Disk alignment

From iRedMail
Revision as of 10:58, 28 July 2011 by Mike.f (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

this article describes some tasks you should do before you even think of starting the installation of your OS

you can take your OS-defaults - but it seems to be a common recommendation to do this steps on every installation you perform


Contents

STOP

if you do not understand what the steps below will do to your system STOP reading here and take a good book


WARNING: you will lose your data

the below steps will repartition your disks.
The code is just an example!
Adjust to your needs!


still reading?
so you know what you do - don't balme anybody exept yourself ;)

BEFORE you install your OS

some may say it's not useful at all. Some people are using it as common "best practice"

As people are getting their 4k drives and also using SSDs ....
if you want performance follow the hints :)

Before you even start installing your system you want to boot up in "rescue mode" (plz refer to your docs).


create a new disk-partition

Terminal:
# fdisk /dev/sda
...create new partition...
   n
....type is primary...
   p
...we start with 1...
   1
...here we accept the defaults...
...

...now we go to expert-mode...
   x
....editing beginning of partionion (thats our alignment)...
   b
....we use 1st partition we created above....
   1
...aligning to 4096 (was either usually 63 or 32)...
   4096
...write to disk + exit...
   w

disk-alignment done :)

create filesystem

maybe you want to take the next steps and format your partition using ext4

reference

http://www.vmware.com/pdf/esx3_partition_align.pdf

Personal tools