Discussion:
msdosfs_iconv
(too old to reply)
blubee blubeeme
2018-01-14 02:10:05 UTC
Permalink
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.

Is there a way to set locale when using mount_msdosfs without sudo?
Henry Hu
2018-01-14 03:53:49 UTC
Permalink
Post by blubee blubeeme
This is a repost from freebsd-question; Hoping to get more exposure and
help here.
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?
Post by blubee blubeeme
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-current
--
Cheers,
Henry
blubee blubeeme
2018-01-14 03:56:43 UTC
Permalink
Post by blubee blubeeme
Post by blubee blubeeme
This is a repost from freebsd-question; Hoping to get more exposure and
help here.
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?
Post by blubee blubeeme
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-current
"
--
Cheers,
Henry
Yes, /etc/rc.conf has this line:
kld_list="nvidia-modeset msdosfs_iconv"
Henry Hu
2018-01-14 04:16:14 UTC
Permalink
Post by blubee blubeeme
Post by blubee blubeeme
Post by blubee blubeeme
This is a repost from freebsd-question; Hoping to get more exposure and
help here.
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?
Post by blubee blubeeme
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-current
reebsd.org"
--
Cheers,
Henry
kld_list="nvidia-modeset msdosfs_iconv"
I just tried that and it works. I can create filenames in Chinese on the
mounted drive.
Post by blubee blubeeme
mount_msdosfs -L zh_CN.UTF-8 /dev/da1p1 /tmp/y
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
blubee blubeeme
2018-01-14 05:20:58 UTC
Permalink
Post by Henry Hu
Post by blubee blubeeme
Post by blubee blubeeme
Post by blubee blubeeme
This is a repost from freebsd-question; Hoping to get more exposure and
help here.
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?
Post by blubee blubeeme
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-current
reebsd.org"
--
Cheers,
Henry
kld_list="nvidia-modeset msdosfs_iconv"
I just tried that and it works. I can create filenames in Chinese on the
mounted drive.
Post by blubee blubeeme
mount_msdosfs -L zh_CN.UTF-8 /dev/da1p1 /tmp/y
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
***@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.

Loading...