进入后台,
https://manage.buyvm.net/volumes/
点击齿轮按钮,将Block Storage Slabs附加到(Attached To)VPS。
在附加好的VPS中,查看数据盘ID:
ls /dev/disk/by-id/
scsi-0BUYVM_SLAB_VOLUME-xxxx(xxxx即为ID)
格式化该储存块:
mkfs.ext4 -F /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-xxxx
创建挂载文件夹:
mkdir -p /mnt/1024
挂载储存块至该文件夹:
mount -o discard,defaults /dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-xxxx /mnt/1024
设置开机自动挂载:
echo '/dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-xxxx /mnt/1024 ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
或者
echo '/dev/disk/by-id/scsi-0BUYVM_SLAB_VOLUME-xxxx /mnt/1024 ext4 defaults,nofail,discard 0 0' | tee -a /etc/fstab
Comments | NOTHING