LINUX.ORG.RU

История изменений

Исправление ZenitharChampion, (текущая версия) :

Кстати, а как нучить HAL монтировать exfat с теми же параметрами, с которыми у меня смонтирован NTFS? Я пробовал взять конфиг от NTFS-3G, и поменять везде слово «ntfs-3g» на «exfat». Не работает! Вот два конфига:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
   <device>
       <match key="volume.fstype" string="exfat">
           <match key="@block.storage_device:storage.hotpluggable" bool="true">
               <merge key="volume.fstype" type="string">exfat</merge>
               <merge key="volume.policy.mount_filesystem" type="string">exfat</merge>

               <append key="volume.mount.valid_options" type="strlist">dmask=</append>
               <append key="volume.mount.valid_options" type="strlist">fmask=</append>
               <append key="volume.mount.valid_options" type="strlist">silent</append>
               <append key="volume.mount.valid_options" type="strlist">uid=</append>
               <append key="volume.mount.valid_options" type="strlist">gid=</append>
               <append key="volume.mount.valid_options" type="strlist">allow_other</append>

               <merge key="volume.policy.mount_option.dmask=0002" type="bool">true</merge>
               <merge key="volume.policy.mount_option.fmask=0003" type="bool">true</merge>
               <merge key="volume.policy.mount_option.uid=1000" type="bool">true</merge>
               <merge key="volume.policy.mount_option.gid=1000" type="bool">true</merge>
               <merge key="volume.policy.mount_option.allow_other" type="bool">true</merge>
               <merge key="volume.policy.mount_option.silent" type="bool">true</merge>

           </match>
       </match>
   </device>
</deviceinfo>
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
   	<match key="volume.fstype" string="exfat">
        <append key="volume.fstype.alternative" type="copy_property">volume.fstype</append>
        <merge key="volume.mount.exfat.valid_options" type="copy_property">volume.mount.valid_options</merge>
        <merge key="volume.unmount.exfat.valid_options" type="copy_property">volume.unmount.valid_options</merge>
        <merge key="volume.fstype" type="string">exfat</merge>
       	<append key="volume.mount.valid_options" type="strlist">default_permissions</append>
       	<append key="volume.mount.valid_options" type="strlist">umask=</append>
       	<append key="volume.mount.valid_options" type="strlist">fmask=0003</append>
       	<append key="volume.mount.valid_options" type="strlist">dmask=0002</append>
       	<append key="volume.mount.valid_options" type="strlist">uid=1000</append>
       	<append key="volume.mount.valid_options" type="strlist">gid=100</append>
       	<append key="volume.mount.valid_options" type="strlist">silent</append>
       	<merge key="volume.unmount.valid_options" type="strlist">lazy</merge>
       	<merge key="volume.policy.mount_filesystem" type="string">exfat</merge>
	</match>
  </device>
</deviceinfo>

Исходная версия ZenitharChampion, :

Кстати, а как нучить HAL монтировать exfat с теми же параметрами, с которыми у меня смонтирован NTFS? Я пробовал взять конфиг от NTFS-3G, и поменять везде слово «ntfs-3g» на «exfat». Не работает! Вот два конфига:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
   <device>
       <match key="volume.fstype" string="exfat">
           <match key="@block.storage_device:storage.hotpluggable" bool="true">
               <merge key="volume.fstype" type="string">exfat</merge>
               <merge key="volume.policy.mount_filesystem" type="string">exfat</merge>

               <append key="volume.mount.valid_options" type="strlist">dmask=</append>
               <append key="volume.mount.valid_options" type="strlist">fmask=</append>
               <append key="volume.mount.valid_options" type="strlist">silent</append>
               <append key="volume.mount.valid_options" type="strlist">uid=</append>
               <append key="volume.mount.valid_options" type="strlist">gid=</append>
               <append key="volume.mount.valid_options" type="strlist">allow_other</append>

               <merge key="volume.policy.mount_option.dmask=0002" type="bool">true</merge>
               <merge key="volume.policy.mount_option.fmask=0003" type="bool">true</merge>
               <merge key="volume.policy.mount_option.uid=1000" type="bool">true</merge>
               <merge key="volume.policy.mount_option.gid=1000" type="bool">true</merge>
               <merge key="volume.policy.mount_option.allow_other" type="bool">true</merge>
               <merge key="volume.policy.mount_option.silent" type="bool">true</merge>

           </match>
       </match>
   </device>
</deviceinfo>
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
   	<match key="volume.fstype" string="exfat">
        <append key="volume.fstype.alternative" type="copy_property">volume.fstype</append>
        <merge key="volume.mount.exfat.valid_options" type="copy_property">volume.mount.valid_options</merge>
        <merge key="volume.unmount.exfat.valid_options" type="copy_property">volume.unmount.valid_options</merge>
        <merge key="volume.fstype" type="string">exfat</merge>
       	<append key="volume.mount.valid_options" type="strlist">default_permissions</append>
       	<append key="volume.mount.valid_options" type="strlist">umask=</append>
       	<append key="volume.mount.valid_options" type="strlist">fmask=0003</append>
       	<append key="volume.mount.valid_options" type="strlist">dmask=0002</append>
       	<append key="volume.mount.valid_options" type="strlist">uid=1000</append>
       	<append key="volume.mount.valid_options" type="strlist">gid=100</append>
       	<append key="volume.mount.valid_options" type="strlist">silent</append>
       	<merge key="volume.unmount.valid_options" type="strlist">lazy</merge>
       	<merge key="volume.policy.mount_filesystem" type="string">exfat</merge>
	</match>
  </device>
</deviceinfo>