View previous topic :: View next topic |
Author |
Message |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Wed Apr 27, 2005 9:42 am Post subject: Assegnare "Etichette" alle periferiche [Risolto] |
|
|
Sotto win avevo battezzato, per sfizio, Onip la mia chiavetta Usb (credo cambiando l'etichetta al volume). Con mia grande sorpresa gnome-volume-manager mi crea un'icona sul desktop che si chiama Onip quando la attacco. Adesso vorrei fare lo stesso con fotocamera e lettore mp3, è possibile in qualche modo? _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Last edited by Onip on Thu Apr 28, 2005 2:12 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
X-Drum Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1870365650443690caa453e.png)
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Wed Apr 27, 2005 10:16 am Post subject: |
|
|
l'etichetta della chiavetta è appunto il label assegnato all'fs (fat suppongo) della chiave,
se è possibile formattare o agire come su un volume qualsiasi sulla fotocamera e sul
lettore mp3 cambia label.
nessuna sorpresa cmq gnome-volume-manager recupera queste informazioni
normalmente quando monta i dispositivi se disponibili _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Wed Apr 27, 2005 10:23 am Post subject: |
|
|
ehm.... come la cambio la label? _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fat_penguin Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/18209437454230a6e886bb4.jpg)
Joined: 25 Jul 2004 Posts: 294 Location: sud side of Switzerland
|
Posted: Wed Apr 27, 2005 10:58 am Post subject: |
|
|
Un'alternativa, se usi UDEV, è quella di rinominare addirittura il device.
Per la mia penna USB ho creato questo file
Code: | cat /etc/udev/rules.d/30-usb.rules
BUS="usb",SYSFS{manufacturer}="Apacer",SYSFS{product}="HandyDrive",NAME="usbpen%n" |
e quando attacco la mia penna mi trovo il device
se poi vuoi fargli montare la penna in automatico, crei il file
Code: | cat /etc/dev.d/usbpen/usbpen.dev
#!/bin/bash
sleep 5
mount -o uid=1000,gid=100 -v /mnt/usb >> /home/nbianchi/udevmount.log |
byebye
fat_penguin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Apr 27, 2005 9:44 pm Post subject: |
|
|
Onip wrote: | ehm.... come la cambio la label? |
oppure
_________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Thu Apr 28, 2005 2:11 pm Post subject: |
|
|
quelli, se non sbaglio sono per fs ext2\3. a me seriva un'utility per dos. ho risolto con
Code: | # emerge dosfstools
mkdosfs /path/to/device/ -n etichetta |
_________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Thu Apr 28, 2005 2:24 pm Post subject: |
|
|
Onip wrote: | quelli, se non sbaglio sono per fs ext2\3. a me seriva un'utility per dos. ho risolto con
Code: | # emerge dosfstools
mkdosfs /path/to/device/ -n etichetta |
|
Cioé formatti tutto per mettere una label ?
Ho un vago ricordo che mi suggerisce che forse dovrebbe essere possibile anche farlo con dd (passando i vari offset corretti, naturalmente), prova a cercare con google se trovi qualcosa.
EDIT: Forse ricordo male... in ogni caso c'é il comando mlabel negli mtools (sys-fs/mtools) che sicuramente é meglio del formattare... _________________ Ciao da me!
Last edited by randomaze on Thu Apr 28, 2005 2:29 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Onip Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/14414636074b138f3ed54ce.png)
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Thu Apr 28, 2005 2:26 pm Post subject: |
|
|
tanto erano vuoti..... io cercavo una soluzione sbrigativa . cmq x la prossima periferica (fotocamera) proverò così _________________ Linux Registered User n. 373835
Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|