Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing USB storage attached to network router

826 views
Skip to first unread message

Rodolfo Medina

unread,
Jun 5, 2017, 8:40:05 AM6/5/17
to
Hi all.

Here:

https://askubuntu.com/questions/109505/how-do-i-access-an-external-hard-drive-plugged-into-my-router

the problem seems to be solved, but not for me... I plugged a USB storage
pendrive into my ADSL internet router but don't know how to access it. I tried
putting in /etc/fstab something like:

//192.168.1.1/USB_storage /mnt/public cifs guest 0 0

with no result: when I do `mount -a' it says:

mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

. Please help whoever can.

Thanks in advance,

Rodolfo

Darac Marjal

unread,
Jun 5, 2017, 9:30:04 AM6/5/17
to
On Mon, Jun 05, 2017 at 01:38:04PM +0100, Rodolfo Medina wrote:
>Hi all.
>
>Here:
>
> https://askubuntu.com/questions/109505/how-do-i-access-an-external-hard-drive-plugged-into-my-router
>
>the problem seems to be solved, but not for me... I plugged a USB storage
>pendrive into my ADSL internet router but don't know how to access it. I tried
>putting in /etc/fstab something like:
>
> //192.168.1.1/USB_storage /mnt/public cifs guest 0 0

Is this the correct share to mount? Try "smbclient -L 192.168.1.1" to see
what shares are available.

Try running smbmount directly and see if it gives more information:

# mount -t cifs //192.168.1.1/USB_Storage /mnt/public --verbose -o guest

>
>with no result: when I do `mount -a' it says:
>
> mount error(115): Operation now in progress
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
>
>. Please help whoever can.
>
>Thanks in advance,
>
>Rodolfo
>

--
For more information, please reread.
signature.asc

Rodolfo Medina

unread,
Jun 5, 2017, 10:40:04 AM6/5/17
to
Darac Marjal <maili...@darac.org.uk> writes:

> On Mon, Jun 05, 2017 at 01:38:04PM +0100, Rodolfo Medina wrote:
>>Here:
>>
>> https://askubuntu.com/questions/109505/how-do-i-access-an-external-hard-drive-plugged-into-my-router
>>
>>the problem seems to be solved, but not for me... I plugged a USB storage
>>pendrive into my ADSL internet router but don't know how to access it. I
>>tried putting in /etc/fstab something like:
>>
>> //192.168.1.1/USB_storage /mnt/public cifs guest 0 0
>
> Is this the correct share to mount? Try "smbclient -L 192.168.1.1" to see
> what shares are available.

$ smbclient -L 192.168.0.1
WARNING: The "syslog" option is deprecated
Enter rodolfo's password:
Connection to 192.168.0.1 failed (Error NT_STATUS_IO_TIMEOUT)


> Try running smbmount directly and see if it gives more information:
>
> # mount -t cifs //192.168.1.1/USB_Storage /mnt/public --verbose -o guest


# mount -t cifs //192.168.1.1/USB_Storage /mnt/public --verbose -o guest
mount.cifs kernel mount options: ip=192.168.1.1,unc=\\192.168.1.1\USB_Storage,user=,pass=********
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


. I don't know, now... Please help. Thanks.

Rodolfo

davi...@freevolt.org

unread,
Jun 5, 2017, 11:10:07 AM6/5/17
to
On Mon, 5 Jun 2017, Rodolfo Medina wrote:

> Darac Marjal <maili...@darac.org.uk> writes:
>
>> On Mon, Jun 05, 2017 at 01:38:04PM +0100, Rodolfo Medina wrote:
>>> Here:
>>>
>>> https://askubuntu.com/questions/109505/how-do-i-access-an-external-hard-drive-plugged-into-my-router
>>>
>>> the problem seems to be solved, but not for me... I plugged a USB storage
>>> pendrive into my ADSL internet router but don't know how to access it. I
>>> tried putting in /etc/fstab something like:
>>>
>>> //192.168.1.1/USB_storage /mnt/public cifs guest 0 0
>>
>> Is this the correct share to mount? Try "smbclient -L 192.168.1.1" to see
>> what shares are available.
>
> $ smbclient -L 192.168.0.1
^
[when displayed with a fixed-width font, the caret points at '0']

