LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-25-2011, 08:08 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Mounting a remote NAS drive


Hi folks,

I realize this is about as newbie as it gets. I have a webserver, and they have a remote NAS service that I just subscribed to. They gave me an SMB path of \1.2.3.4\share, along with a login/pw.

What's the right way to go about mounting that permanently, so that I can back my files up to it? The webserver is a seriously busy website so I'm a bit gunshy about mucking around with settings on it.

Any insight would really be appreciated. Thanks!
 
Old 09-26-2011, 12:59 PM   #2
kabars_edge
Member
 
Registered: Apr 2006
Location: Silver Spring, MD
Distribution: Debian
Posts: 40

Rep: Reputation: 8
Well, nothing is newbie if you've not done it before. If you want to mount from the command line, you can use the following options:

Quote:
mount -t cifs //Hostname/Username -o username=username,password=password /local/mountpoint
or

Quote:
smbmount //Hostname/Username /local/mountpoint -o lfs,username=username,password=password
However, if you are looking to mount from the fstab, you'll want to do this:

Quote:
hosthame_or_ip:/mnt/pth/folder /mnt/location/folder smbfs username=uname,password=passwd 0 0
That should do it. However, when I'm doing NAS mounts via the fstab, I mount via NFS and use host exports for authentication, no password or username required. Point is, I'm freehanding the last quoted entry, so YMMV and it might require some tweaks.

HTH,
 
  


Reply



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
[SOLVED] Mounting a remote drive in /etc/fstab suhaib Linux - Server 2 10-26-2010 05:55 AM
Problems mounting Netgear NAS drive with CIFS, NFS. Cenobite Linux - Networking 1 07-07-2010 01:52 AM
Mounting a remote dvd drive Sapper1729 Linux - Networking 1 01-17-2007 11:19 AM
Mounting a Remote Windows Drive vandeja4 Linux - Networking 1 10-25-2006 12:58 PM
Remote Mounting a CD-RW Drive using SMBFS rossmac Debian 2 05-31-2005 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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
Open Source Consulting | Domain Registration