iocharset for vfat mount on kernel 4.14

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question









New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • 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















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?










share|improve this question









New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • 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













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?










share|improve this question









New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question









New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 20 at 16:23









Rui F Ribeiro

38.2k1475125




38.2k1475125






New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 20 at 16:23









Costas

11




11




New contributor




Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Costas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • 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










  • 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
















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Costas is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















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






























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.









 

draft saved


draft discarded


















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.













 


draft saved


draft discarded














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





















































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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay