バックアップ後に行う、新しいパーティションの作成操作例。
実際に切り直してみた結果。
注意:この操作でsdcはクリアされます。書き込み操作の時に「よろしいですか?」の様な問い合わせはありません。躊躇なくバッサリやられますので、
バックアップ完璧!になるまで実行しないで下さい
また、ドライブ名を間違えれば、そのドライブもクリアされますので、入力は十分気をつけて下さい。
sdc4の終了セクタがオーバーフローしているようです。sdc4だけは他の方法を考える必要があります
コード: 全て選択
# fdisk /dev/sdc
Welcome to fdisk (util-linux 2.21.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): o
Building a new DOS disklabel with disk identifier 0x159cb861.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): e
Partition number (1-4, default 1): 2
First sector (2048-4294965247, default 2048): 2048
Last sector, +sectors or +size{K,M,G} (2048-4294965247, default 4294965247): 524328959
Partition 2 of type Extended and of size 250 GiB is set
Command (m for help): n
Partition type:
p primary (0 primary, 1 extended, 3 free)
l logical (numbered from 5)
Select (default p): p
Partition number (1-4, default 1): 3
First sector (524328960-4294965247, default 524328960): 524329470
Last sector, +sectors or +size{K,M,G} (524329470-4294965247, default 4294965247): 727117964
Partition 3 of type Linux and of size 96.7 GiB is set
Command (m for help): n
Partition type:
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (524328960-4294965247, default 524328960): 727119872
Last sector, +sectors or +size{K,M,G} (727119872-4294965247, default 4294965247): 768079871
Partition 1 of type Linux and of size 19.5 GiB is set
Command (m for help): n
Partition type:
p primary (2 primary, 1 extended, 1 free)
l logical (numbered from 5)
Select (default p): p
Selected partition 4
First sector (524328960-4294965247, default 524328960): 1024031295
Last sector, +sectors or +size{K,M,G} (1024031295-4294965247, default 4294965247): 3907024064
Partition 4 of type Linux and of size 535.7 GiB is set
Command (m for help): n
All primary partitions are in use
Adding logical partition 5
First sector (4096-524328959, default 4096): 39065600
Last sector, +sectors or +size{K,M,G} (39065600-524328959, default 524328959): 80025599
Partition 5 of type Linux and of size 19.5 GiB is set
Command (m for help): n
All primary partitions are in use
Adding logical partition 6
First sector (4096-524328959, default 4096): 162992128
Last sector, +sectors or +size{K,M,G} (162992128-524328959, default 524328959): 203952127
Partition 6 of type Linux and of size 19.5 GiB is set
Command (m for help): n
All primary partitions are in use
Adding logical partition 7
First sector (4096-524328959, default 4096): 206053376
Last sector, +sectors or +size{K,M,G} (206053376-524328959, default 524328959): 524328959
Partition 7 of type Linux and of size 151.8 GiB is set
Command (m for help): p
Disk /dev/sdc: 2199.0 GB, 2199022206976 bytes
195 heads, 34 sectors/track, 647807 cylinders, total 4294965248 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: 0x159cb861
Device Boot Start End Blocks Id System
/dev/sdc1 727119872 768079871 20480000 83 Linux
/dev/sdc2 2048 524328959 262163456 5 Extended
/dev/sdc3 524329470 727117964 101394247+ 83 Linux
/dev/sdc4 1024031295 2147483647 561726176+ 83 Linux
/dev/sdc5 39065600 80025599 20480000 83 Linux
/dev/sdc6 162992128 203952127 20480000 83 Linux
/dev/sdc7 206053376 524328959 159137792 83 Linux
Partition table entries are not in disk order
Command (m for help): t
Partition number (1-7): 2
Hex code (type L to list codes): f
Changed system type of partition 2 to f (W95 Ext'd (LBA))
Command (m for help): t
Partition number (1-7): 3
Hex code (type L to list codes): 7
Changed system type of partition 3 to 7 (HPFS/NTFS/exFAT)
Command (m for help): t
Partition number (1-7): 4
Hex code (type L to list codes): 7
Changed system type of partition 4 to 7 (HPFS/NTFS/exFAT)
Command (m for help): t
Partition number (1-7): 7
Hex code (type L to list codes):
Hex code (type L to list codes): 7
Changed system type of partition 7 to 7 (HPFS/NTFS/exFAT)
Command (m for help): t
Partition number (1-7): 5
Hex code (type L to list codes): 7
Changed system type of partition 5 to 7 (HPFS/NTFS/exFAT)
Command (m for help): t
Partition number (1-7): 6
Hex code (type L to list codes): c
Changed system type of partition 6 to c (W95 FAT32 (LBA))
Command (m for help): t
Partition number (1-7): 7
Hex code (type L to list codes): 8e
Changed system type of partition 7 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sdc: 2199.0 GB, 2199022206976 bytes
195 heads, 34 sectors/track, 647807 cylinders, total 4294965248 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: 0x159cb861
Device Boot Start End Blocks Id System
/dev/sdc1 727119872 768079871 20480000 83 Linux
/dev/sdc2 2048 524328959 262163456 f W95 Ext'd (LBA)
/dev/sdc3 524329470 727117964 101394247+ 7 HPFS/NTFS/exFAT
/dev/sdc4 1024031295 2147483647 561726176+ 7 HPFS/NTFS/exFAT
/dev/sdc5 39065600 80025599 20480000 7 HPFS/NTFS/exFAT
/dev/sdc6 162992128 203952127 20480000 c W95 FAT32 (LBA)
/dev/sdc7 206053376 524328959 159137792 8e Linux LVM
Partition table entries are not in disk order
Command (m for help):
※中で扱っている数値は、画面の写真から写しとっているので、間違っている可能性があります
オーバーフローの件
/dev/sdc4 1024031295
2147483647 561726176+ 7 HPFS/NTFS/exFAT
この終了セクタは 3907024064 を指定したのですが 2147483647 になってしまってます。