Find the answer to your Linux question:
Results 1 to 2 of 2
Hey guys, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    1

    need help auto mounting a network drive (should be easy an easy solution)


    Hey guys,

    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!!

  2. #2
    Just Joined!
    Join Date
    Jan 2006
    Posts
    77
    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.

    Code:
    #!/bin/bash
    mount 192.168.3.72:/public /import
    add that script to /etc/init.d and link it in rc5.d (or rc3.d).
    Code:
    chmod +x <script_name>
    ln -s /etc/init.d/<script_name> /etc/rc5.d/S99<script_name>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •