LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2003, 12:27 AM   #1
anthjaz
Member
 
Registered: Sep 2003
Distribution: RH9
Posts: 37

Rep: Reputation: 15
samba share mount on boot


I am running RH9 with Samba 3. I have an smbmount to an NT share that I need automatically mounted if and when the box is rebooted. I would assume I need some startup script. Sorry, but I am not sure where to start. I think I have to add the smbmount to "/etc/fstab" but when I manually mount I get promted for a password and am not sure how to go about entering that. Also, I was reading about automount. Not sure which way is the best.

Thanks.
 
Old 11-04-2003, 12:46 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Hi

try the smbmount command
U can provide the password at the command line itself.

try the man page of smbmount command for help


regards
jayakrishnan

Last edited by jayakrishnan; 11-04-2003 at 12:48 AM.
 
Old 11-04-2003, 02:22 PM   #3
anthjaz
Member
 
Registered: Sep 2003
Distribution: RH9
Posts: 37

Original Poster
Rep: Reputation: 15
What I really would like is for Linux to automatically mount it when it boots up. Right now I mount it like this:

"smbmount //x.x.x.x/share /mnt/dir -o credentials=/cred/file"

where in /cred/file I have:
username = my_username
password = my_password

This way I don't get promted when I mount. But what I want is to run
"smbmount //x.x.x.x/share /mnt/dir -o credentials=/cred/file"
when the system boots up so I do not have to manually do it.

If there is a better way to do it, please let me know. Thanks.
 
Old 11-04-2003, 05:22 PM   #4
Tenover
Member
 
Registered: Mar 2003
Posts: 123

Rep: Reputation: 15
You need to edit /etc/fstab to mount it at boot-up. Try opening a terminal and typing "man fstab".....
 
Old 11-04-2003, 05:56 PM   #5
anthjaz
Member
 
Registered: Sep 2003
Distribution: RH9
Posts: 37

Original Poster
Rep: Reputation: 15
Yes, thank you. I am successfully mounting at boot after adding this to fstab:

//x.x.x.x/nt_share /mnt/dir smbfs credentials=/dir/file 0 0

Thanks again!
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 02:35 AM
mount a samba share? trey85stang DamnSmallLinux 2 05-16-2005 07:58 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 12:26 PM
Mount Partition As Samba Share? Terje Linux - General 1 11-28-2004 06:53 PM
XP not able to mount Linux share through SAMBA Peter2003 Linux - Software 2 06-05-2003 12:05 AM


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

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