LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-21-2005, 04:04 AM   #1
SebKG
LQ Newbie
 
Registered: May 2005
Posts: 17

Rep: Reputation: 0
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
 
Old 12-21-2005, 05:37 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Permissions/Rights over that share would be the reason.

..Amit..
 
Old 12-21-2005, 03:05 PM   #3
SebKG
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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...
 
Old 12-21-2005, 06:52 PM   #4
linuxamateur-two-too
LQ Newbie
 
Registered: Nov 2005
Location: Basel Suisse
Posts: 18

Rep: Reputation: 0
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.

Last edited by linuxamateur-two-too; 12-21-2005 at 07:03 PM.
 
Old 12-21-2005, 06:58 PM   #5
SebKG
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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?
 
Old 12-21-2005, 11:50 PM   #6
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
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.
 
Old 12-21-2005, 11:55 PM   #7
SebKG
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 12-22-2005, 12:40 AM   #8
SebKG
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
NFS produces exact same error

Well I didn't expect this! Setup an NFS share and it produces the exact same error....
 
Old 12-22-2005, 08:16 AM   #9
SebKG
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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...?
 
  


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 XP share w/Samba KFoldesi Linux - Software 7 06-29-2004 09:51 PM
samba share mounting bacon22 Linux - Software 1 01-24-2004 07:13 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Error mounting Samba Share cmfarley19 Linux - Software 2 08-22-2003 12:56 PM
error with mounting samba share on linux as normal user dwof Linux - Software 7 08-13-2003 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 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