LinuxQuestions.org
Visit Jeremy's Blog.
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 02-27-2021, 08:03 AM   #1
manler
LQ Newbie
 
Registered: Feb 2021
Location: Netherlands
Posts: 5

Rep: Reputation: Disabled
Mount error(5): Input/output error


Hello,

I'm new on this forum and this is my first question. I have spent multiple days to find the solution to mount an old network disk (supports only SMB1) in Openmediavault 5 with a plug in called: Remote Mount.

It doens't matter which options/settings I edit, nothing works. I already edit the smb.conf to accepet SMB1 (NT1) connections, I already used the option vers=1.0 with sec=none / sec=ntlm and so on. Even putting more lines in the smb.conf, like: "guest only = yes", "guest ok = yes" and so on. Everything what I could fine on google, I tried it!

The network disk does not have any security for the shared folders, there are no usernames and no password. When I enable SMB1 on a Windows client, then I can acces the shares on the network disk right away.

With smbclient I can list the shares without any problems: "smbclient -L //192.168.0.3/ -N", see below:

Sharename Type Comment
--------- ---- -------
NAS-BACKUP Disk
Backup Disk
IPC$ IPC
Reconnecting with SMB1 for workgroup listing.

Server Comment
--------- -------

Workgroup Master
--------- -------


The trouble starts when I try to mount the disk, even without the Openmediavault Remote mount plugin.

I know that SMB1 protocol is a security risk and so on but I have spent to much time that I must make it work (it is only for personal/private use).

So... if there is someone who can help me with this and have some golden tips, please let me know!

Thank you

Last edited by manler; 02-27-2021 at 09:13 AM.
 
Old 02-27-2021, 09:52 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
Can you provide specific information about this "old network disk"
Which share are you trying to mount?

From the command line try:
Code:
mount -t cifs -o guest,sec=ntlm,vers=1.0 //192.168.0.3/NAS-Backup /mnt/some_where
/mnt/some_where is just an example but the directory needs to exist and by convention is under /mnt or /media.
 
Old 02-27-2021, 10:15 AM   #3
manler
LQ Newbie
 
Registered: Feb 2021
Location: Netherlands
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hello Michael,

Thanks for your reply!

The old disk is an FREECOM 1TB Network Drive / LAN & USB 2.0 model: SWYBAH (picture: https://images-eu.ssl-images-amazon....X300_QL70_.jpg)
On the web interface from that disk, I can create multiple shares. One of them is: "NAS-BACKUP". But all the shares on de disk are the same, there are no differences (except the share names of course).

Here is the output of the command:

root@NAS-OTHMAN:~# mount -t cifs -o guest,sec=ntlm,vers=1.0 //192.168.0.3/NAS-Backup /mnt/share/
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@NAS-OTHMAN:~#
 
Old 02-27-2021, 10:33 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
Changing options to sec=none might work.
 
Old 02-27-2021, 10:57 AM   #5
manler
LQ Newbie
 
Registered: Feb 2021
Location: Netherlands
Posts: 5

Original Poster
Rep: Reputation: Disabled
I've already tried , se my first post: "I already used the option vers=1.0 with sec=none / sec=ntlm and so on."

root@NAS-OTHMAN:~# mount -t cifs -o guest,sec=ntlm,vers=1.0 //192.168.0.3/NAS-Backup /mnt/share/
root@NAS-OTHMAN:~# mount -t cifs -o guest,sec=none,vers=1.0 //192.168.0.3/nas-backup /mnt/share/
root@NAS-OTHMAN:~# mount -t cifs -o sec=none,vers=1.0 //192.168.0.3/nas-backup /mnt/share/

All these commands gives the same output:
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

root@NAS-OTHMAN:~# ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
64 bytes from 192.168.0.3: icmp_seq=1 ttl=32 time=0.229 ms
64 bytes from 192.168.0.3: icmp_seq=2 ttl=32 time=0.161 ms
64 bytes from 192.168.0.3: icmp_seq=3 ttl=32 time=0.212 ms

root@NAS-OTHMAN:~# smbclient -L 192.168.0.3
Enter WORKGROUP\root's password:{Here I just hit Enter. without entering a password}
Sharename Type Comment
--------- ---- -------
NAS-BACKUP Disk
IPC$ IPC
Reconnecting with SMB1 for workgroup listing.

Server Comment
--------- -------

Workgroup Master
--------- -------

root@NAS-OTHMAN:~# sudo nano /etc/samba/smb.conf -- (I tried with different config settings, below is how it is now):
[global]

workgroup = WORKGROUP
client ipc signing = auto
client max protocol = NT1
guest only = yes
guest ok = yes
guest account = nobody
public = yes

------
Everithing what comes below in the config file, is default.

it's so frustrated!

Last edited by manler; 02-27-2021 at 10:59 AM.
 
Old 02-27-2021, 11:14 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
The smb.conf file basically only configures the server running on your Open Media Vault box and not the mount command trying to access another server.

Another option to try is nounix

Adding --verbose might provide more information.

Code:
mount -t cifs --verbose -o nounix,guest,sec=ntlm,vers=1.0 //192.168.0.3/NAS-Backup /mnt/share/
 
Old 02-27-2021, 11:44 AM   #7
manler
LQ Newbie
 
Registered: Feb 2021
Location: Netherlands
Posts: 5

Original Poster
Rep: Reputation: Disabled
Talking YES!

Quote:
Originally Posted by michaelk View Post
The smb.conf file basically only configures the server running on your Open Media Vault box and not the mount command trying to access another server.
Ah, good to know. Thank you!

Code:
mount -t cifs --verbose -o nounix,guest,sec=ntlm,vers=1.0 //192.168.0.3/NAS-Backup /mnt/share/
OMG! "nounix" did the job!! thank you very much !
From here I can finally move on, thanks to you!

Hero
 
Old 02-27-2021, 11:47 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,566
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Please mark it as solved then.
 
Old 02-27-2021, 11:53 AM   #9
manler
LQ Newbie
 
Registered: Feb 2021
Location: Netherlands
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Please mark it as solved then.
Done.
 
  


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
Cifs "mount error 5 = Input/output error" but smbfs works! humbletech99 Linux - Networking 36 12-18-2019 02:59 AM
[SOLVED] stty: standard input: Input/output error [bash] DoME69 Programming 7 05-22-2015 12:14 AM
[SOLVED] mount nfs problem: mount(2) Input/Output error, virtual box involved gjatute Linux - Newbie 6 10-23-2012 01:57 PM
Why unable to mount my nas in fstab get "mount error(5) Input/output error fi5ban Linux - Networking 0 04-01-2009 10:42 AM
Repeated "input: AT Translated Set 2 keyboard as /class/input/input" messages AcerKev Mandriva 2 09-16-2007 08:35 AM

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

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