Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create lower case FAT volume names Storage Devices
Note: Please see comments for a safer method of doing this!

Have you ever been annoyed by those ugly capital letters in your USB drive's names? Well I was and here's how I fixed it:
  1. Locate your device: Open up Disk Utility and select the drive. Click on Info, and copy the device name, e.g.: disk2s1.
  2. Deactivate the disk (Do not Eject it).
  3. Open up a Terminal window, do a hexdump on the device name you just found, and grep for the current volume name:
    $ hexdump -C /dev/disk2s1 | grep "Pablo"
    00000040  80 00 29 08 ac 67 54 50  61 62 6c 6f 27 73 20 4b  |..).?gTPABLO'S K|
    010000e0  50 61 62 6c 6f 27 73 20  4b 65 79 08 00 00 18 bc  |PABLO'S KEY....?|
  4. Create a text file containing the new label: echo "Pablo's Key" > input
  5. Replace the old label with the new one using dd:
    $ dd if=input bs=1 count=11 seek=0x47 conv=notrunc of=/dev/disk2s1
    $ dd if=input bs=1 count=11 seek=0x10000e0 conv=notrunc of=/dev/disk2s1
    Note: Set the count value to the label's length. Remember that a FAT drive label cannot be longer than 11 characters.
  6. Run a new hexdump to verify:
    $ hexdump -C /dev/disk2s1 | grep "Pablo"
    00000040  80 00 29 08 ac 67 54 50  61 62 6c 6f 27 73 20 4b  |..).?gTPablo's K|
    010000e0  50 61 62 6c 6f 27 73 20  4b 65 79 08 00 00 18 bc  |Pablo's Key....?|
And as always, proceed at your own risk and back up any data on the drive before proceeding. You can find more detail on this, including some screenshots, in this MacRumors forum thread.
    •    
  • Currently 1.33 / 5
  You rated: 4 / 5 (12 votes cast)
 
[10,288 views]  

Create lower case FAT volume names | 11 comments | Create New Account
Click here to return to the 'Create lower case FAT volume names' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create lower case FAT volume names
Authored by: simonpie on May 07, '09 07:45:47AM

Is it me or the orginal hexdump output was already lowcase ?



[ Reply to This | # ]
Create lower case FAT volume names
Authored by: jagboy on May 07, '09 08:06:19AM

The original hexdump should be UPPER CASE, just like in the forum post on macrumors!



[ Reply to This | # ]
Create lower case FAT volume names
Authored by: fracai on May 07, '09 10:17:31AM
The aforementioned thread.

http://forums.macrumors.com/showthread.php?t=677658

---
i am jack's amusing sig file

[ Reply to This | # ]

Create lower case FAT volume names
Authored by: fracai on May 07, '09 10:18:41AM

delete - delete - delete - delete

*sigh*

---
i am jack's amusing sig file



[ Reply to This | # ]
Create lower case FAT volume names
Authored by: robg on May 07, '09 11:07:14AM

I published this as it arrived, which had it in lower case in both spots. I've edited it now, though.

-rob.



[ Reply to This | # ]
Create lower case FAT volume names
Authored by: mantrid on May 07, '09 12:03:16PM

Don't forget to edit the hex -- 50 41 42 4c 4f etc.



[ Reply to This | # ]
*WARNING* Create lower case FAT volume names
Authored by: tempel on May 07, '09 10:33:47AM

Using the fixed offset in the second "dd" command, i.e. "seek=0x10000e0" is VERY DANGEROUS and could destroy other data.

This offset was probably found be the poster empirically, i.e. meaning that this offset works right for the USB disk(s) he has tried, but larger/smaller disks, or those formatted by another computer system, may not have the same layout, and thus this action will overwrite some random data.

I'll post safer instructions soon here

Thomas (author of "iBored")



[ Reply to This | # ]
*WARNING* Create lower case FAT volume names
Authored by: jagboy on May 07, '09 02:13:43PM

Hence the hex dump... Sorry I didn't make this clear. I did this on an empty volume. If you have a directory named after your volume name or a text file what so ever with that particular string you might get ... a "couple" more offsets which you should not overwrite!



[ Reply to This | # ]
*WARNING* Create lower case FAT volume names
Authored by: tempel on May 08, '09 02:28:05AM

I believe you don't understand what I am saying:

This is not about other accidentally found locations, this is about the location at offset 0x10000e0. This is where YOU found the root dir and its volume label therein. But on other disks both the location of the root dir and the relative location of its label may be different.

Your hex dump, though, only checks for the label in the volume's master block, which is more likely at a constant location (but even that's not always the case). Your instructions do not even suggest that the second location that you're patching (which is actually the only one that needs changing) needs to be verified with a hex dump as well!



[ Reply to This | # ]
Create lower case FAT volume names - easier with iBored
Authored by: tempel on May 07, '09 10:51:59AM
For those uncomfortable with command line tools, this can also be done more easily with my tool "iBored" (see http://apps.tempel.org/iBored/):
  1. Insert the USB stick or whatever FAT formatted disk you want to modify
  2. With the disk appearing on your desktop, rename it to an 8-character long name of a particular name. I suggest naming it "ASDFGHJK". This is necessary so that we can search for it, avoiding any other things found by accident.
  3. Launch iBored - a window called "Disks - local" opens.
  4. Select the disk from the list (it will list "FAT" in the "Volumes" column)
  5. From the menu, choose Disk -> View Partitions (or press Command-Shift-D) - a new window listing the partitions opens.
  6. Double click the partition listed with a "FAT" File System - a new window appears
  7. At this time, we'll have to find the right location for where the volume name is stored. This may appear in several places. We'll go search it now:
  8. Press Command-F to open the Find window. Enter "ASDFGHJK" (i.e. the name of the disk) and also check the "Case sensitive" box. The start the Find.
  9. The name will probably be found immediately, at Block 0. After the disk name, you'll see "FAT32" a line further down. Ignore this occurance and press Command-G to search further.
  10. Next found occurance will show the name appear leftbound, with other names from the disk's root folder below it, usually. That's the one we were looking for (it's the root directory with the Volume Label entry).
  11. To alter that name now, do this:
    1. Before you can change the text, choose from menu: BlockView -> Make Writable
    2. Click in the right text area onto the first charater of the current name, e.g. where it says "ASDFGHJK". The text cursor should appear as a blinking "_" sign now, telling you it's in overwrite (vs. insert) mode.
    3. Type the new name. Make sure to alter only up to 11 characters. To erase old characters, overwrite them with a blank character (space bar).
    4. If all looks good (note that switching to "Template" view will not show the newly typed name yet), click the "Save" button. Otherwise click on "Revert" to undo your changes.
  12. Quit iBored. The disk should now reappear on your desktop, with the new name.
Hope that helps.

[ Reply to This | # ]
Create lower case FAT volume names
Authored by: larryo on May 07, '09 01:36:24PM

This seems pretty dangerous to me, too much room for error.



[ Reply to This | # ]