間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

Warning: The resulting partition is not properly aligned for best performance.

https://blog.hqcodeshop.fi/archives/273-GNU-Parted-Solving-the-dreaded-The-resulting-partition-is-not-properly-aligned-for-best-performance.html

# parted /dev/sdd
GNU Parted 3.2
Using /dev/sdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model: ATA HGST HDS724040AL (scsi)
Disk /dev/sdd: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart primary ext4 0 -0
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? C     
# bash parted_mkpart_calc.sh sdd
Using default 1 MiB default alignment in calc
Calculated alignment for /dev/sdd (gpt) is: 256s

Create partition with: 
# parted /dev/sdd mkpart [name] [type] 256s 7814036991s
Verify partition alignment with:
# parted /dev/sdd align-check optimal 1
(parted) mkpart primary ext4 256s 7814036991s
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? C                                                          
このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。