FWIW, 0 is not 1.

> WARNING: The "syslog" option is deprecated
> Enter rodolfo's password:
> Connection to 192.168.0.1 failed (Error NT_STATUS_IO_TIMEOUT)

Maybe try again, but with the correct ip address?

Rodolfo Medina

unread,
Jun 5, 2017, 11:10:07 AM6/5/17
to
Sorry... But the result is the same:

$ smbclient -L 192.168.1.1
WARNING: The "syslog" option is deprecated
Enter rodolfo's password:
Connection to 192.168.1.1 failed (Error NT_STATUS_IO_TIMEOUT)

Thanks,

Rodolfo

Rodolfo Medina

unread,
Jun 6, 2017, 2:50:04 AM6/6/17
to
Rodolfo Medina <rodolfo...@gmail.com> writes:

> Darac Marjal <maili...@darac.org.uk> writes:
>
>> On Mon, Jun 05, 2017 at 01:38:04PM +0100, Rodolfo Medina wrote:
>>>Here:
>>>
>>> https://askubuntu.com/questions/109505/how-do-i-access-an-external-hard-drive-plugged-into-my-router
>>>
>>>the problem seems to be solved, but not for me... I plugged a USB storage
>>>pendrive into my ADSL internet router but don't know how to access it. I
>>>tried putting in /etc/fstab something like:
>>>
>>> //192.168.1.1/USB_storage /mnt/public cifs guest 0 0
>>
>> Is this the correct share to mount? Try "smbclient -L 192.168.1.1" to see
>> what shares are available.
>
> $ smbclient -L 192.168.0.1
> WARNING: The "syslog" option is deprecated
> Enter rodolfo's password:
> Connection to 192.168.0.1 failed (Error NT_STATUS_IO_TIMEOUT)

If I put 192.168.1.2, instead, I get something more:

$ smbclient -L 192.168.1.2
WARNING: The "syslog" option is deprecated
Enter rodolfo's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.12]
Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED

>> Try running smbmount directly and see if it gives more information:
>>
>> # mount -t cifs //192.168.1.1/USB_Storage /mnt/public --verbose -o guest
>
>
> # mount -t cifs //192.168.1.1/USB_Storage /mnt/public --verbose -o guest
> mount.cifs kernel mount options:
> ip=192.168.1.1,unc=\\192.168.1.1\USB_Storage,user=,pass=********
> mount error(115): Operation now in progress
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

And also:

# mount -t cifs //192.168.1.2/USB_Storage /mnt/public --verbose -o guest
mount.cifs kernel mount options: ip=192.168.1.2,unc=\\192.168.1.2\USB_Storage,user=,pass=********
Retrying with upper case share name
mount.cifs kernel mount options: ip=192.168.1.2,unc=\\192.168.1.2\USB_STORAGE,user=,pass=********
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Besides, pointing the web browser at 192.168.1.1, the usb storage is seen in
the Admin menu. Does all this suggest us anything useful...?

Thanks,

Rodolfo

Darac Marjal

unread,
Jun 6, 2017, 5:30:04 AM6/6/17
to
Yes, this confirms that 192.168.1.1 is the address of your router. An IP
address typically identifies a single device. If you are looking to talk
to the USB device attached to the router, there's no point talking to
192.168.0.1 or 192.168.1.2 - that's like saying "I couldn't find my
laptop, but I walked into my neighbour's house and they had a laptop so
it must be the right one"
signature.asc

Glyn Astill

unread,
Jun 6, 2017, 5:40:04 AM6/6/17
to
That's not strictly true. Years ago I had an (awful) Netgear router that would provide a samba share for an attached USB device and by defaualt it did so on a separate IP.

Rodolfo Medina

unread,
Jun 6, 2017, 6:20:04 AM6/6/17
to
All right, but to do then now...? Why no response comes from 192.168.1.1?

Thanks,

Rodolfo

to...@tuxteam.de

