need mount script for backup purposes
Hi all, i need to know how to setup a script that would mount a chared drive from a XP box.
I guess I need to : mount -t cifs //192.168.1.2/backup /backup but I need to put in the password as the share is asking for it (unless there's a way to stop that..) Then unmount the share when the script is completed any help would be appreciated. Thanks in advance |
ok, after playing around a bit, and fixing a corrupted hosts file (my god what a nightmare but good newbie excersize !).
The command from root to mount is : mount -t cifs //192.168.1.2/FedoraBKUP /XP -o rw -o pass=mypass so how do i put this in fstab in order for the mount to always start when the box boots up? |
Two tutorials re /etc/fstab
http://www.tuxfiles.org/linuxhelp/fstab.html This wiki is specifically for ntfs but the idea is the same for other file systems. http://www.linux-ntfs.org/doku.php?id=ntfs-en |
All times are GMT -5. The time now is 09:57 PM. |