Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Although I'm learning fast (Thanks to members of this Forum), I'm a newbie to Linux and find I often need to turn to others for support.
My plea this time is in regards to entries that disappear from the /etc/fstab file.
Using unfsd I've set up NFS on my DNS323. In doing so I added a line to the /etc/fstab file so a directory I wish to share as ro is made available. Although I've been successful at starting NFS and mounting the desired directory the line that I've added to the /etc/fstab file disappear upon a system reboot.
How do I go about entering a line in the /etc/fstab file so it survives a reboot of the box. The line I'm try to add is as follows;
localhost:/mnt/HD_b2/.private/.snapshots/ /mnt/HD_b2/.snapshots/ nfs ro 0 0
With appreciation
Bob Blackwell
Offline
rcblackwell wrote:
localhost:/mnt/HD_b2/.private/.snapshots/ /mnt/HD_b2/.snapshots/ nfs ro 0 0
/etc/fstab is stored in ram (on a ram disk), changes are lost on reboot.
Your fstab line above doesn't make much sense. NFS is a _network_ file system, and as such not the best approach to mount a local directory (/mnt/HD_b2/.private/.snapshots/) on another local directory (/mnt/HD_b2/.snapshots/). If that's what you want (I'm not convinced), search for 'bind mount' examples (or just move the whole thing?)
If you want to export your .private/.snapshots directory to windows clients, the place to check is the SMB/CIFS config. No need for NFS unless you have an NFS client (like another Linux/Unix box).
Offline
fonz wrote:
rcblackwell wrote:
localhost:/mnt/HD_b2/.private/.snapshots/ /mnt/HD_b2/.snapshots/ nfs ro 0 0
/etc/fstab is stored in ram (on a ram disk), changes are lost on reboot.
Your fstab line above doesn't make much sense. NFS is a _network_ file system, and as such not the best approach to mount a local directory (/mnt/HD_b2/.private/.snapshots/) on another local directory (/mnt/HD_b2/.snapshots/). If that's what you want (I'm not convinced), search for 'bind mount' examples (or just move the whole thing?)
If you want to export your .private/.snapshots directory to windows clients, the place to check is the SMB/CIFS config. No need for NFS unless you have an NFS client (like another Linux/Unix box).
Fonz,
Thank you for that tidbit of information. What you've described, the export of the .private/.snapshots directory to a windows client, is exactly what I'm attempting to achieve.
The .private/.snapshots directory is a hidden folder containing files that I wish to make available as read only in a folder named .snapshots/. An article I read regarding NFS suggested the export function was an means of achieving this. Unfortunately I wasn't aware of the limitation Windows has with respect to NFS files or the DNS323 has with respect to the /etc/fstab file. Although I found a way around the fstab file problem through use of a script in ffp/start folder, I think it would be best for me to re-evaluate my use of NFS and look more toward the use SMB/CIFS.
Have you any tips to offer?
Bob Blackwell
Pickering, ON
Last edited by rcblackwell (2008-06-10 20:36:25)
Offline