From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 22:15:37 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14C28458 for ; Thu, 9 Oct 2014 22:15:37 +0000 (UTC) Received: from forward18.mail.yandex.net (forward18.mail.yandex.net [IPv6:2a02:6b8:0:1402::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8C06344 for ; Thu, 9 Oct 2014 22:15:36 +0000 (UTC) Received: from web27g.yandex.ru (web27g.yandex.ru [95.108.253.236]) by forward18.mail.yandex.net (Yandex) with ESMTP id E22D31780258; Fri, 10 Oct 2014 02:15:22 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web27g.yandex.ru (Yandex) with ESMTP id 605E2530073F; Fri, 10 Oct 2014 02:15:22 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1412892922; bh=RmBDG3dHiRSTRRilAkseUxTaYyqcb6dBSaxzDmK85RI=; h=From:To:In-Reply-To:References:Subject:Date; b=Ok2oKJggLmiU9kklQQ1zEA9RlrjkpdvQKXr9uBruz23bwdWcLhCuiGu5BgvAfn5qv yBOEIMl5qk6DJ2XbPpvVU8bkRlhTHZ8VVkU4DVPtwY/o2F+NZrX/07/83GcQ/f2n6v x8hOo6CFjgHzuFr2etSEW7f2FMnyRRj4rO/2Zz9Q= Received: from tsn109-201-152-16.dyn.nltelcom.com (tsn109-201-152-16.dyn.nltelcom.com [109.201.152.16]) by web27g.yandex.ru with HTTP; Fri, 10 Oct 2014 02:15:22 +0400 From: Martin Hanson To: Michael Ross , FreeBSD Questions Mailing List In-Reply-To: References: <563081412888800@web23j.yandex.ru> Subject: [SOLVED] Mounting samba, some files are invisible MIME-Version: 1.0 Message-Id: <589291412892922@web27g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 10 Oct 2014 00:15:22 +0200 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2014 22:15:37 -0000 > But you can see more of these files when you use a GUI viewer, > and with MC you can see all of them, if I read you right. > > Could this be charset related, i. e. do the files in question > have any, like, utf-8 characters in their names? > And MC decodes these filesnames correctly, > your GUI viewer decodes some of them correctly, > and the console doesn't do it at all? > > If it works better with a GUI then in the console, > and the GUI accesses the smbfs mount, > it is probably not the fault of mount_smbfs. > > Michael Michael, thank you very very very much!! I kept investigating and mounting with this setting solved the problem: mount_smbfs -E iso-8859-1:iso-8859-1 Doing a locale on the FreeBSD box gives: LANG= LC_CTYPE="C" LC_COLLATE="C" LC_TIME="C" LC_NUMERIC="C" LC_MONETARY="C" LC_MESSAGES="C" LC_ALL= And I remember it being setup with ISO-8859-1. The Linux box is running UTF-8 for all users: LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= I don't know if the above "-E iso-8859-1:iso-8859-1" is the correct way to solve this, but now I know where to look. Forgive my impatience. Kind regards.