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
/etc/fstab
don't reboot to test it. Usemount -a
an check if it worked./dev/xvdf
and/dev/xvdb1
? What is the output tocat /proc/partitions
? What device do you want to mount and what should the mountpoint be (where should it appear in the file tree)?mount -a
is almost always a good habit to check the validity of fstab. The reason it is good is that it will immediately list any errors it finds, so you not only know whether the file is valid, but if it isn't, you know what the errors are, which, of course, is a nice first step to solving the problem.