<切り方>
# parted /dev/sdb mklabel gpt<確認>
# parted /dev/sdb mkpart primary 1 1026 ←partedのデフォルトは単位MB
# parted /dev/sdb mkpart primary 1026 17410
# parted /dev/sdb mkpart primary 17410 17411
# parted /dev/sdb mkpart primary 17411 17412
# parted /dev/sdb mkpart primary linux-swap 17412 18436
# parted /dev/sdb mkpart primary 18436 274436
# parted /dev/sdb mkpart primary 274436 -1s
Warning: You requested a partition from 274GB to 3001GB.
The closest location we can manage is 274GB to 3001GB.
Is this still acceptable to you?
Yes/No? yes
# parted /dev/sdb "unit s" printちなみにpartedのバージョン(Debian/squeeze/armel):
Model: WDC WD30 EZRX-00MMMB0 (scsi)
Disk /dev/sdb: 5860533168s
Sector size (logical/physical): 512B/512B ←4096に見えているわけではなさそうだが・・・
Partition Table: gpt
Number Start End Size File system Name Flags
1 2048s 2002943s 2000896s ext3 primary ←2048スタートなのでOK(2048 % 8 = 0)
2 2002944s 34002943s 32000000s ext4 primary ←2002944 % 8 = 0
3 34002944s 34004991s 2048s primary ←以下同様
4 34004992s 34007039s 2048s primary
5 34007040s 36007935s 2000896s linux-swap(v1) primary
6 36007936s 536008703s 500000768s ext4 primary
7 536008704s 5860533134s 5324524431s ext4 primary
$ dpkg -l parted | grep "^ii"
ii parted 2.3-5 The GNU Parted disk partition resizing program
0 件のコメント:
コメントを投稿