iocharset for vfat mount on kernel 4.14
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm using Slackware 14.2 (kernel 4.14.32) and I need to force mount to use iocharset=iso8859-7 (Greek) by default when it dynamically mounts a USB device, either from command line or via KDE.
I'm interested to set it for any device.
I have seen several answers to similar questions but all I checked till now talk about editing /etc/fstab. This way I can control iocharset for specific devices with known UUIDs.
I'm not interested on this, I need it for the random USB device that may be connected.
I read one answer to create mount.vfat that calls mount with proper parameters. I tried but it is not called when KDE for example mounts a USB stick. When I call it manually it works fine.
The only answer I saw that looks relevant is one proposing to create a wrapper mount command that checks filesystem and if it is VFAT then call original mount with appropriate parameters.
It's almost sure that this will work but it looks to tricky to me. I wonder if there is any more straight method.
Any different ideas?
mount slackware
New contributor
add a comment |
up vote
0
down vote
favorite
I'm using Slackware 14.2 (kernel 4.14.32) and I need to force mount to use iocharset=iso8859-7 (Greek) by default when it dynamically mounts a USB device, either from command line or via KDE.
I'm interested to set it for any device.
I have seen several answers to similar questions but all I checked till now talk about editing /etc/fstab. This way I can control iocharset for specific devices with known UUIDs.
I'm not interested on this, I need it for the random USB device that may be connected.
I read one answer to create mount.vfat that calls mount with proper parameters. I tried but it is not called when KDE for example mounts a USB stick. When I call it manually it works fine.
The only answer I saw that looks relevant is one proposing to create a wrapper mount command that checks filesystem and if it is VFAT then call original mount with appropriate parameters.
It's almost sure that this will work but it looks to tricky to me. I wonder if there is any more straight method.
Any different ideas?
mount slackware
New contributor
search for udevadm
– Rui F Ribeiro
Nov 20 at 16:24
I tested the solution with the wrapper mount command script and works fine under CLI. Unfortunately under CLI it is not of great help as from CLI you can always do whatever you like. KDE/plasma does not seem to call mount using the same way as CLI so it does not call my wrapper script. So now the question becomes: How KDE/plasma calls mount command? If I find out how it does and/or where the parameters for this call are set then I'll be able to intercept (hopefully) this call and pass the extra parameters I need.
– Costas
Nov 20 at 18:09
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using Slackware 14.2 (kernel 4.14.32) and I need to force mount to use iocharset=iso8859-7 (Greek) by default when it dynamically mounts a USB device, either from command line or via KDE.
I'm interested to set it for any device.
I have seen several answers to similar questions but all I checked till now talk about editing /etc/fstab. This way I can control iocharset for specific devices with known UUIDs.
I'm not interested on this, I need it for the random USB device that may be connected.
I read one answer to create mount.vfat that calls mount with proper parameters. I tried but it is not called when KDE for example mounts a USB stick. When I call it manually it works fine.
The only answer I saw that looks relevant is one proposing to create a wrapper mount command that checks filesystem and if it is VFAT then call original mount with appropriate parameters.
It's almost sure that this will work but it looks to tricky to me. I wonder if there is any more straight method.
Any different ideas?
mount slackware
New contributor
I'm using Slackware 14.2 (kernel 4.14.32) and I need to force mount to use iocharset=iso8859-7 (Greek) by default when it dynamically mounts a USB device, either from command line or via KDE.
I'm interested to set it for any device.
I have seen several answers to similar questions but all I checked till now talk about editing /etc/fstab. This way I can control iocharset for specific devices with known UUIDs.
I'm not interested on this, I need it for the random USB device that may be connected.
I read one answer to create mount.vfat that calls mount with proper parameters. I tried but it is not called when KDE for example mounts a USB stick. When I call it manually it works fine.
The only answer I saw that looks relevant is one proposing to create a wrapper mount command that checks filesystem and if it is VFAT then call original mount with appropriate parameters.
It's almost sure that this will work but it looks to tricky to me. I wonder if there is any more straight method.
Any different ideas?
mount slackware
mount slackware
New contributor
New contributor
edited Nov 20 at 16:23
Rui F Ribeiro
38.2k1475125
38.2k1475125
New contributor
asked Nov 20 at 16:23
Costas
11
11
New contributor
New contributor
search for udevadm
– Rui F Ribeiro
Nov 20 at 16:24
I tested the solution with the wrapper mount command script and works fine under CLI. Unfortunately under CLI it is not of great help as from CLI you can always do whatever you like. KDE/plasma does not seem to call mount using the same way as CLI so it does not call my wrapper script. So now the question becomes: How KDE/plasma calls mount command? If I find out how it does and/or where the parameters for this call are set then I'll be able to intercept (hopefully) this call and pass the extra parameters I need.
– Costas
Nov 20 at 18:09
add a comment |
search for udevadm
– Rui F Ribeiro
Nov 20 at 16:24
I tested the solution with the wrapper mount command script and works fine under CLI. Unfortunately under CLI it is not of great help as from CLI you can always do whatever you like. KDE/plasma does not seem to call mount using the same way as CLI so it does not call my wrapper script. So now the question becomes: How KDE/plasma calls mount command? If I find out how it does and/or where the parameters for this call are set then I'll be able to intercept (hopefully) this call and pass the extra parameters I need.
– Costas
Nov 20 at 18:09
search for udevadm
– Rui F Ribeiro
Nov 20 at 16:24
search for udevadm
– Rui F Ribeiro
Nov 20 at 16:24
I tested the solution with the wrapper mount command script and works fine under CLI. Unfortunately under CLI it is not of great help as from CLI you can always do whatever you like. KDE/plasma does not seem to call mount using the same way as CLI so it does not call my wrapper script. So now the question becomes: How KDE/plasma calls mount command? If I find out how it does and/or where the parameters for this call are set then I'll be able to intercept (hopefully) this call and pass the extra parameters I need.
– Costas
Nov 20 at 18:09
I tested the solution with the wrapper mount command script and works fine under CLI. Unfortunately under CLI it is not of great help as from CLI you can always do whatever you like. KDE/plasma does not seem to call mount using the same way as CLI so it does not call my wrapper script. So now the question becomes: How KDE/plasma calls mount command? If I find out how it does and/or where the parameters for this call are set then I'll be able to intercept (hopefully) this call and pass the extra parameters I need.
– Costas
Nov 20 at 18:09
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Costas is a new contributor. Be nice, and check out our Code of Conduct.
Costas is a new contributor. Be nice, and check out our Code of Conduct.
Costas is a new contributor. Be nice, and check out our Code of Conduct.
Costas is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483003%2fiocharset-for-vfat-mount-on-kernel-4-14%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
search for udevadm
– Rui F Ribeiro
Nov 20 at 16:24
I tested the solution with the wrapper mount command script and works fine under CLI. Unfortunately under CLI it is not of great help as from CLI you can always do whatever you like. KDE/plasma does not seem to call mount using the same way as CLI so it does not call my wrapper script. So now the question becomes: How KDE/plasma calls mount command? If I find out how it does and/or where the parameters for this call are set then I'll be able to intercept (hopefully) this call and pass the extra parameters I need.
– Costas
Nov 20 at 18:09