解决 The resulting partition is not properly aligned for best performance
Attempt 4: The simple way
It didn't take long, before I got my first comment on this article. It was simply: "Why didn't you use percentages?". What? What percentages.
Example:
(parted)?unit s
(parted)?print
Model: ATA WDC WD1502FAEX-0 (scsi)
Disk /dev/sda: 2930277168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End???????? Size??????? File system Name Flags
?1???? 2048s 2930276351s 2930274305s???????????? LVM
(parted)?rm 1
(parted)?mkpart LVM ext4 0% 100%
(parted)?print
Model: ATA WDC WD1502FAEX-0 (scsi)
Disk /dev/sda: 2930277168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End???????? Size??????? File system Name Flags
?1???? 2048s 2930276351s 2930274305s???????????? LVM
Using range 0% 100% will produce exactly the same results.??Amazing!
So, parted knows the alignment and can use it, but not if you don't first do a rain dance and knock three times on a surface sprinkled with holy water.
總結
以上是生活随笔為你收集整理的解决 The resulting partition is not properly aligned for best performance的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 复杂度的渐进表示法(时间复杂度)
- 下一篇: [转载]程序员三部曲