Error when mounting drive

后端 未结 3 1989
难免孤独
难免孤独 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:39

    Try mounting the device "/dev/sdf" instead of "/dev/sdf1".

    If that still doesn't work, try mounting it as "/dev/xvdf" or "/dev/xvda1", e.g.:

    sudo mount /dev/xvda1 /space
    

    The explanation for this name mismatch can be found in the "Attach Volume" dialog of the EC2 management screen:

    Note: Newer linux kernels may rename your devices to /dev/xvdf through /dev/xvdp internally, even when the device name entered here (and shown in the details) is /dev/sdf through /dev/sdp.

提交回复
热议问题