You are not logged in.

#1 2014-01-08 16:46:38

XDarkAngelX
Member
Registered: 2014-01-08
Posts: 62

partitions alignment using cfdisk

I have a new hard disk which have advance formatting , and I am not sure if I will cfdisk if the partitions will be aligned correctly.
is there paramers I need to give to enure the partitions are aligned or I can just use it and the partitions will be aligned?

Last edited by XDarkAngelX (2014-01-08 16:47:04)

Offline

#2 2014-01-08 17:05:54

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: partitions alignment using cfdisk

I'm supposing a SSD.

From wiki:
Many of the common partition tools handle partition alignment automatically (assuming users are using an up-to-date version):
.....
......

https://wiki.archlinux.org/index.php/So … _Alignment


Edit:
About advance formatting
http://en.wikipedia.org/wiki/Advanced_Format
https://wiki.archlinux.org/index.php/Advanced_Format

For advanced format partitioning
https://wiki.archlinux.org/index.php/Ad … Partitions

Last edited by Alber (2014-01-08 17:18:31)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#3 2014-01-08 17:32:05

XDarkAngelX
Member
Registered: 2014-01-08
Posts: 62

Re: partitions alignment using cfdisk

Alber wrote:

I'm supposing a SSD.

From wiki:
Many of the common partition tools handle partition alignment automatically (assuming users are using an up-to-date version):
.....
......

https://wiki.archlinux.org/index.php/So … _Alignment


Edit:
About advance formatting
http://en.wikipedia.org/wiki/Advanced_Format
https://wiki.archlinux.org/index.php/Advanced_Format

For advanced format partitioning
https://wiki.archlinux.org/index.php/Ad … Partitions

ok but do you know if cfdisk supports Aligning Partitions? as it is not menioned in the wiki and I perfer to use it over fdisk

Offline

#4 2014-01-08 18:07:51

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: partitions alignment using cfdisk

Sorry, I changed cfdisk by gdisk in my mind (I need to pay more attention).
I've searched a little, and don't know. I looks like that no:
https://wiki.archlinux.org/index.php/pa … ning_tools
But maybe you can use it and use fdisk to see if its aligned (fdisk is in the same package that cfdisk):
https://wiki.archlinux.org/index.php/Ad … _alignment


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#5 2014-01-08 18:13:56

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: partitions alignment using cfdisk

I think you should just give fdisk or gdisk a whirl.  They are menu driven and certainly not complicated.  There is no curses interface, but I find them to be quite intuitive and easy to use.  Then you can be sure that the proper alignment will occur.

Offline

#6 2014-01-08 20:28:31

XDarkAngelX
Member
Registered: 2014-01-08
Posts: 62

Re: partitions alignment using cfdisk

I guess I will just use fdisk seems like I can handle it.
one last quesion to know that my partition is aligned  I need to do fdisk -lu /dev/sda or what ever disk I want
and then check that the start value can be divided by 8?

Offline

#7 2014-01-08 20:33:34

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: partitions alignment using cfdisk

https://wiki.archlinux.org/index.php/SS … _Alignment

When I used fdisk to partition my ssd, the partitions were correctly aligned.

Last edited by 2ManyDogs (2014-01-08 20:34:28)

Offline

#8 2014-01-08 20:59:14

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: partitions alignment using cfdisk

I think that the idea is take 4KiB groups. It is to say groups of 8*512 bytes (512 bytes = 1 sector).
For easy get it divisible by 2048.

Today, I have "the day",
Wait, wait....

the idea is take 4KiB groups. It is to say groups of 8*512 bytes (512 bytes = 1 sector).
So if any partition start in a number divisible by 8 is ok (if measured en sectors).
2048 is a fdisk default value.
(SDs I just looking have 8192. It could depend on erase block size. For SSDs and SDs http://en.wikipedia.org/wiki/Write_amplification)

Last edited by Alber (2014-01-08 22:08:26)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#9 2014-01-09 01:29:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: partitions alignment using cfdisk

Using fdisk or gdisk will simply ensure that you don't have to thnk about partition alignment at all.   Just use 'fdisk /dev/sda' then hit 'm' (then enter) to see a list of available options.  Definitely don't use '-u' as you want to be using the default sectors rather than cylinders.

Offline

Board footer

Powered by FluxBB