LinuxQuestions.org
Help answer threads with 0 replies.
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-01-2015, 09:25 PM   #1
emman2020
LQ Newbie
 
Registered: Jan 2014
Location: Utah US
Distribution: Ubuntu and Fedora
Posts: 1

Rep: Reputation: Disabled
Mounting FS to linux


Hello all,

I have been trying to make this work with little success. What I am trying to do is mount a file system (fs) share from a NAS to my Ubuntu computer. The share mounts just fine, but I am having issues writing content. I am using the following command to mount the share:

sudo mount //<IP_address>/share_drive/path -t cifs /home/dir/share_folder/ -o "username=XXXXXXXX,password=XXXXXXXXX"

In some occasions I can created files/directories, but suddenly my write access will be lost. I have checked all the permission on the NAS server and the everything looks good there.

I have the same issue with a Windows share that I mount to Ubuntu from a Window Server 2012. I am using the following command to mount the Windows share:

sudo mount.cifs //<IP_address>/Public /home/dir_local/share_02 -o "username=xxxxxxxxxxx,password=xxxxxxxxxx"

Again I read all the files but not write or create anything new to it. I have also verified the permissions on the share and they work well on other system but not on Linux Ubuntu.

Any ideas or suggestions will be greatly appreciated.

Regards and thanks in advance.

Emman
 
Old 09-02-2015, 03:26 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,490

Rep: Reputation: Disabled
Welcome aboard.

(Sorry, I can't help with Ubuntu.)
 
Old 09-02-2015, 12:21 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Any particular symptoms when the write access is lost? Every twenty minutes after mounting? Network went south for a second and came back? wpa_supplicant rotated keys? dhcp got a new lease? And various things normally found in the /var/log/ stuff. Perhaps a terminal or two open with tail -f /var/log/dmesg and tail -f /var/log/syslog. And if those "move" when the fail happens, a clue.
 
Old 09-02-2015, 02:16 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Have you tried forcing the permissions on the share in the mount? Also check the charset
Code:
file_mode=0664,dir_mode=0775,iocharset=iso8859-15
Some people also have luck adding "nounix" to the mount options:
Code:
file_mode=0664,dir_mode=0775,iocharset=iso8859-15,nounix
If it's a NAS, it probably supports NFS. If so, I would recommend using that over SAMBA/CIFS.

Last edited by suicidaleggroll; 09-02-2015 at 02:18 PM.
 
Old 09-02-2015, 07:59 PM   #5
aarcov
LQ Newbie
 
Registered: Feb 2010
Posts: 26

Rep: Reputation: 0
What are you using for the NAS? If it supports ssh, you could try sshfs (should only require ssh support on the NAS, you will need sshfs on the client), although this solution may not work for your windows system.
 
  


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
Mounting issues - Automatical mounting of ext-hdd causes funny results sayhello_to_the_world Linux - Newbie 2 12-20-2013 01:50 PM
mounting digital camera, mounting in general? lugoteehalt Linux - Hardware 6 08-29-2006 12:52 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

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

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