partedの最終位置は包括的ですか、それとも排他的ですか?

partedの最終位置は包括的ですか、それとも排他的ですか?

パーティション作成を使用してparted再印刷するときは、「end」値が含まれているか排他的かどうか疑問に思います。別の方法で尋ねる場合は、指定されたパーティションの最後のセクタである「end」で指定された2番目のセクタですか、それとも次のパーティションで使用可能な最初のセクタですか?残念ながら、ページにこの情報が見つかりませんinfo

ベストアンサー1

彼らは包括的です。でパーティションを終了する必要があります(n mod 2048) - 1

Number  Start       End         Size        File system  Name   Flags
 2      2048s       624482303s  624480256s               ext2
 1      624482304s  625098751s  616448s                  fat32

(parted) rm 2                                                             
(parted) mkpart ext2 2048s 624482304s
Warning: You requested a partition from 2048s to 624482304s (sectors 2048..624482304).
The closest location we can manage is 2048s to 624482303s (sectors 2048..624482303).
Is this still acceptable to you?
Yes/No? yes                                                       

おすすめ記事