Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2005
need help auto mounting a network drive (should be easy an easy solution)
I'm using red hat linux and I have a network folder shared already.. it's on a redhat linux machine ip address 192.168.3.72
i can mount it with the command: mount 192.168.3.72:/public /import
I am wondering what i need to add to the /etc/fstab file to automount it on startup?
and another question if you guys get bored would be:
i added some stuff like 192.168.3.72:/public /import *other stuff that i forget now* to the fstab on another linux machine so that it would automount on startup but now linux doesn't start.. it gets hung up around enabling swap space and doesn't go anywhere.. is there some way that i can edit the fstab file in this condition and revert it?
btw any solution with knoppix or the such i cannot due as these machines are actually virtual machines...
Thank you in advance for your help!!
- Join Date
- Jan 2006
i'm not sure what you would write in fstab to mount it, but you could add that line to a script and execute it at startup.
#!/bin/bash mount 192.168.3.72:/public /import
chmod +x <script_name> ln -s /etc/init.d/<script_name> /etc/rc5.d/S99<script_name>