Linux 新磁盘分区与挂载

 
1、查看未 分区 的盘
 
2、新建 分区
 
3、格式化 分区 (/dev/sdb1)
 
4、查看磁盘uuid
[root@web-node1 ~]# blkid /dev/vdb1
/dev/vdb1: UUID="14d98abd-7356-45e3-bbfc-0a09c52fe7f3" TYPE="ext4" 

5、创建挂载目录,并挂载
   [root@web-node1 ~]# mkdir /data
[root@web-node1 ~]# cat /etc/fstab 
#
# /etc/fstab
# Created by anaconda on Fri Aug 18 03:51:14 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=59d9ca7b-4f39-4c0c-9334-c56c182076b5 /                       ext4    defaults        1 1
/dev/vdb1                                 /data                   ext4    defaults        1 1

6、查看系统分区情
 
<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">

猜你喜欢

转载自www.cnblogs.com/xuegqcto/p/9689482.html