System disk assigned wrong letter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had to replace my old system disk with a new one. when I reinstalled xp home, it assigned the disk as G: instead of C:. Now I cannot install somes programs because they look for certain windows files on the C: drive and do not give the option of changing it. Is there any way to change the Drive designation once the program is installed?
Thanks,
RCChilds1
 
RCChilds1 said in
I had to replace my old system disk with a new one. when I
reinstalled xp home, it assigned the disk as G: instead of C:. Now I
cannot install somes programs because they look for certain windows
files on the C: drive and do not give the option of changing it. Is
there any way to change the Drive designation once the program is
installed? Thanks,
RCChilds1

Use the included Disk Management (diskmgmt.msc) to change the drive
letter to C:. Then go hunting through your registry (regedit.exe) to
find any occurrences of "G:\". When making registry changes, you're at
your own risk for knowing what you are doing and obviously you should
first save a backup of the registry (using NT Backup for the system
state and optionally using Export from within regedit.exe).
 
Don't do this . . .

-----Original Message-----
RCChilds1 said in


Use the included Disk Management (diskmgmt.msc) to change the drive
letter to C:. Then go hunting through your registry (regedit.exe) to
find any occurrences of "G:\". When making registry changes, you're at
your own risk for knowing what you are doing and obviously you should
first save a backup of the registry (using NT Backup for the system
state and optionally using Export from within regedit.exe).
__
*** Post replies to newsgroup. Share with others.
*** Email domain = ".com" *AND* append "=NEWS=" to Subject.
__


.
 
You just missed one little thing... Disk Management cannot change the drive
letter for the system disk...

But, PartitionMagic can. And it have a nice "subtool" that changes all
registry pathes too. :-)

// Chen
 
Chen said:
You just missed one little thing... Disk Management cannot change the drive
letter for the system disk...

But, PartitionMagic can. And it have a nice "subtool" that changes all
registry pathes too. :-)

Windows can do this also, and without the extra fee to be paid for buying a
program that may be used only once!
 
*Vanguard* said:
RCChilds1 said in


Use the included Disk Management (diskmgmt.msc) to change the drive
letter to C:. Then go hunting through your registry (regedit.exe) to
find any occurrences of "G:\". When making registry changes, you're at
your own risk for knowing what you are doing and obviously you should
first save a backup of the registry (using NT Backup for the system
state and optionally using Export from within regedit.exe).

Bad advice, and not ever recommended to anyone who is not at least extremely
adept at registry entries. Even then, the task you recommend would take eons
to sort through and edit.
 
Tom said:
Windows can do this also, and without the extra fee to be paid for buying a
program that may be used only once!

You **CAN'T** change the letter of the system volume!

Marcus
 
Windows can do this... but only if you are using some disk-sector-editing
tools, some third party partition tool or starting from another
disk/parition. Disk Management can NOT change the driver letter of the
"system or start disk"!

Don't belive me? Try it yourself ;-).

// Chen
 
Marcus Fox said:
buying

You **CAN'T** change the letter of the system volume!

Of course not Marcus, but please calm down, as it can be done, you just need
to think outside the box. Who said one has to be "in" the system to change
it?
 
Chen said:
Windows can do this... but only if you are using some disk-sector-editing
tools, some third party partition tool or starting from another
disk/parition. Disk Management can NOT change the driver letter of the
"system or start disk"!

Don't belive me? Try it yourself ;-).

I have done this three times through Recovery Console (did I say anything
about using Disk Management?), then using chkdsk on the new drive to correct
all the targets , and file directories to point back to their correct
respective paths on the new C: drive. Also, new HDDs come with installation
CDs that allow copying of the system drive/partition directly, which then
can be switched over. All that needs to be done is run CHKDSK /R to fix the
directories and the registry entries.
 
"Windows" is a misleading term... The recovery console is actually "outside"
Windows. It's like saying that you can format your system partition (C:\) in
"Windows 98" using "format C:\". You can't... unless your starts from a
bootdisk (or another partition).

And chkdsk is only fixing bad files and directories (like the old Scandisk).
It's not fixing the registry! The "/R" switch stands for "recover". Run
"chkdsk /help" for more information.

But, you're right on one point though, you can use the Recovery Console with
diskpart to change the driver letter. But, it's not recommended to do that.
It's not only the registry that needs to be modified. Most shortcuts must be
changed too. And many programs stores pathes in their own datafiles. One can
feel pretty lucky if it works without any problems. :-)

// Chen
 
Chen said:
"Windows" is a misleading term... The recovery console is actually "outside"
Windows. It's like saying that you can format your system partition (C:\) in
"Windows 98" using "format C:\". You can't... unless your starts from a
bootdisk (or another partition).

Bwahahahahaha! RC is part of Windows dude, but you didn't ask for specifics,
I provided the know how anyway.
And chkdsk is only fixing bad files and directories (like the old Scandisk).
It's not fixing the registry! LOL, now yopu contradist yourself. You just
said that CHKDSK is form fixing files and directories, which is true for
part of its usage, but directories alos get re-targeted, and the registry is
fixed, otherwise it wouldn't be able to do this function. CHKDSK will clean
unused entries froma directories, as well as other unused items.
The "/R" switch stands for "recover". Run
"chkdsk /help" for more information.

LOL again
The "R" does not "JUST" stand for "recover", and you obvious didn't bother
to run "chkdsk /?" to see what they mean. "R" and "F" switches imply the
very same thing . When you recover readable info, it is fixing it also.


But, you're right on one point though, you can use the Recovery Console with
diskpart to change the driver letter. But, it's not recommended to do that.
It's not only the registry that needs to be modified. Most shortcuts must be
changed too. And many programs stores pathes in their own datafiles. One can
feel pretty lucky if it works without any problems. :-)

