While Manuel seems to have answered the asked question quite fully, the question you seem to have meant to ask was:
"After I unmounted a disk /dev/vdc1
from /Data
and formatted it to XFS, I can't remount it. How do I remount it at /Data
?"
You seem to be misunderstanding (reasonably) the error message help text that results, which is what's caused confusion about your question.
You unmounted the device, /dev/vdc1
, from /Data
, formatted the device to XFS, then tried to remount it and it's saying there's no such device. Since you didn't give details on the exact command(s) you ran to "format the device to XFS", I'm going to assume what you did was:
sudo mkfs.xfs -f /dev/vdc1
If you forgot the -f
, or didn't answer yes
to a prompt to overwrite the existing file system, the mkfs
command failed.
After doing this, you should just be able to run the command
sudo mount -t xfs /dev/vdc1 /Data
Looking at the error that was generated, it appears you entered dev/vdc1
, rather than /dev/vdc1
, and/or reversed the arguments to the mount command.
If it's still giving you an error for some reason, confirm that /dev/vdc1
actually exists. You can check /var/log/syslog
or run dmesg
to see what the system did after you created the new file system to determine if it decided to change the device associated with the partition for some reason, or what explicit error occurred when you ran the mount command that failed.