How do I add the "Read Only" and "UTF-8" option when automounting a USB or SD card?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How do I add the "Read Only" and "UTF-8" option when automounting a USB or SD card?

ソリューションへジャンプ
808件の閲覧回数
Takashi_Kashiwagi
Senior Contributor I

Hi Community!

We have using IMX8MM and yocto Linux 4.19.

I want to add the "Read Only", "Sync"  and "UTF-8" option when automounting a USB / SD card.

(ex : $ mount -o ro,sync,utf8 ~~ ~~)

 

Is there any good solution?

 

----

I modified the line 

MOUNT="$MOUNT -o umask=007,gid=`awk -F':' '/^disk/{print $3}' /etc/group`"

in "automount" function in "/etc/udev/scripts/mount.sh".But it didn't work.

 

Takashi Kashiwagi

Best Regards,

ラベル(3)
0 件の賞賛
1 解決策
795件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Takashi

 

this is general linux question and may be recommended to post it on kernel mail list :

http://vger.kernel.org/vger-lists.html

 

Best regards
igor

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
796件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Takashi

 

this is general linux question and may be recommended to post it on kernel mail list :

http://vger.kernel.org/vger-lists.html

 

Best regards
igor

0 件の賞賛
791件の閲覧回数
Takashi_Kashiwagi
Senior Contributor I

Hi igor-san

 

thank you for your reply.

First,  I will check the kernel mail list.

 

Best Regards,

Takashi Kashiwagi

0 件の賞賛
712件の閲覧回数
Takashi_Kashiwagi
Senior Contributor I

Hi Community.

I forgot to write the solution, so I will write it.

 

The files to be modified are the following files.
"sources / poky / meta / recipes-core / udev / udev-extraconf / mount.sh"

 

I added the "ro, utf8, sync" option to the "mount" command in the above file.

 

Best Regards,

T.Kashiwagi

0 件の賞賛