Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Assegnare "Etichette" alle periferiche [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Wed Apr 27, 2005 9:42 am    Post subject: Assegnare "Etichette" alle periferiche [Risolto] Reply with quote

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
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed Apr 27, 2005 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Wed Apr 27, 2005 10:23 am    Post subject: Reply with quote

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
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Wed Apr 27, 2005 10:58 am    Post subject: Reply with quote

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
Code:
/dev/usbpen1


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
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Apr 27, 2005 9:44 pm    Post subject: Reply with quote

Onip wrote:
ehm.... come la cambio la label?


Code:
man e2label


oppure

Code:
man tune2fs

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Apr 28, 2005 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Apr 28, 2005 2:24 pm    Post subject: Reply with quote

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


8O 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
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Apr 28, 2005 2:26 pm    Post subject: Reply with quote

tanto erano vuoti..... io cercavo una soluzione sbrigativa :oops: . 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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