Hardware/USB/Key/Label

De TartareFR
Version datée du 18 décembre 2012 à 09:43 par Didier (discussion | contributions) (→‎vfat)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

EXT2/3/4 partitions

Set Label KEY_1G to USB Key

e2label /dev/<drive> KEY_1G

Get Label from USB Key

e2label /dev/<drive>

FAT/FAT32 partitions

This is done with the mlabel tool from the mtools package

Set Label KEY_1G to USB Key

mlabel -i /dev/<drive> ::KEY_1G

Get Label from USB Key

mlabel -s -i /dev/<drive> ::

NTFS partitions

Set Label KEY_1G to USB Key

ntfslabel -f /dev/<drive> KEY_1G

Get Label from USB Key

ntfslabel /dev/<drive>