• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

How to replace two system files?

J

Jose

Flightless Bird
On Mar 31, 5:22 pm, "John Smith" <JohnSm...@nospam.com> wrote:
> "Jose" <jose_e...@yahoo.com> wrote in message
>
> news:4bd7f4c4-5c16-4609-adf2-31524439de53@q15g2000yqj.googlegroups.com...
>
>
>
> > On Mar 31, 1:00 pm, "John Smith" <JohnSm...@nospam.com> wrote:
> >> "Jose" <jose_e...@yahoo.com> wrote in message

>
> >>news:552a7c71-5d77-4643-b5ba-c84432708ece@e6g2000yqh.googlegroups.com....

>
> >> > On Mar 31, 6:12 am, "John Smith" <JohnSm...@nospam.com> wrote:
> >> >> I have an XP machine. Have just replaced  a couple files from a W7
> >> >> machine.
> >> >> The files are:-
> >> >> c:/windows\system32\drivers\disk.sys
> >> >> c:/windows\system32\drivers\partmgr.sys
> >> >> ...and now I can't boot the XP machine.
> >> >> How to get back to before I replaced the files?
> >> >> Thanks.

>
> >> > Why would you put Windows 7 files on an XP system?

>
> >> > If all you did was overwrite two files, there are copies of the
> >> > original XP files in other places on your XP system that you can copy
> >> > back to where the original ones belong.  It is a simple matter to
> >> > replace the improper files with XP files.

>
> >> > You do not need to do a system restore, you do not need to make a Bart
> >> > PE CD, you do not have to move the drive to another system, etc.  You
> >> > can't make a Bart PE CD without an original XP installation CD anyway
> >> > - it is a requirement to even start, and then, what would you do next
> >> > even if you had a Bart PE CD?  If you were able to move the drive to
> >> > another system as a slave drive, what would you do next?

>
> >> > You can replace the two files easily from the XP Recovery Console.
> >> > You can boot RC using your original XP installation CD, or you can
> >> > make a new bootable Recovery Console CD (which may come in handy some
> >> > other day).  Many folks do not have original bootable XP installation
> >> > media, but that is no issue if all you need to do is replace two
> >> > files.  Just make a bootable RC disk, replace the files and be on your
> >> > way.

>
> >> > You can create a bootable XP Recovery Console CD when no XP media is
> >> > available:

>
> >> >http://www.bleepingcomputer.com/forums/topic276527.html

>
> >> > When you afflicted system booted into the recovery console, let us
> >> > know and we will give you instructions on how to replace your two
> >> > files.

>
> >> --------
> >> Thanks Jose...ref why did I do it:-

>
> >> I know I know....!!
> >> Reason was I have an external hard drive that works ok on the W7 machine
> >> but
> >> not on the XP.
> >> When looking at Device Manager in W7 it showed that the two files
> >> mentioned
> >> were shown as drivers
> >> for the EHD...whereas on the XP machine, although Device Manager doesn't
> >> show a problem, the drivers shown are pretty old...2001..
> >> ..hence decided to copy them to the XP machine...WRONG!...

>
> >> ...and now I've used the original XP CD, clicked on R, Recovery Console,
> >> loads of files loaded and I'm now at the C:/> prompt
> >> ..instructions as to how to replace back the two files now would be
> >> appreciated.

>
> > Good.

>
> > When you boot into RC you should be in the C:/WINDOWS folder - not C:/
> > so hopefully there is not another problem or some typo somewhere in
> > your reply.

>
> > XP has copies of those files here:

>
> > c:/windows\system32\dllcache

>
> > You need to copy those two files to the target folder:

>
> > c:/windows\system32\drivers

>
> > From your RC prompt you would enter two commands:

>
> > copy c:/windows\system32\dllcache\disk.sys c:/windows\system32\drivers

>
> > copy c:/windows\system32\dllcache\partmgr.sys c:/windows
> > \system32\drivers

>
> > Respond in the affirmative (Yes) when asked to overwrite the existing
> > file and you will get a message that 1 file(s) was copied.  Do that
> > for both files replacing them with the original XP versions.

>
> > I just tried it from my RC and it works fine.

>
> > Reboot and please report back your results or issues.

>
> -------------------
> Yes its c:/> I'm at not c:/windows
> from the c prompt did copy c:/windows\system32\dllcache\disk.sys
> c:/windows\system32\drivers
> but got the note..the command is not recognised?
> How do I change from c to c:/windows?
> Could it be that c:/windows\system32\dllcache\disk.sys is niot the same path
> as mine.?..how do I check that?



I am not 100% sure you are in the Recovery Console since if you were
and your system was not otherwise afflicted, you would be in C:
\WINDOWS. The link I sent has all the instructions so that if you are
not sure what media you have (and it explains that), you will know for
sure when you are done.

The commands are correct and will work from any folder in RC and the
copy command is built into RC, so it most certainly should be
recognized - if you are really in RC and not booted using some other
CD that came with your system. If you are not sure, make a CD using
the instructions in the link. It will always work,

I booted RC from my genuine Windows CD and ended up in the C:/WINDOWS
folder, I entered 'help' from the command line and got a list of RC
commands. I entered 'copy' from the prompt and got a message "The
parameter is not valid..."
so there is something haywire on your end.
 
Top