Error when mounting drive

后端 未结 3 1990
难免孤独
难免孤独 2021-02-20 14:48

I created an EC2 amazon instance (ubuntu) and created a volume from an available snapshot. The volume has been successfully attached to my instance as /dev/sdf.

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-20 15:29

    Complementing David Levesque answer.

    You can check which volumes have been mounted with. The following will list them all:

    $ sudo lsblk --output NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,LABEL
    

    You will get something like that

    NAME    TYPE SIZE FSTYPE MOUNTPOINT LABEL
    xvda    disk   8G                   
    └─xvda1 part   8G ext4   /          cloudimg-rootfs
    xvdf    disk  30G                   
    └─xvdf1 part  30G ext4              cloudimg-rootfs
    

    Then you can mount it with

    $ sudo mount /dev/xvdf1 /space -t ext4
    

    I hope it helps

提交回复
热议问题