in reply to How to get a USB-drive label

For me, this is the easiest way:
#!/usr/bin/perl use strict; use warnings; system("fdisk -l /dev/sda");