Changes

From Amahi Wiki
Jump to: navigation, search
Now we make the partition.
{{Code|
parted /dev/sdb mkpart primary ext2 ext4 2048 -1
}}
Parted may complain about the last sector and will automatically suggest a correct sector, just say Yes to the prompt.
We make it as a primary partition, ext2 ext4 filesystem, and we carefully select the sectors. The first number MUST be divisible by 8, so you can try 40, 48, 56, 64 etc... For me these numbers threw up errors, so I just went to 2048 and everything worked fine, and in the grand scheme of a 3TB drive, the extra sectors don't really matter :)
The reason that the starting sector is divisible by 8 is for aligning the sectors. This is because HDD's have traditionally been based around 512-byte sectors, yet newer, higher capacity HDD's are now arriving based around 4096-byte (a.k.a. 4k) sectors. The partitioning will still work with 512-bytes, but the drive's performance will be drastically impacted - in some testing it can be twice as slow, in others up to 25 times slower, depending on the sector alignment. So it's important to get this right!!!
15

edits