Derek Jennings ([EMAIL PROTECTED]) wrote:
> I just got my daughter an MP3 player. It is an MPeye 5 GB model, and very 
> nice 
> it is too. Plays Ogg, No DRM, No host software.  
> (Interesting how today we rate a product by the features it lacks :-)
> 
> When I plug it into my USB2 port it is recognised perfectly and comes up 
> as /mnt/removable and everything works 'out of the box'
> 
> The only problem I have is that when I delete a file on the mp3player it does 
> not really get deleted unless I perform a 'sync'
> Now I know this, but I cannot count on my daughter remembering to do it, so I 
> would like to add the 'sync' option to the fstab entry that is automatically 
> created when I plug the player in.
> 
> Trouble is this new 'hal' system is confusing and I do not know where the 
> default configuration for usb-storage is kept.
> 
> Can anyone enlighten me?
> Thanks
> derek

After looking into fstab-sync, updates the fstab,
I checked the manpage for fstab-sync(8) and this file for default
devices: /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi

There is a line in this file that seems to apply to your situation 
(line number: 158)
"Use noatime and sync options for all hotpluggable or removable volumes
 smaller than 2GB" 

As part of that block, the relevant line to be added in order to get
the desired change you need ... it would seem:
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>

Also from file: /usr/share/doc/hal-0.4.7/storage-policy-examples.fdi
---8<-----------------

<!-- Example: Match a volume from an USB Storage Based mp3 player
              by the file system UUID and assign a mount point.

              NB: When reformatting the volume a new UUID will be
              used and this rule will have to be altered -->
<device>
  <match key="block.is_volume" bool="true">
    <match key="volume.fsusage" string="filesystem">
      <match key="volume.uuid" string="4150-3F34">
        <merge key="volume.policy.desired_mount_point" 
type="string">my_mp3_player</merge>
      </match>
    </match>
  </match>
</device>

---8<-----------------

But I can't seem to find any info on what file this would go in?
Here /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi
or in the /usr/share/hal/fdi tree
[EMAIL PROTECTED] /usr/share/hal/fdi #> tree
.
|-- [root            4096]  10generic
|-- [root            4096]  20freedesktop
|   |-- [root             636]  6in1-card-reader.fdi
|   |-- [root            3605]  ide-drives.fdi
|   |-- [root             770]  jetflash-mp3-player.fdi
|   |-- [root             392]  lexar-media-cf-reader.fdi
|   |-- [root             642]  lucent-pcmcia-wireless.fdi
|   `-- [root             563]  usb-zip-drives.fdi
|-- [root            4096]  30osvendor
|   |-- [root            1451]  locale-policy.fdi
|   `-- [root             393]  usb-disable-mediacheck.fdi
|-- [root            4096]  40oem
|-- [root            4096]  50user
|-- [root            4096]  90defaultpolicy
|   `-- [root           10465]  storage-policy.fdi
|-- [root            4096]  95userpolicy
|-- [root             603]  fdi.dtd
`-- [root            1631]  fdi.rng

Knowing you know more than I, I hope I gave ya some ideas ..and
someone can shed more light ..
-- 
RickS

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to