This had nothing to do with changing the drive letter, rather placing the
system on another physical drive, then giving "the new drive" the proper
drive letter. I gave you an explanation how this could be done. This cannot
be done on the same drive, even use the RC. I also would not being using the
"diskpart' command to perform the function I described as it doesn't apply
in this situation.

Read the OP and see the problem this person had!
 
Youp, /R it's fixing stuff too, but /F and /R is not the same thing. /F sets
chkdsk in write-mode (instead of the normal "read-only" mode), /R is the
normal /F + a deeper scan and fix. /R is usually taking a lot more time to
run than /F.

And, the registry and file table are two different things!

// Chen
 
Tom said in news:%[email protected]:
Bad advice, and not ever recommended to anyone who is not at least
extremely adept at registry entries. Even then, the task you
recommend would take eons to sort through and edit.

Not eons, but around 2 hours going through the registry. Probably
another hour going through all the shortcuts and doing a search for the
old drive letter in files (which was under Windows 2000 whereas the
Search in Windows XP won't search within all filetypes so you have to
use something else, like Agent Ransack). As I recall, it took one full
evening to make the changes manually. I either didn't have DriveMapper
(included in PartitionMagic) at the time or didn't know about it.
Although it might also be recommended to delete the pagefile and purge
all temp directories, those didn't cause any problems for me. The foggy
part of what I had to do was how to change the drive letter of Windows
own partition. I don't recall running diskpart so my guess is that I
used PartitionMagic to change the drive letter.

I didn't say it was an easy procedure but nowadays there are probably
several tools to assist in this task.
 
Sorry for starting a war but I didn't realize the system partition could
not get changed for its drive designator. Where are NTLDR, boot.ini,
and NTDETECT.COM is called (by Microsoft) the system partition whereas
they call the boot partition wherever are the rest of the files, but for
most users they are the same partition. Using diskpart from the
Recovery Console will work to change the drive designator. I don't see
running chkdsk will change the shortcuts (which are .lnk files, not
entries in the file system other than for the files themselves, but it
is the definition within the .lnk file that specifies the shortcut).
Nor will running chkdsk change values in the registry files (fixing the
file system does not alter the contents within the files unless, of
course, the "fix" is to truncate orphaned clusters or truncate a file
due to an unrecoverable bad sector).

Changing the drive letter shouldn't prevent Windows from booting up
(because %systemroot% is used as the path to find the system files
referenced in the registry and even your profile's path %userprofile% is
based in the registry from a %SystemDrive% variable for its root). Then
you go into the registry and make the changes for the changed drive
designator yourself. Since the definitions within the .lnk files are
not in the registry, you'll also have to visit all your shortcuts to
change their properties for the command line so they use the new drive
designator (and you probably should also change the Target field, too,
if it is non-blank). Often all you have to do is click on the shortcut:
if it cannot find the target then it will start looking for you and
often it finds it right away. While this can be done manually, it might
be easier to use Powerquest's DriveMapper (comes with PartitionMagic).
DriveMapper is supposed to change the drive letter in both the registry
and in the shortcuts. I notice that Powerquest recommends using Change
Drive Letter (a dialog under the properties for a partition when in
PartitionMagic) so presumably it does the same thing that DriveMapper
does separately, yet under the doc for Change Drive Letter it also says
not to change the drive letter for the boot partition (where is the rest
of the Windows files which is probably the same as the system partition
where are NTLDR, boot.ini, and NTDETECT.COM). I haven't used
DriveMapper but instead did the manual changes in the registry and for
the shortcuts myself.

Besides the registry and shortcuts, there may be configuration files
that record a static drive letter within them. Don't know if you'll
find much in win.ini or system.ini, but other .ini files might have G:\
instead of C:\ in them (if they don't use the %SystemDrive% environment
variable or use relative paths instead of absolute ones). The Search
utility in Windows XP won't search through all files if you specify a
string to search on (it only searches within files for which it has
handlers to read those files in their native format). So use something
like Agent Ransack to search any filetype for "G:\". The description of
DriveMapper is:

"When you create, merge, delete, hide, and unhide partitions, your drive
letters can change, causing applications not to run because application
shortcuts, initialization files, and registry entries refer to incorrect
drives. DriveMapper is a wizard that lets you easily update drive letter
references."

So apparently DriveMapper handles changing the drive letter references
in the registry, shortcuts, and in .ini files. According to
http://www.thenakedpc.com/articles/v02/11/0211-05.html:

"ALSO manually review DriveMapper's proposed changes and allow it to
change registry references, shortcuts (.lnk), and .ini files ONLY.
DriveMapper has the ability to change drive letter references inside
various system files, and letting it do so is what blew up my system."

I know back in Windows 2000 that a later fresh reinstall had its system
partition assigned to F: and I wanted it as C:, and I did manage to get
it to use C: instead of F:. I don't recall using DriveMapper but
instead doing a lot of work in the registry, editing shortcuts, and
searching files for the old drive letter. I don't remember having a
problem with the pagefile (with the possibility that it contains the old
drive letter in some references that may get reused on a reboot), but
you could simply delete the pagefile (configure to clear it on shutdown
or delete it from the Recovery Console using instructions at
http://support.microsoft.com/?id=255205). I have a .bat file to purge
my temp files in various directories but you could also use the Disk
Cleanup wizard.

Obviously when doing major surgery, backing up your partition beforehand
is a must. Save a disk image using DriveImage or another equivalent
tool. Then if it won't boot or is severely corrupted you can restore.
You'll end up with the old wrong drive letter but that's a cosmetic
issue. If a program won't install because it has harcoded "C:" in its
installation procedure then that's an issue to take up with the software
developer for the blunder on their part.
 
Back
Top