环境
虚拟机:VMware-10.0.7 build-2844087
Linux系统:CentOS 6.8
远程工具:Xshell 6
CentOS6.8 使用 fdisk 命令 手动硬盘分区 手动挂载
一、前言
初装Linux,使用安装引导界面进行分区, 当再增加一块硬盘时,需要手动分区,使用命令 fdisk 进行手动分区。
二、fdisk命令手动分区步骤
第一步、 新增一块磁盘
- 虚拟机:关机,直接手动添加一块硬盘,电脑开机,检查网络状态;
- 物理机:关机,加入一块物理硬盘,电脑开机。
第二步、查看所有硬盘及分区 fdisk -l
[root@localhost ~]# fdisk -l
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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: 0x000db990
Device Boot Start End Blocks Id System
/dev/sda1 * 1 131 1048576 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 131 392 2097152 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 392 2611 17824768 83 Linux
Disk /dev/sdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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: 0x00000000