Close Menu
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn WhatsApp Telegram
Saturday, October 10
  • About
  • Contact
  • Advertise
  • Disclaimer
  • Privacy Policy
  • Editorial Policy
  • Tools
  • Games
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
JustwebworldJustwebworld
Home » Tech » How to set Icon On Hard Disk Drives

How to set Icon On Hard Disk Drives

Michael Austin Tech Updated:September 9, 2026
Michael Austin
By Michael AustinOwner and Editor
Updated Sep 9, 2026Published May 7, 20204 min read

Windows lets you change a folder icon from its Properties dialog, but drives have no such button. There are two ways round it, and which one you want depends on a single question: should the icon follow the drive to other computers, or stay on this one? An autorun.inf file travels with the drive. A registry entry stays with the PC. Both still work in Windows 10 and Windows 11.

  1. Method 1: autorun.inf, so the icon travels
  2. Method 2: the registry, for a fixed drive on this PC
  3. Getting a usable .ico file
  4. Putting it back
  5. Frequently asked questions
    1. Does the autorun.inf method still work in Windows 11?
    2. Why did nothing happen after I saved the file?
    3. Can I use a PNG or JPG instead of an .ico?
    4. Which method should I use?
    5. Will this work on a drive I have no write access to?
    6. Does changing a drive icon affect anything else?
  6. Related reading

Method 1: autorun.inf, so the icon travels

Best for external and USB drives you move between machines.

1. Put your .ico file in the root of the drive — not in a folder. A file such as drive.ico is fine.
2. Open Notepad and type these two lines:

[autorun]
icon=drive.ico

3. Save it into the root of the same drive. In the Save dialog set Save as type to All Files and name it autorun.inf, or Notepad will save it as autorun.inf.txt and nothing will happen.
4. Restart, or unplug and reconnect the drive.

The icon name in the file has to match your icon file exactly. Older guides insist the file must be called abc.ico — that was never true; the name simply has to match the line in the .inf.

Two caveats worth knowing. The .ico must stay on the drive, because the file is a pointer rather than a copy: delete it and the icon reverts. And this changes the icon only. Windows disabled AutoRun’s ability to launch programs from removable media years ago, for good security reasons, so an autorun.inf cannot make anything execute.

Method 2: the registry, for a fixed drive on this PC

Better for internal drives, and it does not require writing anything to the drive itself — useful if the drive is nearly full or read-only.

1. Press Windows + R, type regedit and press Enter.
2. Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons
3. Create a key named after the drive letter in capitals — D for D:.
4. Inside it, create a key named DefaultIcon.
5. Set that key’s (Default) value to the full path of your .ico file, for example C:\Icons\drive.ico.
6. Restart File Explorer or sign out and back in.

If DriveIcons does not exist under Explorer, create it. Editing the registry is worth a moment of care: right-click the Explorer key and choose Export first, so you have a file that puts things back.

Getting a usable .ico file

A renamed PNG will not work. Windows needs a genuine .ico, ideally a multi-resolution one containing 16, 32, 48 and 256 pixel versions, so the drive looks right in the Explorer list and in large-icon view. Converting a square PNG with a free icon converter takes seconds and gives a much better result than a single-size file, which Windows will scale badly.

Keep the icon somewhere permanent. Pointing at a file on the Desktop or in Downloads is how these setups quietly break.

Putting it back

For the autorun method, delete autorun.inf from the drive root. For the registry method, delete the drive-letter key you created under DriveIcons. In both cases restart File Explorer — end Windows Explorer in Task Manager and it restarts itself — and the default icon returns.

Frequently asked questions

Does the autorun.inf method still work in Windows 11?

Yes, for setting a drive icon. What Windows disabled long ago was AutoRun launching programs automatically from removable media; the icon and label directives still apply.

Why did nothing happen after I saved the file?

Almost always because Notepad saved it as autorun.inf.txt. Set Save as type to All Files and check that File Explorer is showing file extensions.

Can I use a PNG or JPG instead of an .ico?

No. Windows requires the .ico format. Renaming a PNG does not convert it — use a converter and keep several sizes inside the file.

Which method should I use?

Use autorun.inf for removable drives you want to look the same everywhere, and the registry for internal drives on a machine you control.

Will this work on a drive I have no write access to?

Not with autorun.inf, which has to be written to the drive. The registry method works because it stores the setting on the PC instead.

Does changing a drive icon affect anything else?

No. It is purely cosmetic — nothing about the drive’s contents, performance or lettering changes.

Related reading

For more Windows housekeeping, see whether disabling search indexing actually speeds up a PC and seven tools for optimising PC performance.

Michael Austin
Written byMichael AustinOwner and Editor

