jumphaa.blogg.se

Change volume serial number linux
Change volume serial number linux











change volume serial number linux change volume serial number linux

# For FAT32 filesystems (modern flash drives)ĭd if= /dev/sdb1 skip= 67 bs=1 count=4 | hexdump -v -e '1/1 "%02X" " "' | xargs perl -e print "Serial Number: $_$_-$_$_\n"' Here are a couple of one-liners you can run in a Unix terminal. So, with the handy dd utility that comes standard on pretty much any Unix-like system, you can extract this information and display it. In FAT12 and FAT16 (used with floppy disks), the ID begins at byte offset 0x27 (39 in decimal) in FAT32 (used with flash drives and external hard drives), the ID begins at 0x43 (67 in decimal). These serial numbers are assigned when the drive is formatted reformatting a floppy disk or flash drive will give it a different serial number.Īccording to The Wikipedia, the serial number (ID) is kept in two different places on the partition depending on the version of FAT being used. Suppose you're using a Windows system, have a floppy disk at drive A:/ and a regular USB flash drive at E:/, and you run these commands in the command prompt: There's not a lot of information about this on The Google, so hopefully this blog will help anyone who wants to know how to get the serial number of a FAT partition from within a Unix-like operating system (including Linux and Mac OS X).įirst, this is what I mean about serial numbers.













Change volume serial number linux