Partition not mounting from fstab

fstabmountpartition

I have mounted a partition and add it to fstab file and then rebooted but I see that the partition is not mounted although it was added to fstab.

What is wrong, and how can I solve it?
fstab line:
/dev/xvdf /dev/xvdb1 ext3 defaults 0 0

Best Answer

Something is very fishy about that fstab-line:

/dev/xvdf /dev/xvdb1 ext3 defaults 0 0

Normally they have the format:

/dev/device /mnt/mountpoint fs flags stuffINeverRemember

Basically, what this line does or tries is mounting /dev/xvdf onto the directory /dev/xvdb1. I think you misunderstood how /etc/fstab works. You most likely want something like this:

/dev/xvdb1 /mnt/ ext3 defaults 0 0

In particular, note that the mount point (/mnt in this example) must be an existing directory, it will not be created for you.

Related Question