I 've unmounted a disk /dev/vdc1
on my machine, after I format it into xfs file system, I didn't mount it again, either didn't add the adequate line to fstab file.
Now when i want to mount this partition, but I can't access to it: mount: can't find dev/vdc1 in /etc/fstab or /etc/mtab
. So how should I put in fstab file so the system recognizes it again ? the partition was mounted on /Data
Best Answer
So here we create an fstab entry for the partition:
You need to create the folder for the partition and get the device id.
In addition I would make the user the owner and give him the right to read/write:Open a terminal. The folder can be created via
Now the fstab entry:
libblkid1
to see device specific information:sudo apt-get install libblkid1
sudo blkid
and look for the stick. The output could be:sudo gedit /etc/fstab
and append the line (and afterwards give a empty new line to avoid warnings).To mount the partition, open a terminal and type
Because of the entryauto
it should be mounted automatically on next boot.