LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Difficulties mounting samba share (I/O Error) (https://www.linuxquestions.org/questions/linux-software-2/difficulties-mounting-samba-share-i-o-error-395182/)

SebKG 12-21-2005 04:04 AM

Difficulties mounting samba share (I/O Error)
 
I have a samba share that I can access from Windows PCs without any problems. I can also access this share using smbclient from another linux PC. When I mount the share with the command

mount -t smbfs -o username=Gerega //192.168.0.21/Music /mnt/Music

It takes a while to accept my password and then proceeds. However when I try and actually list the contents of the mounted share or browse the contents I get the following error:

Music: Input/output error

I do not get any errors when browsing with smbclient and to be completely honest I the mounting aspect was working perfectly several days ago. I cannot think of anything I have changed and seeing as the other aspects of the share work fine I am really confused...

any help would be great

amitsharma_26 12-21-2005 05:37 AM

Permissions/Rights over that share would be the reason.

..Amit..

SebKG 12-21-2005 03:05 PM

I don't think that is the problem
 
What kind of permissions would result in my problem? I don't think that is the case because if I browse the share with smbclient or konqueror it works fine. It is only when I mount it that it times out and gives the I/O error...

linuxamateur-two-too 12-21-2005 06:52 PM

Strangely enough two other, apparently knowledable persons, have almost the same problem. Do you by any chance have the same distro ?
http://www.linuxquestions.org/questi...d.php?t=394588
http://www.linuxquestions.org/questi...d.php?t=394596

either there must be problem with login, or the mount fails for some reason (what happens if you mount to a new mountpoint, not through "mount" or "smbmount" but by just adding a line to fstab ?
.
The differing servers probably dont matter.

(man smbmount v3.0.20b):

One smbfs bug is important enough to mention here, even if it is a bit
misplaced:

Mounts sometimes stop working. This is usually caused by smbmount
terminating. Since smbfs needs smbmount to reconnect when the server
disconnects, the mount will eventually go dead. An umount/mount nor-
mally fixes this. At least 2 ways to trigger this bug are known.

----

three people, why not each of you make the following: with konqueror

first browse /mnt until you get no further
then browse smb:// (servers_IP_number) until you get no further
and smb:// ( workgroup ) until you get no further
compare your results, and you may at least learn where the problem lies.

SebKG 12-21-2005 06:58 PM

no solution yet...
 
Actually I think my problem is a bit different to the two that you linked... I used to have the problem where I would mount and not be able to access and it turned out that was because of SELinux that was blocking the access... I disabled SELinux (on my FC4 machine) and then got the access working fine. I no longer get permission errors but just I/O errors.... Any ideas anyone?

centauricw 12-21-2005 11:50 PM

One thing I would suggest is that since the SMB share is on another Linux box, share this directory out over NFS show that you don't have to manage everything by converting it to SMB and back. I was tried to do something similar on a RedHat box and changed it over to NFS since the remote box was also Linux. Much more stable.

SebKG 12-21-2005 11:55 PM

Oh my god, that is a very good suggestion... it didn't even cross my mind... I guess I can do that since the share is still working on the windows machines... just haven't used NFS before so will do that and will keep looking into this problem since it has annoyed me so much

SebKG 12-22-2005 12:40 AM

NFS produces exact same error
 
Well I didn't expect this! Setup an NFS share and it produces the exact same error....

SebKG 12-22-2005 08:16 AM

Ok well no progress on getting the NFS or SMB mount to work but I was able to successfully mount the share with the following command:

mount -t cifs -o username=Seb //Boa/Share /mnt/Boa

I am still curious what is going wrong but maybe CIFS is the way to go...?


All times are GMT -5. The time now is 11:50 PM.