在阿里云上加好一块磁盘后,将他分区,挂在在/data,并且设置开机自动挂在/etc/fstab
[root@ZHONG-LONG javascripts]# vim mount.sh
#!/bin/bash
fdisk /dev/vdb << EOF
n
p w
EOF
mkdir /data
mkfs.ext4 /dev/vdb1
mount /dev/vdb1 /data/
UUID=`blkid |grep vdb1 |awk '{print $2}' |awk -F= '{print $2}' |sed 's/\"//g'`
echo "UUID=$UUID /data ext4 defaults 1 1" >> /etc/fstab