Hi all. I'm new to use of Samba. I plugged a USB pendrive into router but don't know how to mount it. Please help whoevere can. Thanks in advance, Rodolfo
Rodolfo Medina <rodolfo.medina at gmail.com> writes:> I'm new to use of Samba. I plugged a USB pendrive into router but don't know > how to mount it. Please help whoevere can.I did: $ smbclient -L 192.168.1.1 WARNING: The "syslog" option is deprecated Enter rodolfo's password: Connection to 192.168.0.1 failed (Error NT_STATUS_IO_TIMEOUT) and also: # 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) Any suggestions? Thanks, Rodolfo
On Tue, 06 Jun 2017 18:45:38 +0100 Rodolfo Medina via samba <samba at lists.samba.org> wrote:> Rodolfo Medina <rodolfo.medina at gmail.com> writes: > > > I'm new to use of Samba. I plugged a USB pendrive into router but > > don't know how to mount it. Please help whoevere can. > > > I did: > > $ smbclient -L 192.168.1.1 > WARNING: The "syslog" option is deprecated > Enter rodolfo's password:Just press enter here> Connection to 192.168.0.1 failed (Error NT_STATUS_IO_TIMEOUT) > > and also: > > # 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) > > Any suggestions?You could try doing what it says, run 'man mount.cifs', or you could try it like this: mkdir /mnt/cifs mount.cifs //192.168.1.1/USB_Storage /mnt/cifs Rowland
Rodolfo Medina
2017-Jun-09 11:00 UTC
[Samba] Accented letters in shared USB drive (was: Share USB pendrive in ADSL router)
Rodolfo Medina <rodolfo.medina at gmail.com> writes:> I'm new to use of Samba. I plugged a USB pendrive into router but don't know > how to mount it. Please help whoevere can.Finally I solved it. 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. Now, the problem is about latin accented characters such as bontà, perché, ragù, ecc... in file names on command line. In my home directory I have many files such named, but when I want to copy them into the vfat shared USB driver there are encoding problems: those characters are messing and `Bad file decriptor' error messages sometimes appear. ...For example, when I copy the ~/università to /mnt/shared, I get: universit\ �/ Or, if in /mnt/shared I do: `touch affinché', I get: affinch\ � I've never had this problem before, in my Linux home directory. Please suggest whoever can how to face and solve the problem. Thanks, Rodolfo
Aurélien Aptel
2017-Jun-12 14:06 UTC
[Samba] Accented letters in shared USB drive (was: Share USB pendrive in ADSL router)
Hi Rodolfo (sorry for dup email), Rodolfo Medina via samba <samba at lists.samba.org> writes:> ...For example, when I copy the ~/università to /mnt/shared, I get: > > universit\ �/ > > Or, if in /mnt/shared I do: `touch affinché', I get: > > affinch\ � > > I've never had this problem before, in my Linux home directory. Please suggest > whoever can how to face and solve the problem.Assuming your usb key is formatted with VFAT [1], filenames should be stored in UCS-2 on the key. Let's also assume your linux client uses utf8 for filenames. cifs.ko supports transcoding filenames via the iocharset option, where you are supposed to give the local system encoding cifs.ko should expose the remote filenames in. This option only works if the SMB server supports unicode though. You can try to use mount.cifs .... -o iocharset=utf-8 That being said, I think it's the default so the SMB server might be at fault here in which case you might get something working (keeping accepts) using smbclient but it's less convenient. 1: https://en.wikipedia.org/wiki/File_Allocation_Table#VFAT -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)