I'm having trouble finding an answer for this question

Does mount --bind persist over reboot?

On my CentOS it looks like it doesn't, so I've placed apropriate mount --bind calls in rc.local.

How can I do mount --bind to avoid rc.local scenario?

link|improve this question

64% accept rate
Why would you think a mount --bind would be any different than any other mount? – andol May 13 '10 at 14:25
feedback

2 Answers

up vote 6 down vote accepted

Create an entry for the bound mount in your /etc/fstab. An example is below.

/path/to/source/dir /path/to/mount/point none bind 0 0

link|improve this answer
feedback

You should add the appropriate info into /etc/fstab in order to mount the filesystem at boot.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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