While Manuel seems to tướng have answered the asked question quite fully, the question you seem to tướng have meant to tướng ask was:
"After I unmounted a disk
/dev/vdc1
from/Data
and formatted it to tướng XFS, I can't remount it. How tự I remount it at/Data
?"
You seem to tướng 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 tướng XFS, then tried to tướng 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 tướng "format the device to tướng XFS", I'm going to tướng assume what you did was:
sudo mkfs.xfs -f /dev/vdc1
If you forgot the -f
, or didn't answer yes
to tướng a prompt to tướng overwrite the existing tệp tin system, the mkfs
command failed.
After doing this, you should just be able to tướng run rẩy the command
sudo mount -t xfs /dev/vdc1 /Data
Looking at the error that was generated, it appears you entered dev/vdc1
, rather phàn nàn /dev/vdc1
, and/or reversed the arguments to tướng the mount command.
If it's still giving you an error for some reason, confirm that /dev/vdc1
actually exists. You can kiểm tra /var/log/syslog
or run rẩy dmesg
to tướng see what the system did after you created the new tệp tin system to tướng determine if it decided to tướng change the device associated with the partition for some reason, or what explicit error occurred when you ran the mount command that failed.