From owner-freebsd-current@freebsd.org Sun Jan 14 05:21:00 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D311E7B7C4 for ; Sun, 14 Jan 2018 05:21:00 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4238C6C0D7 for ; Sun, 14 Jan 2018 05:21:00 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x231.google.com with SMTP id b5so13381985itc.3 for ; Sat, 13 Jan 2018 21:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cEbjof5qpluhvyprnkXyQTOPwusG0TyD86EetKQCZh8=; b=dQb+KaO8sjLQpwjh4ihcCTVnZuGkMmug7K9CBfdO2XkrwMv1WCzKsFmF9qE28Lw9z9 Ny4uE3ClBPRYZmc6rfi7UNqRAHuTQTTOvg3EJaVty4aLpto9a0Q1O0MR/h/7urh8cS/O 9ZeMFxBtgOFFMrQDnMrcI6Ip2FVJbIDpLyZ/Pbvur23uP6mgUYqfqfKWbW8xGmXJzlGz C7Xro7WhI/9UERQM1uyMN9MKRD+CmXh5rW5e1Uv1nR7DxgrhMpzykw0dJ9iseXwpRaBD ndbxCKcNrPAzHO7+9xvFhfm86UzyN/2eGQf172wI/z4giTGa3euvB4O17K9WsOK0Q6f8 sYZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cEbjof5qpluhvyprnkXyQTOPwusG0TyD86EetKQCZh8=; b=LRHcw0ZMxbMMTnHQxEmkvO4SKAT3wBGbDFX4WrmFgvHRcOdbMB8cqBtzTWTAcs2DeX SpEHf8pKJAFhsy561gzT+nCSj7XaLuTLZH6gJX/FPos8OhAhmS1jgAnMYG90myiBthZE yFVhjFFyqlchMIWOoGnTFV2FsUH99oDg8tpwgBsRJZ+OlzE+qS5n4YtEDohdYwe3X7M2 xnLt916CHyN24f8raj5JXwQokRRVMFaBEup8fH99jbb5tRkry6v+Qu0bm23B8bYWf5FD 9cqDvHCv9a3lkXwjLxMrtoSnKvniN7WU1ptSxsYfFgO8VvrzohbWeO+ftEcnJKWVo8ti Qyog== X-Gm-Message-State: AKwxytdhJGUbHhKJ7dv7NVM/x8nmNOM7VZ2anUN9qDZN+utrL0J9yNja QiangcrM0lm8km57MLxHkO2cx8oMm+MR+ZlYnX4= X-Google-Smtp-Source: ACJfBovrHd0vkx22fijt0vokFCc4W4CTmVvv0nQ46GbT43UtFaMvbzeBrCpkpNJ4ecSyHkPNGA7dGCVbT1h2T3X+tlg= X-Received: by 10.36.50.73 with SMTP id j70mr9715651ita.149.1515907259482; Sat, 13 Jan 2018 21:20:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.193 with HTTP; Sat, 13 Jan 2018 21:20:58 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Sun, 14 Jan 2018 13:20:58 +0800 Message-ID: Subject: Re: msdosfs_iconv To: Henry Hu Cc: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2018 05:21:00 -0000 On Sun, Jan 14, 2018 at 12:16 PM, Henry Hu wrote: > > > On Sat, Jan 13, 2018 at 10:56 PM, blubee blubeeme > wrote: > >> >> >> On Sun, Jan 14, 2018 at 11:53 AM, Henry Hu wrote: >> >>> >>> >>> On Sat, Jan 13, 2018 at 9:10 PM, blubee blubeeme >>> wrote: >>> >>>> This is a repost from freebsd-question; Hoping to get more exposure and >>>> help here. >>>> >>>> I am trying to run mount_msdosfs with the option to set locale like >>>> this: >>>> mount_msdosfs -L en_US.UTF-8 /dev/da0s1 $HOME/usb >>>> >>>> This returns operation not permitted. >>>> >>>> usrmount is set to 1 and everything mounts as expected w/o root if I >>>> remove >>>> the locale option. The problem here is that my document filenames are >>>> garbled and I can't actually open the files. >>>> >>>> kiconvtool: https://wiki.freebsd.org/DmitryMarakasov/kiconvtool >>>> is said to work but it does not, after installing it I still get the >>>> exact >>>> same error. >>>> >>>> Have you tried to kldload msdosfs_iconv first? >>> >>> Is there a way to set locale when using mount_msdosfs without sudo? >>>> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@f >>>> reebsd.org" >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Henry >>> >> Yes, /etc/rc.conf has this line: >> kld_list="nvidia-modeset msdosfs_iconv" >> >> > I just tried that and it works. I can create filenames in Chinese on the > mounted drive. > The command I used: > > > mount_msdosfs -L zh_CN.UTF-8 /dev/da1p1 /tmp/y > > kernel modules: > > > kldstat | grep iconv > 30 3 0xffffffff8506e000 458f libiconv.ko > 33 1 0xffffffff8507a000 801 msdosfs_iconv.ko > > But I'm using 11.1-STABLE. Maybe something changed? > > -- > Cheers, > Henry > I am running: FreeBSD blubee 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r326056: Tue Nov 21 14:54:55 UTC 2017 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 kldstats 10 1 0xffffffff85e89000 806 msdosfs_iconv.ko 11 1 0xffffffff85e8a000 4633 libiconv.ko Can you list out the steps that you followed? I know that if I first run the mount command as root; I can then mount and unmount as regular user. If I try to mount with that -L flag msdosfs_iconv complains at me.