1. IMPORTANT - 11/13/2015: In light of a possible breach we have scrubbed all passwords. You will need to request a password reset through the site. Click here for more information.

Shell script to mount SAN

Discussion in 'General Linux' started by linux_new_bie, Sep 25, 2012.

  1. linux_new_bie

    linux_new_bie New Member

    Sep 25, 2012
    Likes Received:
    Hi experts,
    I am a newbie in linux and i have to write a shell script to include the mount command to mount the SAN.
    I dont know how to run the command as super user.Can anyone please help me by providing the shell script to do so.
    Actually the shell script should check whether SAN is mounted and if not mount the SAN

    mount /dev/sda1 /iscsi/vol01

    This is the command .I dont know how to include it in shell script and put it in cron .So the shell script should not ask for superuser password at runtime.

    Please help me by giving your valuable suggestions and ideas.

    Thanks in advance.


Share This Page