Hardware/USB/Key/Label
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>