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. |
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 |
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. |
You need to edit /etc/fstab to mount it at boot-up. Try opening a terminal and typing "man fstab".....
|
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! |
All times are GMT -5. The time now is 05:23 AM. |