From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 05:46:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7946516A40F for ; Tue, 5 Dec 2006 05:46:14 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB4B543CA3 for ; Tue, 5 Dec 2006 05:45:36 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB55kDRY004592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 4 Dec 2006 21:46:13 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kB55kCE3004133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 4 Dec 2006 21:46:13 -0800 Message-ID: <457507A4.40101@u.washington.edu> Date: Mon, 04 Dec 2006 21:46:12 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1165282478.5417.6.camel@joe.realss.com> <200612041946.15303.lane@joeandlane.com> In-Reply-To: <200612041946.15303.lane@joeandlane.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.4.213434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_MEDIA_2_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HIGHBITS 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: (repost) cannot read windows share X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 05:46:14 -0000 Lane wrote: > On Monday 04 December 2006 19:34, 张韡武 wrote: >> This is a re-post, I am getting desperate because my work >> require me to connect to this share and my colleague can mount >> the share on Debian. I will have to move to install Debian if I >> wish to go on working... But I am already used to my BSD. It's >> too strange to move to another OS for such a tiny problem! Could >> what I mention below be a bug of FreeBSD mount_smbfs? >> >> Using FreeBSD 6.1, I can mount a windows share but the Chinese >> characters in folder and file names look junk text to me. Charset >> conversion (-E parameter of mount_smbfs) do not work at all. If I do >> ls(1) to a directory that has Chinese character in its name, the process >> 'ls' will take about 80% CPU resource and hang there forever. Ctrl+C >> cannot stop it (kill -KILL can). If I run other command that read any >> file in the directory that has Chinese character in its name, that >> application hangs there taking about 80% CPU resource too. >> >> This process is better illustrated with this screenshot: >> gopher://sdf.lonestar.org/I/users/weiwu/mount_chinese_smbshare.png >> >> In the screenshot, I do have mounted the share with -E parameter which >> should convert GB18030 folder names to UTF-8 but >> actually no conversion is done (see the ls | iconv which shows what it >> should be looking like if the conversion is done) >> >> Actually I have never successfully done charset conversion with >> mount_smbfs, what did I do wrong? >> > weiwu, > > One thing comes to mind: Try your question here: > > http://us1.samba.org/samba/docs/FAQ/ > > and here: > > http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/ > > and here: > > http://us1.samba.org/samba/archives.html > > and here: > > https://lists.samba.org/mailman/ > > Your question is specific to samba, and probably not related to > FreeBSD-specific issues. > > lane > P.S. I note that the hosts in the links above are mostly "us1." That's > probably something to do with the language specification on my system, but > may be different for you. Check out www.samba.org for better links. Your issue has to deal with locales and character sets. I think what you want to do is look into mount(8) and mount_smbfs(8), if you use fstab to specify mounts for the SMB share instead of smbmount. A flag that sort of jumped out at me in mount_smbfs(8) was... -E cs1:cs2 Specifies local (cs1) and server's (cs2) character sets. Cheers, -Garrett