美文网首页
AWS EC2挂载多个磁盘

AWS EC2挂载多个磁盘

作者: SRE运维博客 | 来源:发表于2021-09-07 16:37 被阅读0次

查看磁盘空间

df -h
image

查看可用的卷信息

fdisk -l

看到除了/ 磁盘的另外一块磁盘/dev/nvme1n1

image

初始化新卷

这个地方需要注意一下, 磁盘的格式, 比如 xfs有的是ext4 ext3

mkfs -t xfs /dev/nvme1n1
image

查看设备UUID

blkid
image

开机自动挂载

vim /etc/fstab
image

挂载卷

mount  /dev/nvme1n1  /home/bsh
image
文章原文
https://cnsre.cn/posts/210315133616

相关文章

网友评论

      本文标题:AWS EC2挂载多个磁盘

      本文链接:https://www.haomeiwen.com/subject/mcnujltx.html