finding the path to a network folder to use in the terminal
I have a NAS on my network and I can access files on the NAS using the file manager (Thunar) by clicking on "Network" and then on the name of the NAS. But I haven't found how to access NAS files from the terminal window and I am hoping someone can help. This isn't a question about mounting as I keep finding in my searches. I just need to know how to find the path to the NAS. (Ubuntu 11.10)
Thanks. Tom |
how is NAS done in this setup?
There are quite some different methods of attaching storage via network. And so differ the solutions. |
Quote:
When I created a file on the NAS and opened it in gedit I saw that it displayed the following address when saving: smb://ix2-200-ttp/quiktransfer/mytestfile.txt This would suggest that the file is accessed via a Samba server but I could not find how to access this file in a terminal window (e.g., ls -l smb://ix2-200-ttp/quiktransfer). I hope this provides enough information to point me in the right direction. |
You need to mount the SMB share on a mountpoint in your filesystem. Once done, you access the files just as if they are local files. I will not quote an exact command to use, since there are a lot of site-specific options which need to be right before it will work. On Linux, the CIFS filesystem type has mostly superseded the SMB filesystem type. Your mount command should look something like:
Code:
mount -t cifs smb://ix2-200-ttp /some/local/directory/as/a/mountpoint --- rod. |
All times are GMT -5. The time now is 06:49 PM. |