# that works even if disks are added and removed. # device this may be used with UUID= as a more robust way to name devices # Use 'blkid' to print the universally unique identifier for a I know alot of the scripts are being slowly moved to upstart(?) but this worked for me so feel free to use it obviously because I know I’m not the only one with this problem.# /etc/fstab: static file system information. It even showed up on the desktop before the wifi login display appeared! Rebooted the laptop and the share appeared. Sudo update-rc.d sharemount.sh start 99 2 3 4 5. I wanted it to run after network had started so: Then I had to update-rc.d (not sure f thats the right way to say it!) the script and make sure it had the correct run-levels. For this I copied it into /etc/init.d and ensured it was still executable. Mount -t nfs 192.168.1.250:/mnt/share1 /media/share1Ĭalled it sharemount.sh and made the script executable and ran it in terminal (as sudo of course) and it worked! So, the next step was to have it run at boot. So with a few tweaks and with help from friends more in the know than me we came with this script: I then found a few scripts which involved pinging the NASBox and once a reply ping was recieved then it mounted the command. I added the sleep command which worked but only if i logged in straight away. Initially as above had a mount command in /etc/rc.local but because of the delay in logging in and connecting to the wifi, the script failed. I also have a laptop running Ubuntu 10.04 LTS connecting to the same network using wifi with a folder created to mount the share into: Setup: I have a small mini-tower running FreeNAS 0.7* with nfs shares enabled – path = /mnt/share1 Please let me know though if this is right as I’m no expert but mashed a few different ideas/scipts together including the above steps! Ok I think I’ve solved it, for those of you that are having problems getting it to mount at boot etc. □ Was this helpful? Please add a comment to show your appreciation or feedback ↓ Join the nixCraft community via RSS Feed, Email Newsletter or follow on Twitter. He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. How Do I Remove Mounted NFS Directory (unmount NFS)? Gedit file.c How Do I Mount NFS Automatically After Reboot?Īppend the following line: 192.168.1.1:/viveks /nfs nfs soft,intr,rsize=8192,wsize=8192 Task: See The List Of All Shared Directories Ldconfig deferred processing now taking place Not creating home directory `/var/lib/nfs'. Ĭreating config file /etc/nf with new versionĬreating config file /etc/default/nfs-common with new versionĪdding new user `statd' (UID 116) with group `nogroup'. Selecting previously deselected package nfs-common. Selecting previously deselected package portmap. Selecting previously deselected package librpcsecgss3. Selecting previously deselected package libnfsidmap2. 161647 files and directories currently installed.) Selecting previously deselected package libgssglue1. Get:5 lucid/main nfs-common 1:1.2.0-4ubuntu4 Libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmapĠ upgraded, 5 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 1,126kB of additional disk space will be used. The following NEW packages will be installed: Libgssglue1 libnfsidmap2 librpcsecgss3 portmap The following extra packages will be installed: You need to install nfs-command package as follows (open terminal and type the following command):
0 Comments
Leave a Reply. |