LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to mount a NAS drive in Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-mount-a-nas-drive-in-linux-845306/)

mensfort 11-19-2010 07:51 AM

How to mount a NAS drive in Linux?
 
I have bought a NAS and configured this to work under Windows within Microsoft network name HOUKES and device name //CH3MNAS/Volume_1.

Now I want to see this NAS also under Linux. What is the easiest way to do this?

What I want to do: Inside Thunderbird/Windows e-mails+pictures are now this drive... I want to see my them also in Linux.

alan99 11-19-2010 08:52 AM

Install/use samba-client to access your drive.

mensfort 11-21-2010 08:06 AM

Not working yet...
 
I'm really a beginner, experiencing following problems:

Following is working finally:
Add one line to //etc/hosts
192.168.1.35 CH3MNAS nas
>smbclient //nas/Volume_1 -N

Issues: Was not able to change the hosts file, only after "sudo -s" this was possible, because else you have no rights to change this directory.
For this I installed vim, which looks like vi... some people like it, not me!

However, I want to use this NAS with GIT or just read it. So I need to mount it. Then I tried "mount //nas/Volume_1 /work", but I am not the root user grrrrrrrrrrrrr....

Next tried: "sudo mount //nas/Volume_1 /work" and filled in an empty password. But Linux does not like empty passwords.. so I used HTTP to change the password of my NAS... now it is not working anymore...

also smbclient is not working anoymore since I added a password. When I use "smbclient //nas/Volume_1 /work -o password=12345678" I get following errors:
Domain=[HOUKES] OS=[Unix] Server=[Samba 3.0.28]
Server not using user level security and no password supplied.
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED

Still trying...

mensfort 11-21-2010 08:24 AM

Finally after 3 days.
 
Now I found a website on internet, helping me a lot in linux. I made a directory /san

then I did:
"sudo smbmount //CH3MNAS/Volume_1 /nas -o username=mensfort,password=12345678"

then I can do: "cd /nas", "ls" and get data from the right position...
Now to see if there is sth like autoexec.bat... or where to put this so I get this done automatic.


All times are GMT -5. The time now is 04:57 AM.