1.格式化磁盘
fdisk -l fdisk /dev/vdb m n p w ll /dev/ partprobe /dev/vdb mkfs -t ext4 /dev/vdb1 mkdir /data1 mount /dev/vdb1 /data1 mount -a mount
2.挂载启动
vim /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 /data1 ext4 defaults 0 0 df -h
原文地址:http://blog.51cto.com/13634837/2093606
时间: 2024-10-29 17:12:52