unread,
Jun 6, 2017, 7:00:06 AM6/6/17
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jun 06, 2017 at 11:11:32AM +0100, Rodolfo Medina wrote:

[...]

[Case 1:]

> >>> $ smbclient -L 192.168.0.1
> >>> WARNING: The "syslog" option is deprecated
> >>> Enter rodolfo's password:
> >>> Connection to 192.168.0.1 failed (Error NT_STATUS_IO_TIMEOUT)

[...]

[Case 2:]

> >>$ smbclient -L 192.168.1.2
> >>WARNING: The "syslog" option is deprecated
> >>Enter rodolfo's password:
> >>Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.12]
> >>Server requested LANMAN password (share-level security) but 'client lanman
> >> auth = no' or 'client ntlmv2 auth = yes'
> >>tree connect failed: NT_STATUS_ACCESS_DENIED

[...]

> All right, but to do then now...? Why no response comes from 192.168.1.1?

To be fair, a response *is* coming from 192.168.1.1 (case 2 above), and
this response is "NO, you are not allowed"). As opposed to case 1, where
the client gives up (...TIMEOUT) after a while of silence.

So you'll have to fix the permissions on your CIFS server now. No, sorry,
I have no idea on how to do that, but perhaps the router's web "GUI" has
something on this.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlk2ikQACgkQBcgs9XrR2kYsCwCeO0ZRJbdUair97pDDcg4jGGiw
0nsAniJSn3HMYuWsoNrYIjlJjMS858Ek
=VpFr
-----END PGP SIGNATURE-----

Rodolfo Medina

unread,
Jun 8, 2017, 5:10:04 AM6/8/17
to
Rodolfo Medina <rodolfo...@gmail.com> writes:

> I plugged a USB storage pendrive into my ADSL internet router but don't know
> how to access it. I tried putting in /etc/fstab something like:
>
> //192.168.1.1/USB_storage /mnt/public cifs guest 0 0
>
> with no result: when I do `mount -a' it says:
>
> mount error(115): Operation now in progress
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


First of all, I had to set the USB drive as a `Managed partition' from the
router web GUI. Secondly, its right address was `//192.168.1.2/Shared' and not
`//192.168.1.1/USB_storage'. With these corrections, and the following line:

//192.168.1.2/Shared /mnt/shared cifs rw,user,noauto 0 0

in /etc/fstab, I can now properly mount the USB derive as a normal user simply
with:

$ mount /mnt/shared

and hitting `Enter' when prompted for password. This said, and thanked all who
helped, I now wish to automatic mounting at start up but don't manage to.
Googling around I found many suggestions but no one that helped me. On another
machine of mine, an old Acer Aspire One netbook, it works by putting in fstab
the following:

//192.168.1.2/Shared /mnt/shared cifs rw,user,password=mypassword 0 0

where `mypassword' is *any* word. On my desktop Lenovo, instead, it does not
work. Please, any suggestion?

Thanks,

Rodolfo

Rodolfo Medina

unread,
Apr 10, 2019, 9:10:04 AM4/10/19
to
I'm revisiting now this old thread in which I solved my problem... Now I have
the problem again with my new router Zyxel VMG8823-B50B. I can access the USB
stick via Nautilus:

$ nautilus smb://192.168.1.1

but don't manage to mount the USB stick. In /etc/fstab I have:

//192.168.1.1/mnt/usb1_sda1 /mnt/shared cifs rw,user,noauto 0 0

but it asks for password and fails:

$ mount /mnt/shared/
Password for rodolfo@//192.168.1.1/mnt/usb1_sda1: ************
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Please help whoever can.

Thanks,

Rodolfo

rlha...@oplink.net

unread,
Apr 10, 2019, 10:20:04 AM4/10/19
to
On 2019.04.10 08:01, Rodolfo Medina wrote:
> I'm revisiting now this old thread in which I solved my problem... Now
> I have
> the problem again with my new router Zyxel VMG8823-B50B. I can access
> the USB
> stick via Nautilus:
...
> but don't manage to mount the USB stick. In /etc/fstab I have:

I use gnome-disks to mount and unmount USB sticks directly plugged in to
my machine, which is running Stretch.
0 new messages