partition alignment: SSD

biiiiid의 이미지

SSD 디스크에 리눅스를 설치했습니다.

설치하고보니, partition aligment라는게 중요하다고 하는데요,

partition alignment를 확인하는 방법이 있을까요?

검색해보니, 파티션을 만들때 alignmnet를 잘 맞추는 방법은 나와있는데,

정작 만들어진 파티션의 alignment를 확인하는 방법은 잘 못찾겠습니다.

planetarium의 이미지

음...

fdisk -lu [장치명]

했을때, 첫번째 파티션의 start sector가 63이면 alignment를 신경쓰지 않은 예전 방식 파티셔닝이고,
2048이라던가 하면...
biiiiid의 이미지

확인했더니, 역시 63으로 되어있더군요..
잘 수정하였습니다.

# fdisk -lu /dev/sda
 
Disk /dev/sda: 160.0 GB, 160041885696 bytes
32 heads, 32 sectors/track, 305255 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x********
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            1024      206847      102912   83  Linux
/dev/sda2          206848      412671      102912   82  Linux swap / Solaris
/dev/sda3          412672    17190911     8389120   83  Linux
/dev/sda4        17190912   312581119   147695104   83  Linux
shinsuk의 이미지

GNU Parted에 partition alignment를 검사하는 기능이 있습니다.

http://www.gnu.org/software/parted/manual/parted.html#align_002dcheck

아래는 1번 파티션이 잘 align 되었는지 확인하는 예 입니다.
parted /dev/sda
(parted) align-check opt 1
align-check opt 1
1 aligned