CentOS6.5 格式化磁盘

2018-03-08 14:32:22 阅读:22 编辑
[root@iZ28 s6 i39 e7 Z ~]# fdisk -l
Disk /dev/vda: 42.9 GB, 42949672960 bytes

255 heads, 63 sectors/track, 5221 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: 0 x00078 f9 c

   Device Boot      Start         End      Blocks   Id  System

/dev/vda1   *           1        5222    41940992   83  Linux

Disk /dev/vdb: 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: 0 xe4669959

   Device Boot      Start         End      Blocks   Id  System

/dev/vdb1               1        2611    20968448    7  HPFS/NTFS

格式化

[root@iZ28 s6 i39 e7 Z ~]# mkfs.ext3 /dev/vdb1

[root@Linux1 ~]# mkdir /mnt/vdb1 // 新建一个挂载点。

[root@Linux1 ~]# mount /dev/vdb1 /mnt/vdb1 // 挂载。
[root@Linux1 ~]# ln -s /mnt/vdb1 /opt

https://www.cnblogs.com/fangzhang/p/11144931.html