Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dificuldade em montar pendrive com label fixo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
frazzon
n00b
n00b


Joined: 21 Jul 2009
Posts: 2

PostPosted: Tue Jul 21, 2009 8:00 pm    Post subject: Dificuldade em montar pendrive com label fixo Reply with quote

Boa Tarde!

Gostaria da ajuda de todos com as configurações das regras do hal-0.5-11-r8.

Quando plugo o pendrive no computador ele tem que mountar com o caminho /media/pendrive..uso hal + halevt...adicionei as linha :
<match key="volume.label" empty=" false">
<merge key="volume.label" type="string">pendrive</merge>
</match>
no arquivo /usr/share/hal/fdi/policy/10ovendor/20-storage-metods.fdi

O problema que está acontecendo é que quando coloco um pendrive que nao tem label ....ele mounta com o caminho default do hal.....no caso /media/disk

Alguem tem alguma ideia de como fazer com que o hal monte o caminho fixo /media/pendrive para pendrives com label e sem label??

obrigado
Back to top
View user's profile Send private message
frazzon
n00b
n00b


Joined: 21 Jul 2009
Posts: 2

PostPosted: Wed Jul 22, 2009 6:03 pm    Post subject: Resolvido Reply with quote

Topic: Dificuldade em montar pendrive com label fixo
Reason:

Após várias tentativos consegui realizar a montagem dos dispositivos sem label e com label:

Adicionar estas linhas no arquivos 20-storage-methods em /usr/share/hal/fdi/policy/10osvendor/

<!-- Adicionar nome pendrive aos dispositivos-->
<match key="info.category" string="volume">
<merge key="volume.label" type="string">pendrive</merge>
<merge key="volume.policy.desired_mount_point" type="string">pendrive</merge>
</match>

[/b]
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7212
Location: Pelotas, BR

PostPosted: Thu Jul 23, 2009 12:30 am    Post subject: Reply with quote

cuidado com o botao de reportar.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum