Windows 7 VHD installed and used on USB Key?

Page 1 of 3 123 LastLast

  1. Posts : 13
    Windows 7 RTM (From Connect Italian Beta Program)
       #1

    Windows 7 VHD installed and used on USB Key?


    Is it possible to boot from a usb pen and use a VHD inside it?

    To be completely indipendent from specific computer disk boot
      My Computer


  2. Posts : 34
    Windows 7 64-bit 7600 OEM
       #2

    I would say "YES"

    As once you have the \Boot folder on the key.

    AND If you have already followed previous steps in creating a bootable PE / Win7 Instal from a KEY then.... the step should be....

    first delete all contents of the key after it can boot except the \boot folder... Here you will have the BCD. File where the boot config is stored, then the bootfile will have to be edited... This is our main problem....

    Other than size... As with the gui bcdeditor tool. you cannot edit the usbkey bootfile or with bcd edit..... Hmm... Maybe you cant.... give me a couple of days and i will figure out how to get into this file....
      My Computer


  3. Posts : 34
    Windows 7 64-bit 7600 OEM
       #3

    Actually You cant edit the BCD FILE.. All the editors only edit the MAIN BCD FILE on the Hidden system Partition....

    There maybe another way... BUT >>>


    I DONT THINK SO!

    I know Microsoft Dont Want you to either, BUT... We can only try
      My Computer


  4. Posts : 34
    Windows 7 64-bit 7600 OEM
       #4

    OK HERE IT GOES . LOLOLOOLOLOLOLOL VERY HAPPY

    Firstly,
    SET UP THE USB KEY/HDD DEVICE With The Windows PE 3.0 (Win7)
    Then Either Boot up into the PE Environment Or Windows 7 Environment
    Open evelated as Adminstrator CMD PROMPT

    Here i setup my variables ---- I keep all little scripts in text files as REUSABLE CODE ----

    set drive=I: /// enter drive where vhd is stored
    set VHD=\Win7_RC1x64.vhd /// enter vhd file name
    set description="VHD BOOT"

    bcdedit /store i:\boot\bcd /enum
    bcdedit /store i:\boot\bcd /copy {default} /d %description%
    Bcdedit /store i:\boot\BCD /set <GUID> device = vhd=[%drive%]%VHD%
    Bcdedit /store
    i:\boot\BCD /set <GUID> osdevice = vhd=[%drive%]%VHD%
    Bcdedit /store
    i:\boot\BCD /set <GUID> detecthal yes

    syntax used:

    BCDEDIT /STORE <DRIVE><PATH OF STORE> /Other normal bcdedit cmds

    With this you can have a dual boot USB device If you just want the VHD BOOT then just delete the entry.

    bcdedit /store i:\boot\bcd /delete {GUID} <<< old PE:

    and delete the relevent <old PE stuff>

    REMEMBER TO KEEP \BOOT <<<<< This is where the BCD files are <<<

    >>>> Thanks for the journey <<<
    I had been wondering how to do this then after some carefull thought...
    IF you can boot PE / Windows Install IT MUST BE POSSIBLE! Only constraint is the size of the key must be able to HOUSE the VHD...

    Im not sure if microsoft want you to boot off a usb key... But If its possible YOU CAN....
      My Computer


  5. Posts : 13
    Windows 7 RTM (From Connect Italian Beta Program)
    Thread Starter
       #5

    Soorry If i've not replied before, but i'm testing it only now

    I'll reply soon to tell about esit, thankx a lot !
      My Computer


  6. Posts : 13
    Windows 7 RTM (From Connect Italian Beta Program)
    Thread Starter
       #6

    A problem:

    C:\Windows\system32>bcedit /store I:\boot\bcd /set <GUID> device=vhd=%drive%]%VHD%

    Unable to find specified file

    I tried to echo %drive% and %VHD% and both are rights.. so, whats?
      My Computer


  7. Posts : 13
    Windows 7 RTM (From Connect Italian Beta Program)
    Thread Starter
       #7

    1) I have not copy&pasted the GUID of newly created os entry

    2) beetween device and vhd MUST NOT BE A '=' !
      My Computer


  8. Posts : 13
    Windows 7 RTM (From Connect Italian Beta Program)
    Thread Starter
       #8

    A problem: after succesfully created bcd entry on usb key, and copied vhd file into it ...

    when booting

    "BOOTMGR missing"

    Sigh...... but my WHD is bootable ... It was originally a virtualbox vid file and i converted it.

    Waht could be the problem? The bootloader has been found, and when vhd is loaded the boot loader cannot find BBOTMGR but my boor folder is here .. sigh.. what's the problem?
      My Computer


  9. Posts : 13
    Windows 7 RTM (From Connect Italian Beta Program)
    Thread Starter
       #9

    Code:
    Windows Boot Manager
    --------------------
    identificatore          {bootmgr}
    description             Windows Boot Manager
    locale                  en-US
    inherit                 {globalsettings}
    displayorder            {bcf89438-a22f-11de-aeab-000d6113bcb4}
    toolsdisplayorder       {memdiag}
    timeout                 30
    
    Caricatore di avvio di Windows
    -------------------
    identificatore          {bcf89438-a22f-11de-aeab-000d6113bcb4}
    device                  vhd=[I:]\Win7.vhd
    path                    \windows\system32\boot\winload.exe
    description             VHD Boot
    locale                  en-US
    inherit                 {bootloadersettings}
    osdevice                vhd=[I:]\Win7.vhd
    systemroot              \windows
    detecthal               Yes
    winpe                   Yes
    ems                     Yes
      My Computer


  10. Posts : 1,557
    XP, Seven, 2008R2
       #10

    realtebo said:
    cannot find BBOTMGR but my boor folder is here .. sigh.. what's the problem?

    I think bootmgr needs to exist on the root of the drive, not in the \boot folder

    I assume you are selecting the USB device as first boot device (in the BIOS) and you already made the USB drive bootable using something like the bootsect tool?
    Last edited by sup3rsprt; 15 Sep 2009 at 17:14.
      My Computer


 
Page 1 of 3 123 LastLast

  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 19:44.
Find Us