You are not logged in.

#1 2015-09-26 18:00:53

webdawg
Member
Registered: 2010-12-28
Posts: 62

samba share issues - cat, other linux utils - hang forever output bad

I have a samba share mounted like so:

sudo mount -t cifs //host/share /media/folder/ -o user=username,password=password,uid=1000,gid=100,cache=none,sec=ntlm"

When I cat a file on ie, the output of cat hangs at the end.

If I do cat -vet on the file I get something like this forever:

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

It will go forever.  Years ago I switched over to NFS to fix something like this, but later I used samba again and it did not do this anymore.

Anyone know why it is doing this?  I just replaced my nas, it is running samba 3 and this issue is popping up again.

Last edited by webdawg (2015-09-26 18:28:46)

Offline

#2 2015-09-26 18:48:21

webdawg
Member
Registered: 2010-12-28
Posts: 62

Re: samba share issues - cat, other linux utils - hang forever output bad

I added nounix to my mount command and it is working now.  Have to figure out why now.

The server is an OpenIndiana hipster NAS.

Last edited by webdawg (2015-09-26 18:48:52)

Offline

#3 2016-08-26 10:18:01

kirby_33
Member
Registered: 2016-08-26
Posts: 2

Re: samba share issues - cat, other linux utils - hang forever output bad

I had exactly the same issue using Ubuntu 16.04 with a Samba share on a NAS (WD ShareSpace)
Now it is working!!! Thanks a lot!!! smile

Offline

Board footer

Powered by FluxBB