Score:0

can not mount EBS volume to centos EC2 instance

mz flag

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? ?

Score:0
in flag

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
leauradmin avatar
mz flag
But on another ec2 instance that (file -s /dev/xvdf) command returns me /dev/xvdf: data
Romeo Ninov avatar
in flag
@leauradmin, you should care about current machine, not other. And what tell you the result of `file` command in this case?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.