0

I have an ec2 instance running centos and I want to add an EBS want to it. I created and attached the volume to my instance. my volume is attached as /dev/sdf. But when I try to check if there is any filesystem by typing the command file -s /dev/xvdf here as root, i get this message :/div/xvdf: cannot open (No such file or directory)
how should i do that? ?

1 Answer 1

0

As you said your volume is /dev/sdf. Why you try to access is as /dev/xvdf? Also the error message you enter here mention /div/xvdf (wrong directory).

Also the proper command to check the partition on disk is:

fdisk -l /dev/sdf
2
  • But on another ec2 instance that (file -s /dev/xvdf) command returns me /dev/xvdf: data
    – leauradmin
    Dec 15, 2022 at 16:56
  • @leauradmin, you should care about current machine, not other. And what tell you the result of file command in this case? Dec 15, 2022 at 17:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .