LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-03-2008, 06:52 PM   #1
npereira
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 //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
 
Old 05-03-2008, 08:22 PM   #2
npereira
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 //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?
 
Old 05-03-2008, 10:21 PM   #3
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
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
 
  


Reply


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 12:05 PM
Help writing script file to mount / mount hard drive Rustylinux Linux - General 6 06-27-2006 10:34 AM
Does Red Hat 6.1 Support CD-RW Drive for Backup purposes?? therouxsr Linux - Hardware 1 11-23-2004 05:40 PM
Need to know how to mount Second HD to backup files RIOMX Linux - Hardware 2 12-23-2003 03:38 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 06:48 AM


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

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