View previous topic :: View next topic |
Author |
Message |
Onip Advocate


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 |
|
 |
X-Drum Advocate


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 |
|
 |
Onip Advocate


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 |
|
 |
fat_penguin Apprentice


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 |
|
 |
gutter Bodhisattva


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 |
|
 |
Onip Advocate


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 |
|
 |
randomaze Bodhisattva


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 |
|
 |
Onip Advocate


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 |
|
 |
|