How to label partitions of USB HDDs
This is valid for the KDE desktop of kanotix 2005-04 and its release candidates.
Has been tested with kanotix 2005-04 rc 17.
Link to related topic ∞
The KDE desktop displays partitions on USB drives as: sda1?, sda2?, sdb1?, sdb2?, sdb3?, ...
The KDE desktop displays partitions on USB drives as: 10 GB, 50 GB, 34GB, 23 GB, 25GB , ...
Very hard to identify whats what:
Kanotix 2005-04, after labeling:
The KDE desktop displays partitions on USB drives as: old1?, old2?, new1?, new2?, new3?, ...
Of course you can be a bit more creative than me with the label names!
The solution is to label the partitions, to give them names.
After labeling just remove and reattach the USB cable or reboot the PC to see the new labels.
This does not work with partitions on the build-in HDD of my PC.
It seems one would have to edit the fstab (etc/fstb) file to.
Also every filesystem has its own commands for labeling.
Please add your experience with other filesystems!
Examples that worked for me:
For a ext3?
For a reiserfs
reiserfstune -l new2 /dev/sdb2
Details for reiserfs (3.6) partition:
root@kanotix:/home/jan# umount /dev/sdb2
root@kanotix:/home/jan# reiserfstune -l new2 /dev/sdb2
reiserfstune: Journal device has not been specified. Assuming journal is on the main device (/dev/sdb2).
Filesystem state: consistent
Reiserfs super block in block 16 on 0x812 of format 3.6 with standard journal
Count of blocks on the device: 14902288
Number of bitmaps: 455
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 14893622
Root block: 8211
Filesystem is clean
Tree height: 2
Hash function used to sort names: "r5"
Objectid map size 2, max 972
Size 8193 blocks (including 1 for journal header) (first block 18)
Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x0:
inode generation number: 0
Set flags in SB:
Details for ext3?
root@kanotix:/home/jan# e2label /dev/sda2 old2