#StandWithUkraine

How to use custom icon for flash drive

icon_ducati

icon_ducati

I had previously voiced my fondness for fast and expensive flash drives . Windows is lacking in visuals when it comes to displaying attached drives, but it’s easily fixable by attaching custom icons for better usability.

Create icon

  1. Go to site of flash drive manufacturer and look for photos. They are not shy to include those so should be easy.
  2. Choose image that would remain recognizable when resized to small icon.
  3. Grab image and icon editors of your choice (I use Paint.NET and IcoFX , both covered in my screenshoting series).
  4. Make and save icon. You need 48x48 size for Windows XP. I think Vista supports larger sizes – icon format can hold few different sizes in single file.

icon_icofx_ducati

icon_icofx_ducati

Create settings

Create plain text file named autorun.inf with following content (replacing file name with what file you created):

[autorun]
icon=name.ico

Link for lazy https://www.rarst.net/script/autorun.inf

Autorun is widely used by viruses, some antiviruses overreact and kill it on sight – so create backup for such cases.

Put it all on drive

Copy icon and autorun to the root directory of your flash drive, unplug and next time you plug it in – it will have custom icon.

icon_results

icon_results

Related Posts

16 Comments

  • Klemen #

    Oh noes, my autorun is disabled :) I see you have the same "problem" with drive letters. Yesterday I came to letter "R" already, and 2 of my HDs were unplugged =) So here's a question for you... What happens when you reach "Z" and you plug in another usb key?
  • Rarst #

    @Klemen Hadn't checked but I assume icon is still supposed to show up with autorun disabled. Turning it off cancels autostart but not reading of autorun.inf... I think. :) Let me know if you can confirm or disprove this. If you are out of letters next connected drive would be detected but volume won't be mounted to letter.
  • Klemen #

    Well, I will try and report back! I believe icon will stay unchaned.
  • Klemen #

    Double post, sry :) I've tried with your favicon, and here's what happened: http://www.shrani.si/f/2X/oQ/3LAJmSrF/screenshot2406.jpg So I guess you are right and the icon tries to load even when autorun is disabled. The reason for the generic windows icon is probably in my partially corrupted registry (had some problems with acdsee, image associations were never the same again after that). Still, as a die-hard Total Commander fan, I need some other workaround to make my icons pretty :)
  • Rarst #

    @Klemen Maybe Vista just has trouble making sense of using 16x16 icon. ACDSee - ewww... I am staying away from it for years already. :) IrfanView rocks. Total Commander is completely awesome, wish it was freeware. :)
  • Klemen #

    Acdsee is the fastest raw viewer I know, tried many others, but I am always coming back, using it since version 3. Irfan's little piece of code indeed is very nice ( I have it installed), but it's just not enough for my humble needs :)
  • Rarst #

    @Klemen No idea about RAWs, last camera I owned (till it broke) was before digital age. :) Never bothered to buy new one.
  • Madmouse Blog #

    I often wondered how the process of making a icon was done. Looks very easy to do and directions are very good.
  • Rarst #

    @Madmouse It's not much different from image editing but usual image editors historically have little to none support for icons. IcoFX is nice, real life-saver when it comes to making images out of icons embedded in software executables as well. Drawing original icon is way out of my league but adaptiing existing image is easy. :)
  • Klemen #

    I am creating icons in Microangelo Studio (i own a VERY old copy, version 5.5), but you can also try: http://www.eisbox.net/iconvert/
  • Rarst #

    @Klemen Went to site of Studio and it looks like overkill. :) I tend to use simple tools (IcoFX) when I can get away with that. That online converter is nice, thanks! I had seen some mentions of it lately but hadn't checked till now.
  • Nihar #

    Nice trick. I remember doing all these kind of things on Windows 98 few years back.
  • Rarst #

    @Nihar Heh, Win98 was requiring drivers for flash drives, what a pain. :)
  • Cómo cambiar el ícono de un disco externo | Acceso Directo #

    [...] la imagen del producto. Hacerlo es sumamente sencillo, y aunque en mi caso fue muy intuitivo, en Rarst hicieron una guía excelente. Los pasos [...]
  • The DataRat #

    As long as we're on the subject, have you checked out Desk Drive ? http://blueonionsoftware.com/deskdrive.aspx The DataRat .
  • Rarst #

    @DataRat Heard about that one, but not much interested. I don't need it at my computers (file managers ftw)... What's best about creating icons for external drives that they stay with you through other people's PCs.