Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-03-2008, 05:52 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 26

Rep: Reputation: 15
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 // /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
Old 05-03-2008, 07:22 PM   #2
LQ Newbie
Registered: Oct 2003
Posts: 26

Original Poster
Rep: Reputation: 15
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 // /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?
Old 05-03-2008, 09:21 PM   #3
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Two tutorials re /etc/fstab

This wiki is specifically for ntfs but the idea is the same for other file systems.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount my backup drive? olddog Slackware 9 11-25-2006 11:05 AM
Help writing script file to mount / mount hard drive Rustylinux Linux - General 6 06-27-2006 09:34 AM
Does Red Hat 6.1 Support CD-RW Drive for Backup purposes?? therouxsr Linux - Hardware 1 11-23-2004 04:40 PM
Need to know how to mount Second HD to backup files RIOMX Linux - Hardware 2 12-23-2003 02:38 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration