mount bind and fstab
by edwardsmarkf from LinuxQuestions.org on (#5GEW2)
hello -
in order to get past an apache issue, i was instructed to execute the following command:
Quote:
this certainly fixed my problem. however, the results of this command does not survive a reboot, and therefore it needs to go into my /etc/fstab file, so i have been told.
the contents of my fstab file currently look like this:
Code:UUID=158XXXXXb7 / xfs seclabel,grpquota,rw,relatime,usrquota,quota,inode64,attr2 0 0
UUID=3cbXXXXXXa8 /boot ext4 defaults 1 2
UUID=c6XXXXX414 swap swap defaults 0 0
so i tried adding the following line:
Code:/home /var/www none bindthen ran the following command:
Quote:
should i see the new line i added in the mount-fake command? i feel as if i am missing some big piece to the puzzle.
thank you very much.


in order to get past an apache issue, i was instructed to execute the following command:
Quote:
mount --bind /home /var/www ; |
the contents of my fstab file currently look like this:
Code:UUID=158XXXXXb7 / xfs seclabel,grpquota,rw,relatime,usrquota,quota,inode64,attr2 0 0
UUID=3cbXXXXXXa8 /boot ext4 defaults 1 2
UUID=c6XXXXX414 swap swap defaults 0 0
so i tried adding the following line:
Code:/home /var/www none bindthen ran the following command:
Quote:
mount --fake --all --verbose ; |
thank you very much.