| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 84140 | 2007-10-25 17:08:00 | Linux.. mounting NFS | Myth (110) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 605321 | 2007-10-25 17:08:00 | Have linux on the laptop, and have wireless etc all set up. Have also set up as NFS client, and am able to manually mount the shares exported by the server. However, adding those mounts to /etc/fstab, they won't mount on startup. I am thinking that maybe ndiswrapper and my wireless aren't quite up when its attempting to mount the NFS shares. Is there any way around this? Currently I have just added a couple (there are 2 exports) of items to the menu whereby I mount via mouseclick. I would prefer automounting however |
Myth (110) | ||
| 605322 | 2007-10-25 19:00:00 | Just throw in an extra init script with the mount command in it, towards the end of the sequence, or move the order of the nfs stuff at boot to come after the wireless has come up. Alternatively, throw a script in ~/.kde/Autostart/ |
Erayd (23) | ||
| 605323 | 2007-10-26 04:03:00 | Just throw in an extra init script with the mount command in it, towards the end of the sequence, or move the order of the nfs stuff at boot to come after the wireless has come up. Alternatively, throw a script in ~/.kde/Autostart/How? This is for a Debian based distro too |
Myth (110) | ||
| 605324 | 2007-10-26 04:10:00 | In Debian, the default runlevel is 2. Go into /etc/rc2.d/ and you should see a whole pile of symlinks pointing to the init scripts. Just rename the nfs ones so they start with S99 - that should sort it. If it doesn't, create a new script in /etc/init.d/ that explicitly mounts them, and symlink to it from /etc/rc2.d/S99yourscript. If it's STILL not working, just throw your custom script in ~/.kde/Autostart instead, and make sure that your mounts are user-mountable. | Erayd (23) | ||
| 605325 | 2007-10-26 04:47:00 | In Debian, the default runlevel is 2. Go into /etc/rc2.d/ and you should see a whole pile of symlinks pointing to the init scripts. Just rename the nfs ones so they start with S99 - that should sort it. If it doesn't, create a new script in /etc/init.d/ that explicitly mounts them, and symlink to it from /etc/rc2.d/S99yourscript. If it's STILL not working, just throw your custom script in ~/.kde/Autostart instead, and make sure that your mounts are user-mountable.Uhh, how does one write an init/startup script? Something like: #!/bin/bash mount ip:/dir dir exit 0? |
Myth (110) | ||
| 605326 | 2007-10-26 05:27:00 | Brilliant :D Created a new script that looks similar to that one ^ except with the correct mount commands Made it executable, then created a link and added it to /etc/rc2.d. Renmaed the link (added S99 to the name), then tested the link by double clicking; and sure enough all required mounts mounted. Unmounted, rebooted, and voila, all mounts have mounted auto :D Now to delete my other temp workaround Ty :) |
Myth (110) | ||
| 1 | |||||