Michael Austin is the current owner of Justwebworld and manages the platform’s editorial direction, content strategy, and digital publishing operations. With a strong interest in online media and modern publishing, he focuses on creating informative, engaging, and easy-to-understand content across multiple categories. Under his leadership, Justwebworld continues to grow as a trusted multi-niche digital publication covering technology, business, lifestyle, automotive, sports, travel, and trending internet topics for readers worldwide.

More from Michael Austin →

Justwebworld has published guides since 2012. How we write and update articles · Report an error

Continue exploring

More Tech Guides

  • Business12 Soft And Hard Skills A Good AWS Cloud Engineer Should Have
  • TechWhat to Do When Your Hard Drive Fails
  • TechHow to Recover A Formatted Hard Drive for Free In Windows 10
  • TechHow to Wipe a Hard Drive With SafeWiper for Disk
  • TechPerfectly Transfer Windows 10 to New Hard Drive with AOMEI Backupper 3.2
cards
Powered by paypal
Follow on WhatsApp Follow on Telegram
Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram WhatsApp Copy Link
Previous Article14+ Best Websites For Create Logo Free Online
Next Article Blog Design: Apps and Secrets
Michael Austin
Michael Austin
  • Website
  • Facebook
  • X (Twitter)
  • Pinterest
  • Instagram
  • LinkedIn

Michael Austin is the current owner of Justwebworld and manages the platform’s editorial direction, content strategy, and digital publishing operations. With a strong interest in online media and modern publishing, he focuses on creating informative, engaging, and easy-to-understand content across multiple categories. Under his leadership, Justwebworld continues to grow as a trusted multi-niche digital publication covering technology, business, lifestyle, automotive, sports, travel, and trending internet topics for readers worldwide.

Related Posts

Production Schedules Are Increasingly Dependent On Systems That Were Once Considered Back-office It

Shared inboxes create security blind spots that rarely show up in policy reviews

Mbps vs MB/s: What’s the Difference and How to Convert

How AI Website Builders Are Changing the Game for Local Small Businesses (2026)

Top UI/UX Design Agencies for SaaS Products in 2026

How to Choose the Right Mobile Recharge for Unlimited Data

Leave a comment
Leave A Reply

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 42K other subscribers

How Long Do Leftovers Last in the Fridge? A Simple Food Safety Guide

October 10, 2026

LBW Rule in Cricket Explained: The 5 Conditions in Simple Words

October 10, 2026

Why “I Want to Drop the Charges” Doesn’t End a Domestic Violence Case

October 10, 2026

Indian Nobel Prize Winners: Full List From Tagore to 2026

October 10, 2026

Power Bank on Flights: Rules, Wh Limits and What Changed in 2026

October 10, 2026

What Is an FIR? Full Form, Zero FIR and How to File One in India

October 9, 2026

Anniversary Gifts by Year: Traditional and Modern List From 1st to 60th

October 9, 2026

GPT Full Form: What GPT Stands For in ChatGPT, Computers and Medicine

October 9, 2026

Two-Factor Authentication (2FA): What It Is and How to Turn It On

October 9, 2026

The Eisenhower Matrix: How to Prioritise Tasks With 4 Boxes

October 8, 2026
Categories

The content on this website is provided solely for educational and informational purposes. We do not promote, endorse, or deal in any products, services, or activities mentioned. While we strive to share accurate and up-to-date information, we make no warranties regarding completeness, reliability, or accuracy. Any action you take based on the information found here is strictly at your own risk, and we will not be liable for any losses or damages in connection with the use of our website.

DMCA.com Protection Status

In this article

  1. Method 1: autorun.inf, so the icon travels
  2. Method 2: the registry, for a fixed drive on this PC
  3. Getting a usable .ico file
  4. Putting it back
  5. Frequently asked questions
  6. Related reading
Back to top ↑
Justwebworld

Explore knowledge, feed curiosity — trusted by readers since 2012.

Explore Topics
TechBusinessDigitalMoneyLearnPeopleLifestyleCultureHealthHomeTravelGamingFashionAutoFoodMindLawSportsShoppingAI
Popular Tools
Age CalculatorWord CounterCase ConverterLove CalculatorReading TimePeriod CalculatorNumber to WordsAngel NumberHarry Potter NameDemon NameKingdom NameAll Tools →
Popular Games
Bubble BlastSudokuTruth or Dare WheelYes / No WheelAll Games →
Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn WhatsApp Telegram Threads RSS
  • About
  • Contact
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • Editorial Policy
  • Write for Us
Copyright © 2012-2026. Justwebworld - All Rights Reserved. | Sitemap

Type above and press Enter to search. Press Esc to cancel.

Read next

  • 12 Soft And Hard Skills A Good AWS Cloud Engineer Should Have
  • What to Do When Your Hard Drive Fails
  • How to Recover A Formatted Hard Drive for Free In Windows 10