Re: msdosfs_iconv
blubee blubeeme wrote (2018/01/14): > if you first run the mount_msdosfs command as root, it'll load the locale > settings just fine. > If you logout or reboot and try to call mount_msdosfs -L [locale] as a > regular user; > The command will fail. If you have kiconvtool already installed and usermount set to 1, did you set also kiconv_preload="YES" kiconv_local_charsets="..." kiconv_foreign_charsets="..." in your /etc/rc.conf? Please look at EXAMPLES in man kiconvtool. -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: msdosfs_iconv
On Sun, Jan 14, 2018 at 1:39 PM, Henry Hu wrote: > > > 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 >>> 303 0x8506e000 458f libiconv.ko >>> 331 0x8507a000 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 r...@releng3.nyi.freebsd.org: >> /usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 >> >> kldstats >> 101 0x85e89000 806 msdosfs_iconv.ko >> 111 0x85e8a000 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 > if you first run the mount_msdosfs command as root, it'll load the locale settings just fine. If you logout or reboot and try to call mount_msdosfs -L [locale] as a regular user; The command will fail. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: msdosfs_iconv
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 >> 303 0x8506e000 458f libiconv.ko >> 331 0x8507a000 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 r...@releng3.nyi.freebsd.org: > /usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > > kldstats > 101 0x85e89000 806 msdosfs_iconv.ko > 111 0x85e8a000 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 ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: msdosfs_iconv
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 > 303 0x8506e000 458f libiconv.ko > 331 0x8507a000 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 r...@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 kldstats 101 0x85e89000 806 msdosfs_iconv.ko 111 0x85e8a000 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. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: msdosfs_iconv
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 303 0x8506e000 458f libiconv.ko 331 0x8507a000 801 msdosfs_iconv.ko But I'm using 11.1-STABLE. Maybe something changed? -- Cheers, Henry ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: msdosfs_iconv
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-unsubscr...@freebsd.org >> " >> > > > > -- > Cheers, > Henry > Yes, /etc/rc.conf has this line: kld_list="nvidia-modeset msdosfs_iconv" ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: msdosfs_iconv
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-unsubscr...@freebsd.org" > -- Cheers, Henry ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"