I am running Oracle Linux 7 (CentOS / RedHat based distro) in a VirtualBox VM on a Mac with OS X 10.10. I have a Synology Diskstation serving as an iscsi target.

I have successfully connected to the Synology, partitioned the disk and created a filesystem. It is refernced as /dev/sdb and the partition is /dev/sdb1. Now, what I would like to do is create a mount point so I can easily access it:

    mount /dev/sdb1 /mnt/www

That command works. But obviously, it isn't persistent across a reboot. No worries...into /etc/fstab we go.

First, I got the UUID of the partition to ensure I am always using the correct device:

    blkid /dev/sdb1

    /dev/sdb1: UUID="723eb295-8fe0-409f-a75f-a26eede8904f" TYPE="ext3"

Now, I inserted the following line into my /etc/fstab

    UUID=723eb295-8fe0-409f-a75f-a26eede8904f /mnt/www    ext3   defaults   0 0

Upon reboot, the system crashes and goes into maintenance mode. If I remove the line I inserted, all works again. However, I am following the instructions verbatim from Oracle-Base

I know I am missing something..can anyone point me in the right direction?

  • "the system crashes and goes into maintenance mode" ... surely it gives some error before dumping you into a shell? Please include the error messages in your question. If necessary, take a picture of the screen with a cell phone camera and include that. – derobert Apr 8 '15 at 21:16

Just change the parameter "defaults" by "_netdev", like this:

UUID=723eb295-8fe0-409f-a75f-a26eede8904f /mnt/www ext3 _netdev 0 0

This way the mount point will be mounted only after the network start correctly.

  • That worked perfectly. I was wondering if the problem was that network wasn't "ready" when the mount was attempted, but I couldn't make heads nor tails in the logs. Most everything that was related to it said "failed" which was kinda obvious ;-) – Allan Apr 8 '15 at 21:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.