Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a DOS utility to change a Windows drive letter

192 views
Skip to first unread message

ju.c

unread,
May 21, 2009, 6:41:17 AM5/21/09
to
Is there a utility to change a Windows partition's
drive letter? I've been searching for a long time.
Thanks.

Esra Sdrawkcab

unread,
May 21, 2009, 7:00:02 AM5/21/09
to

Here's the paramters I gave to google

windows change drive letter command line

3rd and 4th entries look good.

--
Siggy played guitar

Esra Sdrawkcab

unread,
May 21, 2009, 7:03:53 AM5/21/09
to

Oops perhaps I changed them

it's Diskpart
http://support.microsoft.com/kb/300415

or by vbscript
http://msdn.microsoft.com/en-us/library/aa364014(VS.85).aspx

--
Siggy played guitar

Pegasus

unread,
May 21, 2009, 7:04:25 AM5/21/09
to

"ju.c" <bibidybu...@mailinator.com> wrote in message
news:gv3b4m$ref$1...@adenine.netfront.net...

> Is there a utility to change a Windows partition's
> drive letter? I've been searching for a long time.
> Thanks.
>

Mountvol.exe


ju.c

unread,
May 21, 2009, 7:32:12 AM5/21/09
to
I mean with a boot disk, not from within Windows.
Booting to DOS and changing it from there.
Can I run Diskpart in DOS?
Did I post to the wrong group?

Thanks.


"Esra Sdrawkcab" <ad...@127.0.0.1> wrote in message news:op.ut900r14hswpfo@dell3100...

Pegasus

unread,
May 21, 2009, 7:46:31 AM5/21/09
to

"ju.c" <bibidybu...@mailinator.com> wrote in message
news:gv3e44$vra$1...@adenine.netfront.net...

>I mean with a boot disk, not from within Windows.
> Booting to DOS and changing it from there.
> Can I run Diskpart in DOS?
> Did I post to the wrong group?
>
> Thanks.

Drive letters are set in the registry. You can do what you want if you can
find a registry editor that works in DOS. Perhaps regedit.exe from Win9x
might do the trick.

A better way might be to create a batch file that executes at boot time. It
would perform the following tasks:
1. Check if the drive letters are correct.
2. Modify the registry if necessary.
3. Reboot the machine.


foxidrive

unread,
May 21, 2009, 7:46:48 AM5/21/09
to
On Thu, 21 May 2009 04:32:12 -0700, "ju.c"
<bibidybu...@mailinator.com> wrote:

>I mean with a boot disk, not from within Windows.
>Booting to DOS and changing it from there.

DOS selects the drive letters by itself in a sequence: primary partitions
followed by secondary partitions.

I've never tried changing them but I believe it is the BIOS that hands off
the partition info to DOS.

Windows stores a drive letter information on the drive somewhere but you
can clone the drive letter information from one disk to another using
XXClone - the free version will copy the drive volume info across to
another drive: "Duplicate Vol ID" is the option under "Cool Tools".

I doubt Windows will survive intact from a drive letter change - drive
letters are all over the registry and in INI and configuration files on the
disk.

Pegasus

unread,
May 21, 2009, 7:49:35 AM5/21/09
to

"foxidrive" <got...@woohoo.invalid> wrote in message
news:m9fa15l9gm1mf27kb...@4ax.com...

> On Thu, 21 May 2009 04:32:12 -0700, "ju.c"
> <bibidybu...@mailinator.com> wrote:
>
>>I mean with a boot disk, not from within Windows.
>>Booting to DOS and changing it from there.
>
> DOS selects the drive letters by itself in a sequence: primary partitions
> followed by secondary partitions.
>
> I've never tried changing them but I believe it is the BIOS that hands off
> the partition info to DOS.
>
> Windows stores a drive letter information on the drive somewhere

Windows drive letter information is stored here: HKLM\SYSTEM\MountedDevices.


Esra Sdrawkcab

unread,
May 21, 2009, 7:52:44 AM5/21/09
to
On Thu, 21 May 2009 12:32:12 +0100, ju.c <bibidybu...@mailinator.com> wrote:

> "Esra Sdrawkcab" <ad...@127.0.0.1> wrote in message
> news:op.ut900r14hswpfo@dell3100...
>> On Thu, 21 May 2009 12:00:02 +0100, Esra Sdrawkcab <ad...@127.0.0.1>
>> wrote:
>>
>>> On Thu, 21 May 2009 11:41:17 +0100, ju.c
>>> <bibidybu...@mailinator.com> wrote:
>>>
>>>> Is there a utility to change a Windows partition's
>>>> drive letter? I've been searching for a long time.
>>>> Thanks.
>>>>
>>> Here's the paramters I gave to google
>>>
>>> windows change drive letter command line
>>>
>>> 3rd and 4th entries look good.
>>>
>> Oops perhaps I changed them it's Diskpart
>> http://support.microsoft.com/kb/300415
>> or by vbscript
>> http://msdn.microsoft.com/en-us/library/aa364014(VS.85).aspx

(Order restored)

> I mean with a boot disk, not from within Windows.
> Booting to DOS and changing it from there.
> Can I run Diskpart in DOS?
> Did I post to the wrong group?
>
> Thanks.

DOS assigns letters in a fixed manner. IIRC.


if your PC has NT or XP, it's On Topic here - my guess is that the disk letter assignment is in the registry; Just checked -
it's in
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

but I don't think you can run regedit in DOS; nor reg.exe

you might be able to construct a .reg file to load at XP boot time, but how would you determine the diskid strings?


--
Siggy played guitar

foxidrive

unread,
May 21, 2009, 8:38:58 AM5/21/09
to
On Thu, 21 May 2009 13:49:35 +0200, "Pegasus" <I....@fly.com.oz> wrote:

>
>"foxidrive" <got...@woohoo.invalid> wrote in message

>> Windows stores a drive letter information on the drive somewhere


>
>Windows drive letter information is stored here: HKLM\SYSTEM\MountedDevices.

Thanks.

Ted Davis

unread,
May 21, 2009, 8:22:43 PM5/21/09
to
On Thu, 21 May 2009 03:41:17 -0700, ju.c wrote:

> Is there a utility to change a Windows partition's drive letter? I've been
> searching for a long time. Thanks.

The effort to write a batch file to do it is probably greater than the
standard Windows approach. Since it's a one-off, I don't see any need for
a batch file. What are you really trying to accomplish?

--

T.E.D. (tda...@mst.edu) MST (Missouri University of Science and Technology)
used to be UMR (University of Missouri - Rolla).

Message has been deleted

Esra Sdrawkcab

unread,
May 22, 2009, 4:50:14 AM5/22/09
to
On Fri, 22 May 2009 04:47:05 +0100, carlos <cmon...@gmail.com> wrote:

> With mountvol.
> I make this script.

[script snipped]

unfortunately the OP posted over in AMB that he desires to change the drive letter after booting to (I assume) Real DOS from a (an?) USB pen drive.

I've tried explaining that you can't see NTFS drives from real DOS, and if the target machine boots to real DOS can't change drive letters at all.


--
Siggy played guitar

0 new messages