Shell script to mount SAN

L

linux_new_bie

Guest
Hi experts,
Greetings.
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

Sample;
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.
 

Staff online

Members online


Latest posts

Top