Yes—Gazebo can be installed on and launched from a Windows D: drive, but only if the simulator, its supporting libraries, and the models it loads are all installed or referenced on paths that remain accessible; the drive letter itself is not the obstacle, and the real constraints are the Windows build route (native binaries versus WSL), the install location conventions of that route, and the paths Gazebo uses for models, plugins, and resources.
The question is ambiguous in a way worth naming early. "Gazebo" now refers to two related but distinct things: the modern Gazebo simulator (formerly called Ignition, with releases such as Gazebo Harmonic) and the older Gazebo Classic (versions 9 and 11, now end-of-life). Separately, "run from the D: drive" can mean three different things: (a) installing the program onto D:, (b) launching an already-installed program from a D: location, or (c) storing models, worlds, and assets on D: while the program itself lives elsewhere. The answer differs slightly for each. What is not answerable from the query alone is which Gazebo release, which Windows route (native Windows binaries or Windows Subsystem for Linux), and which of those three meanings is intended. Everything below covers the general principles, which are stable.
Why the drive letter is not the deciding factor
On Windows, a program runs from whatever absolute path it occupies, and D: is simply another local volume. Nothing in Gazebo's architecture requires the system drive. The failure modes people actually hit are about path handling, not about the letter D. Three mechanisms matter.
First, spaces and non-ASCII characters in paths. Many robotics build systems and older Gazebo components assume Unix-style path handling and can break on paths containing spaces or characters outside the ASCII range. D:\Gazebo is fine; D:\My Programs\Gazebo 测试 invites trouble. A short, ASCII-only folder directly under the drive root avoids this class of problem.
Second, relative versus absolute references. Gazebo finds resources through environment variables such as GAZEBO_MODEL_PATH, GAZEBO_RESOURCE_PATH, and GAZEBO_PLUGIN_PATH (Classic) or their modern equivalents. If those variables point at D: paths, the paths must be absolute and must not depend on a working directory that changes when you launch from a shortcut.
Third, drive availability at launch time. If D: is a removable or network drive that is not mounted when Gazebo starts, the program will fail to find its own resources. An internal fixed D: volume has no such issue.
Native Windows installation versus WSL
The two supported routes behave differently, and this is the most important distinction.
Native Windows binaries. Modern Gazebo publishes Windows installers and archives. If you use an installer, it typically installs to a fixed location on the system drive and offers limited or no choice of target volume; in that case "running from D:" really means launching installed binaries, not relocating them. If you use a portable archive, you can extract it to D:\gazebo and launch from there, but any dependencies it expects—Visual C++ runtime, Qt libraries, OGRE rendering libraries—must be present on the system or bundled in that folder. Moving the folder after installation can break registry entries or hardcoded paths; extracting it fresh to D: is safer than relocating an installed copy.
Windows Subsystem for Linux (WSL). This is the route most robotics users take, because Gazebo's ecosystem is Linux-first. Here the program lives inside the Linux filesystem, not on D: at all—unless you deliberately place it there. WSL exposes Windows drives under /mnt/d. You can install or build Gazebo under /mnt/d/..., and it will run, but performance and file-permission behavior on the mounted Windows volume are worse than on the native Linux filesystem, and Linux file permissions and symbolic links may not behave as expected. The practical recommendation for WSL is to keep the installation inside the Linux filesystem and mount D: only for large asset storage, such as model collections and worlds.
What "run from D:" actually requires in each case
Installing on D: (portable/native): extract or install to a short ASCII path like D:\gazebo; verify the runtime dependencies are present; set resource environment variables to absolute D: paths; launch via a shortcut whose "Start in" directory is set correctly. Storing models and worlds on D: this is the easiest and most common real-world use. Put your model library on D:, then point GAZEBO_MODEL_PATH (Classic) or the modern equivalent at D:\gazebo-models. Gazebo will load them from there without complaint, as long as the path is absolute and the drive is mounted. Moving an existing install to D: generally discouraged. Reinstall or re-extract rather than cut-and-paste, because installers register paths and shortcuts that a manual move does not update.
A concrete illustration: a user installs Gazebo Classic 11 natively to C:\Program Files\Gazebo, keeps a large model library on D:\models, and sets GAZEBO_MODEL_PATH=D:\models. Gazebo runs from C: but uses D: for assets. That is a valid and common configuration and is probably what many people mean by "running from D." A different user extracts a portable modern Gazebo to D:\gz and launches it there—also valid, provided dependencies are satisfied. A third user builds Gazebo inside WSL at /mnt/d/gz—it will usually run, but slower and with permission quirks.
Where the answer stops applying
The statement "Gazebo can run from D:" stops being reliable when the D: path contains spaces or non-ASCII characters, when D: is a network or removable drive that may be absent at launch, when an installer forces system-drive placement and you try to relocate afterward, or when you place a WSL build on /mnt/d and then depend on Linux-specific permissions or symbolic links. It also does not address GPU rendering: if your D: installation depends on graphics drivers or CUDA libraries installed on C:, those must still be found, and a D: install does not isolate you from system-level dependencies. Finally, Gazebo Classic is end-of-life, so advice specific to Classic's environment variables is legacy guidance rather than a forward-looking recommendation.
FAQ
Does Gazebo care which drive it is on? No—it cares about absolute, ASCII-safe, currently mounted paths and about its dependencies being findable.
Can I install Gazebo with its installer directly to D:? Sometimes the installer permits a custom location and sometimes it does not; check the specific release's installer rather than assuming. Portable archives give you the choice directly.
Is it better to run Gazebo from D: or just store models there? Storing models and worlds on D: while keeping the installation on its default path is the lower-risk configuration and captures most of the benefit (freeing space on C:).
Will a WSL Gazebo installed on /mnt/d work? It typically launches, but expect slower I/O and possible permission or symlink issues; native Linux filesystem placement is preferable.
What breaks most often? Paths with spaces or non-ASCII characters, stale environment variables after a move, and a D: drive that is not mounted at launch.
The short version: the drive letter is not the constraint. Choose a short ASCII path, keep dependencies reachable, set resource paths absolutely, and prefer re-extraction over relocation—and if you use WSL, keep the install in the Linux filesystem and mount D: for assets only.