[root@centos ~]# fdisk -l /dev/sda ← 既存ハードディスクパーティション確認
Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 fd Linux raid autodetect
/dev/sda2 14 522 4088542+ fd Linux raid autodetect
[root@centos ~]# fdisk /dev/sdb ← 新ハードディスクパーティション設定
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n ← n(新規パーティション作成)応答
Command action
e extended
p primary partition (1-4)
p ← p(基本パーティション)応答
Partition number (1-4): 1 ← 1(パーティション番号)応答
First cylinder (1-522, default 1): 1 ← 1(/dev/sda1のパーティション割当て開始位置)応答
Last cylinder or +size or +sizeM or +sizeK (1-522, default 522): 13 ← 13(/dev/sda1のパーティション割当て終了位置)応答
Command (m for help): n ← n(新規パーティション作成)応答
Command action
e extended
p primary partition (1-4)
p ← p(基本パーティション)応答
Partition number (1-4): 2 ← 2(パーティション番号)応答
First cylinder (14-522, default 14): 14 ← 14(/dev/sda2のパーティション割当て開始位置)応答
Last cylinder or +size or +sizeM or +sizeK (14-522, default 522): 522 ← 522(/dev/sda2のパーティション割当て終了位置)応答
Command (m for help): t ← t(システムID設定)応答
Partition number (1-4): 1 ← 1(パーティション番号)応答
Hex code (type L to list codes): fd ← fd(RAIDシステムID)応答
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): t ← t(システムID設定)応答
Partition number (1-4): 2 ← 2(パーティション番号)応答
Hex code (type L to list codes): fd ← fd(RAIDシステムID)応答
Changed system type of partition 2 to fd (Linux raid autodetect)
Command (m for help): a ← a(ブート可能フラグ設定)応答
Partition number (1-4): 1 ← 1(パーティション番号)応答
Command (m for help): p ← p(パーティション表示)応答
Disk /dev/sdb: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 fd Linux raid autodetect
/dev/sdb2 14 522 4088542+ fd Linux raid autodetect
Boot、Start、Endが既存ハードディスク/dev/sdaと同じ設定になっていることを確認
Command (m for help): w ← w(パーティションをディスクへ書き込み)応答
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
|
|