1、对第一块盘/dev/sdb进行分区:
- [root@rac1 ~]# fdisk /dev/sdb
- Device contains neither a valid DOS partition table,nor Sun,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x06b87c6d.
- 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)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-1566,default 1):
- Using default value 1
- Last cylinder,+cylinders or +size{K,M,G} (1-1566,default 1566):
- Using default value 1566
- Command (m for help): p
- Disk /dev/sdb: 12.9 GB,12884901888 bytes
- 255 heads,63 sectors/track,1566 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x06b87c6d
- Device Boot Start End Blocks Id System
- /dev/sdb1 1 1566 12578863+ 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
2、查看分区是否正常
- [root@rac1 ~]# fdisk -l /dev/sdb
- Disk /dev/sdb: 12.9 GB,1566 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x06b87c6d
- Device Boot Start End Blocks Id System
- /dev/sdb1 1 1566 12578863+ 83 Linux
3、ok,分区正常。按照上述方法,把剩下的六块盘都分区。
- [root@rac1 ~]# fdisk /dev/sdc
- Device contains neither a valid DOS partition table,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x15863b60.
- Changes will remain in memory only,the prevIoUs content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sdc: 12.9 GB,1566 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x15863b60
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): n^H1
- Partition number (1-4): 1
- First cylinder (1-1566,default 1566):
- Using default value 1566
- Command (m for help): p
- Disk /dev/sdc: 12.9 GB,1566 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x15863b60
- Device Boot Start End Blocks Id System
- /dev/sdc1 1 1566 12578863+ 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@rac1 ~]# fdisk -l /dev/sdc
- Disk /dev/sdc: 12.9 GB,1566 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x15863b60
- Device Boot Start End Blocks Id System
- /dev/sdc1 1 1566 12578863+ 83 Linux
- [root@rac1 ~]# fdisk /dev/sdd
- Device contains neither a valid DOS partition table,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x12264bdf.
- Changes will remain in memory only,the prevIoUs content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sdd: 2147 MB,2147483648 bytes
- 255 heads,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x12264bdf
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-261,G} (1-261,default 261):
- Using default value 261
- Command (m for help): p
- Disk /dev/sdd: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x12264bdf
- Device Boot Start End Blocks Id System
- /dev/sdd1 1 261 2096451 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@rac1 ~]# fdisk -l /dev/sdd
- Disk /dev/sdd: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x12264bdf
- Device Boot Start End Blocks Id System
- /dev/sdd1 1 261 2096451 83 Linux
- [root@rac1 ~]# fdisk /dev/sde
- Device contains neither a valid DOS partition table,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0xb60ea544.
- Changes will remain in memory only,the prevIoUs content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sde: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xb60ea544
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-261,default 261):
- Using default value 261
- Command (m for help): p
- Disk /dev/sde: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xb60ea544
- Device Boot Start End Blocks Id System
- /dev/sde1 1 261 2096451 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@rac1 ~]# fdisk -l /dev/sde
- Disk /dev/sde: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xb60ea544
- Device Boot Start End Blocks Id System
- /dev/sde1 1 261 2096451 83 Linux
- [root@rac1 ~]# fdisk /dev/sdf
- Device contains neither a valid DOS partition table,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0xe73a738f.
- Changes will remain in memory only,the prevIoUs content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sdf: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xe73a738f
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-261,default 261):
- Using default value 261
- Command (m for help): p
- Disk /dev/sdf: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xe73a738f
- Device Boot Start End Blocks Id System
- /dev/sdf1 1 261 2096451 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@rac1 ~]# fdisk -l /dev/sdf
- Disk /dev/sdf: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xe73a738f
- Device Boot Start End Blocks Id System
- /dev/sdf1 1 261 2096451 83 Linux
- [root@rac1 ~]# fdisk /dev/sdg
- Device contains neither a valid DOS partition table,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x41119c7e.
- Changes will remain in memory only,the prevIoUs content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sdg: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x41119c7e
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-261,default 261):
- Using default value 261
- Command (m for help): p
- Disk /dev/sdg: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x41119c7e
- Device Boot Start End Blocks Id System
- /dev/sdg1 1 261 2096451 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@rac1 ~]# fdisk -l /dev/sdg
- Disk /dev/sdg: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x41119c7e
- Device Boot Start End Blocks Id System
- /dev/sdg1 1 261 2096451 83 Linux
- [root@rac1 ~]# fdisk /dev/sdh
- Device contains neither a valid DOS partition table,SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0xeac8d462.
- Changes will remain in memory only,the prevIoUs content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
- switch off the mode (command 'c') and change display units to
- sectors (command 'u').
- Command (m for help): p
- Disk /dev/sdh: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xeac8d462
- Device Boot Start End Blocks Id System
- Command (m for help): n
- Command action
- e extended
- p primary partition (1-4)
- p
- Partition number (1-4): 1
- First cylinder (1-261,default 261):
- Using default value 261
- Command (m for help): p
- Disk /dev/sdh: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xeac8d462
- Device Boot Start End Blocks Id System
- /dev/sdh1 1 261 2096451 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- [root@rac1 ~]# fdisk -l /dev/sdh
- Disk /dev/sdh: 2147 MB,261 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0xeac8d462
- Device Boot Start End Blocks Id System
- /dev/sdh1 1 261 2096451 83 Linux
- [root@rac1 ~]#