digitalocean挂载储存块命令

  • A+
所属分类:工具和资源

 

digitalocean挂载储存块命令

其中 volume-sfo2-01 是你创建的储存块的名字

要替换掉

 

sudo parted /dev/disk/by-id/scsi-0DO_Volume_volume-sfo2-01 mklabel gpt
sudo parted -a opt /dev/disk/by-id/scsi-0DO_Volume_volume-sfo2-01 mkpart primary ext4 0% 100%
sudo mkfs.ext4 /dev/disk/by-id/scsi-0DO_Volume_volume-sfo2-01-part1
sudo mkdir -p /mnt/volume-sfo2-01-part1
echo '/dev/disk/by-id/scsi-0DO_Volume_volume-sfo2-01-part1 /mnt/volume-sfo2-01-part1 ext4 defaults,nofail,discard 0 2' | sudo tee -a /etc/fstab
sudo mount -a

 

 

 

 

 

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: