From owner-freebsd-current@freebsd.org Sun Jan 14 05:40:39 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 DEC0AE7C79A for ; Sun, 14 Jan 2018 05:40:39 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: from mail-ua0-x22f.google.com (mail-ua0-x22f.google.com [IPv6:2607:f8b0:400c:c08::22f]) (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 92B716CBB6 for ; Sun, 14 Jan 2018 05:40:39 +0000 (UTC) (envelope-from henry.hu.sh@gmail.com) Received: by mail-ua0-x22f.google.com with SMTP id e19so6585254uam.6 for ; Sat, 13 Jan 2018 21:40:39 -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=2/Jdy09Ngzrc9H+McTN0HQX8j+dtB6gdsKHqTfkZZIg=; b=lsY7CAGUupNav89GtwOOl9es9VTrE45AEOEE3gdsQpAMV1Jlc5KO6886OaE3boXFmC V4GgFp5BsnoH90IY2xWm6vLSGMSl5eMYpWJ4I1LPKtHn/50zkAN0tvJKaRs8kyCwfD8S v2VjcVeKLmjEQrSExC+zoBVcMiuDgMAbuOrPIWXuVxkSpIRmCFNBAU4dOqMAPfS6wXqM tSL3ezmcfbc05jJrrFA/Q7hex3GKVDmKp0kcJVafbAliV00nOd5YapWxOH01OJpARihS NpDIuF2cq3pL3iovJ1+i7iSO62u3bSsIxvVefTbWIuAC9I1aPgJnvzQriHpvKIa0W4Sg zeqA== 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=2/Jdy09Ngzrc9H+McTN0HQX8j+dtB6gdsKHqTfkZZIg=; b=T3rbmwSocUi5GS4qLTO6JyIty4AIpTYw/cWUYQBxKk4nuv3xZAoau8MwXirpgpWaQ5 hTva/wJUqym7GQRYVdlSBax8ZqJaH//uuSGz+PT0MM9OfnXlkzkbKeHae+o9fYlwcCM4 jpJ/hrn7YMzgHT7h5ZyOWbQVUni36hhSxBl0TT2GC92TJ4EhS18eFlekpVLDgWXuanYu Y+fCQeogV6xrU0ddw2ykaK1xa15OFTGo1m7i8NGQP1IsHLXOYzZ5j0fqIfZoBvsUyUAh 7VYq/3Jo3WKZ9AyooJZ2gmdSD3+iShIb3bd06JJOYHMNsL4kLYhuoxfZbVPdw/iXsO3u wcyQ== X-Gm-Message-State: AKwxyteLXavtnHqt+3+cneAQUe1xNU+HER+KDFRyRje1ZmvoqWn4HqjR fWIXPuLG4CKR5HsPF7GgiGcop0tV6TXEoFwiRLdeGw== X-Google-Smtp-Source: ACJfBoucjObdlBM5imhtOWh5EEd3XyviguU7ZnO6WXl+LcvXSixk3tVy5tXog9iVM9Gaid0a7p6cAa7S4SnvvertNZ8= X-Received: by 10.176.78.147 with SMTP id l19mr23605188uah.96.1515908438387; Sat, 13 Jan 2018 21:40:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.131.149 with HTTP; Sat, 13 Jan 2018 21:39:57 -0800 (PST) In-Reply-To: References: From: Henry Hu Date: Sun, 14 Jan 2018 00:39:57 -0500 Message-ID: Subject: Re: msdosfs_iconv To: blubee blubeeme 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:40:40 -0000 On Sun, Jan 14, 2018 at 12:20 AM, blubee blubeeme wrote: > > > 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. > I just inserted a USB drive, and created /tmp/y for testing, which is owned by my user. I can access /dev/da1p1 as my user. Do you mean that if you have mounted & unmounted as root once, you can mount as regular user? Maybe that changes something, like loaded a kernel module? Maybe you can compare kldstat output? -- Cheers, Henry