Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Copy Windows XP to RAM  (Read 6569 times)

0 Members and 2 Guests are viewing this topic.

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Copy Windows XP to RAM
« on: May 08, 2010, 10:15:55 PM »
Is there a way to have windows xp copy itself off the hard drive and onto the ram when booting and then copy back from the ram to the hard drive on shutdown? I know something similar to this exists with Bart PE except it's a CD not a hard drive and it also doesn't copy back. Can anyone tell me if this is possible without writing my own driver?
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

Quantos



    Guru
  • Veni, Vidi, Vici
  • Thanked: 170
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Guru
  • OS: Linux variant
Re: Copy Windows XP to RAM
« Reply #1 on: May 08, 2010, 10:23:34 PM »
Why would you want to do that?
Evil is an exact science.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Copy Windows XP to RAM
« Reply #2 on: May 08, 2010, 10:26:03 PM »
I subscribe that the question doesn't really make a whole lot of sense. Windows, as well as most modern OS's, don't ever copy their entire operational base into RAM at any time- in fact the core architecture is designed to do the opposite, keeping only code that is run in RAM via the use of DLLs and so forth.

You could try to create a RAM drive, and extract a disk image to that RAM drive, but since booting to it would require rebooting and rebooting would destroy the contents of RAM as well as the RAM drive driver you'd need to find some other way of booting to it after creating the drive.
I was trying to dereference Null Pointers before it was cool.

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #3 on: May 08, 2010, 10:45:36 PM »
Quote
Why would you want to do that?
Speed.

Quote
I subscribe that the question doesn't really make a whole lot of sense. Windows, as well as most modern OS's, don't ever copy their entire operational base into RAM at any time- in fact the core architecture is designed to do the opposite, keeping only code that is run in RAM via the use of DLLs and so forth.
So, if it's possible, why not copy the whole thing to ram?

Quote
You could try to create a RAM drive, and extract a disk image to that RAM drive, but since booting to it would require rebooting and rebooting would destroy the contents of RAM as well as the RAM drive driver you'd need to find some other way of booting to it after creating the drive.
This would probably have to be done with the boot loader. Am I correct?
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Copy Windows XP to RAM
« Reply #4 on: May 08, 2010, 10:53:02 PM »
So, if it's possible, why not copy the whole thing to ram?

Because there isn't enough room.
I was trying to dereference Null Pointers before it was cool.

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #5 on: May 08, 2010, 10:56:10 PM »
Quote
Because there isn't enough room.

That may be the case for most people, but my windows xp install is only 500MB and I have 4GB of ram. This is completely possible.
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Copy Windows XP to RAM
« Reply #6 on: May 08, 2010, 10:57:18 PM »
That may be the case for most people, but my windows xp install is only 500MB and I have 4GB of ram. This is completely possible.

No. it isn't. you really don't understand the mechanics of the windows kernel if you think otherwise.

EDIT: what I mean is, you can use a ram-drive install of some sort, but you aren't going to be able to somehow create a "driver" that does this.
I was trying to dereference Null Pointers before it was cool.

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #7 on: May 08, 2010, 11:01:49 PM »
Quote
you can use a ram-drive install of some sort, but you aren't going to be able to somehow create a "driver" that does this.

Well, then how does Bart PE do it?
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Copy Windows XP to RAM
« Reply #8 on: May 08, 2010, 11:04:37 PM »
Well, then how does Bart PE do it?

It doesn't.
I was trying to dereference Null Pointers before it was cool.

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #9 on: May 08, 2010, 11:09:17 PM »
 ??? I always thought that Bart PE copied itself from CD to ram, but I guess I was wrong.

So do you think the increase in speed would make this worth figuring out?

EDIT: by this, I mean the ram drive install.
« Last Edit: May 08, 2010, 11:20:37 PM by Linux711 »
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

rthompson80819



    Specialist

    Thanked: 94
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #10 on: May 08, 2010, 11:18:54 PM »
You could use a solid state drive as your primary drive, but that seems like an expensive upgrade that wouldn't really accomplish all that much.

Even if your original question could be done it's got to increase your boot time.

If you bought a SSD you would probably notice more of an increase in other programs more than windows.

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #11 on: May 08, 2010, 11:25:52 PM »
Quote
You could use a solid state drive as your primary drive

Have one. It's small (only 64GB), but it's 220MB/s I think.

Quote
increase your boot time.

Right, but only by 2.3 seconds with the solid state drive.
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

rthompson80819



    Specialist

    Thanked: 94
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #12 on: May 08, 2010, 11:38:33 PM »
If you already have a SSD, why would you want to copy windows from your hard drive to RAM?  And not just put windows on the SSD?

Linux711

    Topic Starter


    Mentor

    Thanked: 59
    • Yes
    • Programming Blog
  • Certifications: List
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #13 on: May 08, 2010, 11:45:22 PM »
I already have windows on the SSD. When I say hard drive, I am referring to the SSD.

Why would I want to copy windows from the SSD to ram? Because ram is still much faster than a SSD.
YouTube

"Genius is persistence, not brain power." - Me

"Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

rthompson80819



    Specialist

    Thanked: 94
  • Experience: Experienced
  • OS: Windows 7
Re: Copy Windows XP to RAM
« Reply #14 on: May 08, 2010, 11:51:16 PM »
I thought there might have been some kind of communication issue there.  When most people use the term hard drive they usually mean the old spinney platter type thingy.