配置VMware挂载新加入的磁盘(2)

mkfs -t ext4 /dev/sdb5
mke2fs
1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 655360 inodes, 2621440 blocks 131072 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2151677952 80 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done 

然后我们创建两个目录来挂载这两个逻辑分区:

## 然后创建目录 ## mkdir /disk5 /disk6 ## 使用mount命令来挂载目录 ## mount /dev/sdb5 /disk5 mount /dev/sdb6 /disk6


最后使用mount命令来查看挂载情况

[root@localhost dev]# ## 使用mount命令来查看挂载情况 ## [root@localhost dev]# mount | grep "sdb" /dev/sdb5 on /disk5 type ext4 (rw,relatime,seclabel,data=ordered) /dev/sdb6 on /disk6 type ext4 (rw,relatime,seclabel,data=ordered)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/14483.html