Install OS from Hard Drive

  1.    #1

    Install OS from Hard Drive


    Since we get inquiries about this all the time I wanted to report how it works with the latest OS.

    Today I wanted to install Windows 8.1 but didn't have a spare DVD or flash stick to waste since I rarely let the latest 8 stay installed more than a few days. But in case I wanted to keep it and therefore didn't want it to boot as another drive letter if installed from Win7 running Sources>Setup, I decided to install it from the HD as a booted Custom install with full Drive Options. Here's how:

    Shrink C to copy the extracted Win8 install files to a 10gb partition you create, which can be Logical because it's booted from the current System partition - just remember if you already have four Primary partitions to convert an adjacent non-System one to Logical first.

    Next install EasyBCD (click Download - no Name or Email required). On the Add OS Entry tab select WinPE tab at the bottom, from dropdown select WIM image, click Browse button to browse to the Win 8 Sources>boot.wim file. Save and Exit.



    Reboot PC, at Boot Menu choose the new RAMdisk entry which will be added until removed on Easy Edit tab or in msconfig>Boot tab. You can now Clean Install - Windows 8 even using the Drive Options to Delete an unwanted partition to Format install partition. Make sure not to delete, format or install over your extant OS partition or it will go away.

    If you plan to keep the OS, burn the installer or make a System Repair disk to use for repairs. You can keep the WinPE boot item to use for repairs until then.

    This is adapted from Boot Recovery Partition using EasyBCD
      My Computer


  2. Posts : 16,149
    7 X64
       #2

    Yes, you can do exactly the same with win 7. No idea why more people aren't doing it. Good to have 7 installer available on the move. You can replace the install.wim with one you made yourself, e.g. your updated version.You can also just run setup.exe for a repair install.
      My Computers


  3. Posts : 50,642
    Thread Starter
       #3

    Thanks, Si. I learned much of this from you, years ago.

    To replace install.wim in the installer's Sources folder with an image customized by setting up the OS, what exactly needs to be done?

    Then recompile ISO using ImageX to burn new ISO? Will ImgBurn work?

    I wonder if this could also be used for UEFI install, what modifications would be needed.
    Last edited by gregrocker; 28 Oct 2013 at 18:48.
      My Computer


  4. Posts : 3,056
    Windows 10
       #4

    I see more wonderful information ahead.
    Subscribed .
      My Computer


  5. Posts : 16,149
    7 X64
       #5

    Not sure why you need an iso. I thought the idea was to use the extracted files?

    You can copy install.wim out of your updated iso with 7-zip. In fact you can copy the entire contents out. That would be instead of using the standard 7 iso which is a couple of years of updates behind.

    It is too much faff for most people to go through the whole sysprepping thing.

    Same thing with Vista/8/8.1. Easy to add updates with dism.
      My Computers


  6. Posts : 50,642
    Thread Starter
       #6

    If the OS is one I value I will have a bootable installer to use for installation and repairs. I was asking if there's a way to substitute the image after it's set up with the install.wim in the installer.

    The rightclick Start button in 8.1 gets close to a Start menu, but it's still so overloaded with tablet crApps that I see no need for it as a desktop OS - except to confound all that was built over 20 years for a billion users on the desktop.
      My Computer


  7. Posts : 16,149
    7 X64
       #7

    I don't understand the question.

    The installation files are inside install.wim.

    You can use the regular install.wim that comes with the msdn iso. Or you can replace it with one you have added updates to. Or you can go through the whole malarkey of installing, sysprepping and capturing as install.wim. Not much advantage to the last option for most people.

    I was asking if there's a way to substitute the image after it's set up with the install.wim in the installer.
    I think you are asking about sysprepping ? You might do that if you wanted to include your own programs and settings as well as the updates. Kari has a tut about that.

    Or do you mean can you just copy a different install.wim into the extracted sources folder? Yes, you can.

    Or you can use poweriso etc to open the standard msdn iso and replace the sources\install.wim with your own install.wim. Any of those are fine.

    I don't bother sysprepping usually. Just using the install.wim with updates added is good enough..

    TEST -Update 7 installation media
      My Computers


  8. Posts : 50,642
    Thread Starter
       #8

    Yeah that's what I thought. I'll stick with imaging for capturing the setup OS. But it would be cool at least once to see it installed from the booted Windows installer.
      My Computer


  9. Posts : 16,149
    7 X64
       #9

    You might want to give this a go:

    1) Extract the win 7 dvd/iso onto a partition. ( Not the os partition preferably - anywhere else is fine)

    The extracted files look like this:

    Install OS from Hard Drive-2013-11-04_014834.jpg

    (You don't need autorun.inf so can delete it if you like. The big file Install.wim is inside the "sources" folder. If you have your own updated install.wim , you can copy it into there , overwriting the standard one.)

    2) Register that as your recovery image.

    Open an elevated cmd and type (replace d with the drive letter of the partition you extracted the files onto) :

    reagentc /setosimage /path d:\sources /target c:\windows

    ( press enter)

    reagentc /enable

    (press enter)

    3.) Run setup.exe from that partition ( or make a shortcut to run it ) if you want you to do a repair install on your running os, or clean install to another partition.

    4.) Start "Repair My Computer" from F8 key, to get an extra recovery option:

    Install OS from Hard Drive-2013-11-03_193234.jpg

    That will install windows onto the target partition you set, saving the existing os files into Windows.old folder.

    5) Get the full range of installation options by running setup.exe instead:


    Install OS from Hard Drive-2013-11-03_193342.jpg


    Install OS from Hard Drive-2013-11-03_193428.jpg


    Install OS from Hard Drive-2013-11-03_193450.jpg


    Install OS from Hard Drive-2013-11-03_193553-1.jpg


    6) If you boot win7 repair cd ( instead of F8 "Repair My Computer" - which runs winre from the Hard Drive ), then you can still run setup.exe as above and get all the regular installation options. It will use the install.wim on the hard drive to do that.

    Not sure why I hadn't done all this before. Still finding new joys with win7 . That is a great addition for anyone to have. It is like a much better version of the oem recovery partition.
      My Computers


  10. Posts : 50,642
    Thread Starter
       #10

    Trying this tomorrow on Dell Dimension 3000 I am upgrading from XP to Win7. It will not boot flash stick even though it appears in F12 Boot Menu, and doesn't have DVD drive. Will find out if I can copy files into a partition, add Installer to Dual Boot menu from XP using EasyBCD. Haven't tried it yet on XP.

    Will want to delete all but OEM Diagnostics partition for install. Later if it works I'll store an image on the installer files partition, but hide it. That way if it requires reimaging or reinstall (even Repair) the partition can be made bootable again with Easy.

    Good plan?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:34.
Find Us