I have a router connected NAS, via a USB port. it is a samba server and works. There is a "send to" function that works for saving files and it works well enough from various Apple devices but I would prefer to be able to connect to it from a terminal and do thins like create directories and add and delete files etc. in a more convenient way.
How can I do that, can it be done? There doesn't appear to be any LAN address as with a Linux samba server? Just the router itself at the usual 192.168.1.1. The computer runs Fedora 29 and the router a version of dd-wrt, nether of which probably matters.
Bob
On 12Feb2019 15:37, Bob Goodwin bobgoodwin@fastmail.us wrote:
I have a router connected NAS, via a USB port. it is a samba server and works. There is a "send to" function that works for saving files and it works well enough from various Apple devices but I would prefer to be able to connect to it from a terminal and do thins like create directories and add and delete files etc. in a more convenient way.
How can I do that, can it be done? There doesn't appear to be any LAN address as with a Linux samba server? Just the router itself at the usual 192.168.1.1. The computer runs Fedora 29 and the router a version of dd-wrt, nether of which probably matters.
Have you tried considering the router the samba server?
Does "smbclient -L 192.168.1.1" work?
Once you can mount the SMB shared you should be able to cd around in them from the terminal and do the usual stuff.
Cheers, Cameron Simpson cs@cskk.id.au
On 02/12/19 16:15, Cameron Simpson wrote:
Does "smbclient -L 192.168.1.1" work?
Once you can mount the SMB shared you should be able to cd around in them from the terminal and do the usual stuff.
Cheers, Cameron Simpson cs@cskk.id.au ______________________________________
I didn't see that in google, I guess I had the wrong key words ...
[root@Box83 bobg]# smbclient -L 192.168.1.1 Enter SAMBA\bobg's password:
Sharename Type Comment --------- ---- ------- sda2 Disk sda2 sda1 Disk sda1 RouterNAS Disk RouterNAS jffs Disk JFFS sdb1 Disk sdb1 IPC$ IPC IPC Service (TomatoUSB) Reconnecting with SMB1 for workgroup listing.
Server Comment --------- -------
Workgroup Master --------- ------- ROUTERNAS UNKNOWN SAMBA BOX48
The Man page says "smbclient - ftp-like client to access SMB/CIFS resources on servers."
Can you suggest a comman do list files on "sda1" perhaps?
Thanks for the response ...
On 2/12/19 1:37 PM, Bob Goodwin wrote:
The Man page says "smbclient - ftp-like client to access SMB/CIFS resources on servers."
Can you suggest a comman do list files on "sda1" perhaps?
You looked at the man page, it has instructions.
Try "smbclient //192.168.1.1/sda1".
You can also mount it using "-t cifs". See "man mount.cifs" for details.
On 02/12/19 16:48, Samuel Sieb wrote:
On 2/12/19 1:37 PM, Bob Goodwin wrote:
The Man page says "smbclient - ftp-like client to access SMB/CIFS resources on servers."
Can you suggest a comman do list files on "sda1" perhaps?
You looked at the man page, it has instructions.
Try "smbclient //192.168.1.1/sda1".
You can also mount it using "-t cifs". See "man mount.cifs" for details. _______________________________________________
This works:
[root@Box83 bobg]# smbclient //192.168.1.1/sdb1 Enter SAMBA\bobg's password: Try "help" to get a list of possible commands. smb: >
But I can't seem to find the right command to mount it:
[root@Box83 bobg]# mount.cifs //192.168.1.1/sdb1 /mnt/test Password for bobg@//192.168.1.1/sdb1: mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I probably have the command wrong but that is as close as I seem to be able to get.
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
On 2/12/19 5:51 PM, Bob Goodwin wrote:
This works:
[root@Box83 bobg]# smbclient //192.168.1.1/sdb1 Enter SAMBA\bobg's password: Try "help" to get a list of possible commands. smb: >
Did you try "ls"?
But I can't seem to find the right command to mount it:
[root@Box83 bobg]# mount.cifs //192.168.1.1/sdb1 /mnt/test Password for bobg@//192.168.1.1/sdb1: mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
The kernel defaults to version 2 now, but if that's an old NAS, it might still be using version 1. Try: "mount -t cifs -o vers=1.0 //192.168.1.1/sdb1 /mnt/test"
On 02/12/19 23:39, Samuel Sieb wrote:
The kernel defaults to version 2 now, but if that's an old NAS, it might still be using version 1. Try: "mount -t cifs -o vers=1.0 //192.168.1.1/sdb1 /mnt/test"
. Yes, that works. The equipment is not so old but the Samba/cifs is from the router program TomatoUSB in an Asus RT-N66U router. That combination works so well I hesitate to update it. Perhaps I could try it in another router, but that's another project ...
I've gained some useful experience and information for my notes from this thread. And it looks like I have the control via Linux of the NAS data that I was looking for, I can mount the NAS and deal with the data in a terminal. Thunar is good for viewing contents but has it's limitations.
Thanks to you and Cameron,--
Bob Goodwin - Zuni, Virginia, USA http://www.qrz.com/db/W2BOD box83 FEDORA-29/64bit LINUX XFCE Fastmail POP3
On 2/13/19 4:50 AM, Bob Goodwin wrote:
On 02/12/19 23:39, Samuel Sieb wrote:
The kernel defaults to version 2 now, but if that's an old NAS, it might still be using version 1. Try: "mount -t cifs -o vers=1.0 //192.168.1.1/sdb1 /mnt/test"
. Yes, that works. The equipment is not so old but the Samba/cifs is from the router program TomatoUSB in an Asus RT-N66U router. That combination works so well I hesitate to update it. Perhaps I could try it in another router, but that's another project ...
I've gained some useful experience and information for my notes from this thread. And it looks like I have the control via Linux of the NAS data that I was looking for, I can mount the NAS and deal with the data in a terminal. Thunar is good for viewing contents but has it's limitations.
Thanks to you and Cameron,--
Bob Goodwin - Zuni, Virginia, USA http://www.qrz.com/db/W2BOD box83 FEDORA-29/64bit LINUX XFCE Fastmail POP3 _______________________________________________
Router companies do not seem to be in any hurry to update their software for systems they've already sold. Nor do they tell customers the status of the software. The marketing is all about plug and play and web based control or phone apps. Is there a version of dd-wrt that implements version 2?
Robert McBroom