Jump to content











Photo
* * * * * 4 votes

Universal HDD Image files for XP and Windows 7

vhd tutorial

  • Please log in to reply
1106 replies to this topic

#76 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 11 June 2010 - 12:21 PM

Ok, a bit different use than i thought.
Still i would think, that installing drivers on the fly from a second image, would be the more universal approach.


:)


you mean just the RAID drivers alone or all drivers ? i already told wimb a way , that chinese use to detect the driver from a zip file right from boot before loading the main image (.img or .wim whatever) . in case you are interested too ,then let me know i ll forward you the iso .

#77 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 June 2010 - 01:10 PM

you mean just the RAID drivers alone or all drivers ? i already told wimb a way , that chinese use to detect the driver from a zip file right from boot before loading the main image (.img or .wim whatever) . in case you are interested too ,then let me know i ll forward you the iso .

Since the image is suppose to be installed to a HDD, i would integrate all Massstorage drivers by default, they don't take up a lot of space and install the rest of the drivers on the fly from a second image.
Resulting in a final image without unnecessary drivers, which works even on those pesky computers with different nforce chipsets.

Sure, forward the iso, i always love to see new ideas.


:)

#78 davlak

davlak

    Frequent Member

  • Advanced user
  • 224 posts
  •  
    Italy

Posted 24 June 2010 - 08:29 AM

Good morning
I've created a WIN7.img 3.9 GB sized (vlited) from a perfectly running win7 on my HD.
I have 8gb ram, so i've thought to boot directly mapping the img into memory with grub4dos pae-modded, and effectively it does the job but after the mapping the boot stops for an error into BCD configuration.
actually I see the settings into the bcd pointing to the wrong letter of partition but I have no idea how to change it.
in fact neither bcdedit nor easybcd beta2.100 can edit the bcd on the virtual imdisk.
need some help, thanks.

#79 ktp

ktp

    Silver Member

  • Advanced user
  • 773 posts

Posted 24 June 2010 - 09:13 AM

@davlak

You can run "boot corrector" with Partition Saving utility :
http://damien.guibou...tml#Chapitre_12

#80 karyonix

karyonix

    Frequent Member

  • Advanced user
  • 481 posts
  •  
    Thailand

Posted 24 June 2010 - 09:13 AM

@davlak
Convert disk image to VHD.
Attach VHD to VirtualBox.
Boot Windows 7 DVD. Press shift+F10 open cmd.exe. Use bcdedit from there.

#81 davlak

davlak

    Frequent Member

  • Advanced user
  • 224 posts
  •  
    Italy

Posted 24 June 2010 - 04:39 PM

@davlak
Convert disk image to VHD.
Attach VHD to VirtualBox.
Boot Windows 7 DVD. Press shift+F10 open cmd.exe. Use bcdedit from there.

Thanks, your suggest worked. :unsure:

I'm asking myself if it's possible to clone the win7 hd installation on a 3\4 GB VHD and directly boot from it...I want to give it a try

#82 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 24 June 2010 - 05:01 PM

I'm asking myself if it's possible to clone the win7 hd installation on a 3\4 GB VHD and directly boot from it...I want to give it a try


JFYI:
http://www.boot-land...?showtopic=7453

CLONEDISK can convert back and forth:
http://www.boot-land...?showtopic=8480

:unsure:
Wonko

#83 davlak

davlak

    Frequent Member

  • Advanced user
  • 224 posts
  •  
    Italy

Posted 24 June 2010 - 07:39 PM

JFYI:
http://www.boot-land...?showtopic=7453

CLONEDISK can convert back and forth:
http://www.boot-land...?showtopic=8480

:unsure:
Wonko


Thanks, I'll give it a try.

I must admit that recently I've lost many many updates by boot-land due to my job. :unsure:
anyway: I've tried to clone the win7 lite from HD to VHD and boot from it and...IT WORKS.

ah, btw: booting the VHD's win7 lite (I suppose the HD's one too) and launching IMG_XP_Update.exe from it, pointing to the .IMG with the wrong BCD, seems to work fine, doesn't need to use VM and bcdedit from rescue cd.

#84 jeffspeff

jeffspeff

    Newbie

  • Members
  • 13 posts
  • Location:Kentucky, USA
  •  
    United States

Posted 25 July 2010 - 10:46 PM

Is there a way to use imgxp_restore to properly transfer a vhd into a .wim file? Please refer to the topic I made for what i'm trying to do exactly.

http://www.boot-land...showtopic=12074

#85 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 26 July 2010 - 05:48 AM

Is there a way to use imgxp_restore to properly transfer a vhd into a .wim file? Please refer to the topic I made for what i'm trying to do exactly.

http://www.boot-land...showtopic=12074

IMX_XP_Restore.exe is not a program to convert vhd into boot.wim file
You may use the program to restore a vhd file to a HDD drive, but that was not yet tested by me.

In view of what you want, it is may be not necessary to convert vhd into boot.wim
May be you can use vhd file directly to boot into FiraDisk ramdisk :cheers:
http://www.boot-land...?showtopic=8804

#86 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 07 September 2010 - 10:10 PM

Hi wimb,

Thanks for your nice tool.
Could I request something, please?
Could you update IMG_XP_Update.exe to add 300mg, 400mg, 500mg Image File Size, please?
My old mobo boot 431mb.img into ram takes 20 minutes.
My (nLite) xp pro full windows size is 238mg (uncompressed).
I've removed all users apart from Administrator, removed all languages, all old drivers, printers & scanners drivers, all files from Window Media player and IE. But can install Windows media 11, and all drivers after set up.
I've tried with fira disk, successful in own pc, but failed at work. (USB)Keyboard & Mouse are disappeared.

Thank you.

ah

#87 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 08 September 2010 - 10:04 AM

Thanks for using IMG_XP.

At the moment I have no time to Update IMG_XP and give support for small size images.

For Image size less than 1 GB you may use the version of joakim

http://www.911cd.net...o...62777&st=25

#88 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 08 September 2010 - 04:46 PM

:D
Hi wimb,

Thanks for your time and reply.
I'll try on weekends.
BTW: There is no attachment service for upload file.
I want to brag my success. :D
Edit: I've tried with joakim's one. Thanks to joakim.
Unfortunately, after selecting 400mb or 500mb or 600mb or 700mb, when I click on "Source Drive - Windows Folder" it has changed to 1.4 GB (default size) "Image File Size". Any one has the same error or only me?

:D

ah

#89 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 184 posts
  • Location:tel aviv
  •  
    Israel

Posted 07 November 2010 - 07:58 PM

In a long time I'm looking for a solution that works succeed to run full xp from usb....

i secseded to make multiBOOT usb with many tools (xp,2003,win7 setups, erd 2005, erd 6.5 for win7, bartpe, full win7 ,winxpe, win7pe, all acronis apps, ubuntu, kubuntu, knoppix, ubcd, heiron cd, many more tools and antivirus..............)
i realy need 1 more think to make it perfect - full xp .
i tray many turtuils but i canot make it work,
the only work solushen is to modifey my xp cd and install on my usb
Ngine.de), but then its work only on the first pc, on difrent hardware i get blue sceeen (even if i set ide to standard and computer to advansed acpi....)

Six months ago I've tried your "IMG_XP" now I gave it another chance But I was disappointed again

i use xp pro sp3 with full driver pack Integrated (Otherwise i can not control computer if keyboard and mouse connected to usb)
I disabled System Restore,page file,Hibernate And many other unwanted components
i boots from win7-usb-hd and make my XPRAM_1.img
my image size is 1.34gb ntfs compressed (2.1gb uncompressed )
its boot fine from ram But not every computer can afford to load large files like this (Although not yet installed any software.....i want to install at last 1 more gb of software so Load from memory is not so useful) Even if you tell me to use only portable software and put them outside the img , steel my windows takes 1.34gb and many pc's load to ram very slow file like this....(If any)

because my image is full driver integrate then no need to manually install any driver when i boot different pc from ram. because of this i dont use "update image" tool - Am I right?


i also changed all ide & usb drivers to standard in device manager and computer to "advanced....."

so i trays "restore to usb" but than its work only in the first pc ... on other pc's i get blue screen

I also tried to run the image directly from usb without "--ram" - but i get blue screen

find --set-root --ignore-floppies /XPRAM_1.img

map  /XPRAM_1.img (hd0)

map --hook

root (hd0,0)

chainloader /ntldr

I read in the forum that you can use driver name WinVBlock or ewf so you can boot directly from the usb, But I have no idea how to do it

Someone knows how to run the image directly? Or perhaps what I missed with "restore to usb" To finally i get full xp work on every pc???

thanks for your work :confused1:

#90 sara - pmedia

sara - pmedia

    Frequent Member

  • Lady
  • 184 posts
  • Location:tel aviv
  •  
    Israel

Posted 28 November 2010 - 02:45 PM

From what I understand "IMG_XP_by_Wimb" way is the only one can really build universal usb image.
I want to build the best possible universal image and only then restore it on my usb.

i want make smallest as possible image (For ability to use learning process on 1GB ram machine) so i use lite-xp source.

Each time i'm boot different PC install drivers with driver force (full DriverPack Dir) and use "update_img" but Each time Image size will be larger... (about 50mb more)...

1. Do I really have to install all drivers including {sound, LAN, wireless, VGA, Bluetooth,modem,ect....} (They very increase the image) Or maybe enough just to wait for the system is self-installs the necessary?

2. From what I checked, Not enough to do the learning process on "Little different hardware" You must do this each chipset/model.... Otherwise it does not work. Maybe someone here can make and share with us a package which will include updates to the registry and files necessary for different types of hardware???


Thanks everyone and especially Wimb :D

#91 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 28 November 2010 - 06:47 PM

If your goal is to boot from USB, when you have booted your image to RAM, check Device Manager to ensure that USB devices are installed. Also, check to see if your USB storage device shows up. Plug it into all USB ports on the system, and let it install, to ensure that there is an association for each port. Check that USB drivers are still set to boot-start before your re-capture your image.

#92 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 07 February 2011 - 07:21 PM

@ Wimb

ok here is the long story short ,


i made .img file of xp sp3 with winvblock's 30jan 2011 edition,installed EWF on it after booting this img as FILE DISK .
contonue booting it on different systems (1 laptop , 5 systems ) from my USB-HDD as FILE-DISK
commit changes via EWF after installing sound and NETwork drivers .

ok everything fine until now ,

NOW , i wanted to RESTORE this image to primary partition of my usb-hdd .


here is what i tried first ,

1. i simply click " xp_restore" from ur package , and starting restoring it to my usb-hdd .
2/ tried booting from usb-hdd's primary partition ( 0x7B BSOD with winvblock ALIVE )


then i again , copied img to my hdd , booted it as RAMDISK . (my usb-hdd is already connected , and remember it is the same USB-HDD which i previously used to boot the same .img file on multiple comuputers successfully ) .

i clicked " img xp update" , and updated the .img file on hdd , which i used for booting as RAMDISK .


AGAIN restored the .img file to primary partition of my usb-hdd ( SAME BSDO 0x7B 0 .


i have CHECKED, and the usb boot drivers are set to start 0 .

(only USB PRINT has Start 0x003 ) . does it matter ? i think not since img file is loading fine either from usb or hdd .

i have already have usbbootwatcher installed /


thanks in advance.

#93 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 08 February 2011 - 01:09 PM

Try to use usb_xp_init.cmd on offline Windows restored to USB partition
Or try to use USB_XP_Fix.exe to offline XP image file and then use this image to restore to partition.

usb_xp_init.cmd and USB_XP_Fix.exe prepopulate CriticalDeviceDatabase and Install UsbBootWatcher as service.

Or better try NEW package IMG_XP Version 2.0

http://reboot.pro/13...post__p__121808

#94 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 08 February 2011 - 01:38 PM

usbbootwatcher service is already active , however i will try again with new package and report back.

thanks.....

#95 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 08 February 2011 - 03:20 PM

=
*** IMG_XP package Version 2.0 - Boot XP from Image file on USB ***

You can use IMG_XP_Create.exe and USB_XP_Fix.exe to make Universal XP Image file bootable from USB.

Download - IMG_XP

0. Run IMG_XP.exe and Extract to the Root of your Local Harddisk - gives folder IMG_XP
1. Use IMX_XP\makebt\imdiskinst.exe to Install ImDisk driver (if not present)
- Imdisk is used to mount the HDD Image file in a virtual drive
2. Run IMG_XP_Create.exe and Select your Target settings and click NEW to create XP-1.img and Menu for XP Setup
- Select Local Harddisk as Target drive and select XP Setup ISO file in root of Target Drive
- and Select checkbox to make grub4dos XP Setup Boot Menu in menu.lst on local bootable Target Drive
3. Reboot and in Grub4dos menu select Start XP Setup on XP-1.img - WinVBlock driver
- XP-1.img has already NTFS compressed format, so you should NOT format at Setup, just keep settings
- Format inside XP Setup cannot be used, it results in corrupt message
4. After Reboot select Continue XP Setup and then Reboot to Start XP from Image XP-1.img
5. Install missing drivers with DriverForge and Reduce size and improve settings as usual
- Set System Restore and Windows Update Off and Run PURGE_DLLCACHE.BAT to delete 350 MB of dllcache folder
- Reduce Size e.g. Change Virtual memory and Sleep settings to get rid of pagefile.sys and hiberfil.sys
6. Connect USB-HDD where you want to use XP Image, so that USB-HDD settings are known in XP registry, and Reboot
7. Reboot with other OS and copy XP-1.img to bootable USB-drive and create entry in Grub4dos menu.lst
8. Run USB_XP_Fix.exe and Select your XP-1.img file on USB-drive and click GO
9. Reboot from USB and Select Boot XP Image - XP-1.img - WinVBlock FILEDISK

Thanks to Sha0 for making WinVBlock driver - http://reboot.pro/8168/
Thanks to cdob for making usb_xp_init.cmd - http://www.911cd.net...pic=22473&st=37
Thanks to sara - pmedia for her tutorial - http://reboot.pro/13731/

menu.lst on USB drive

title Load XP Image - XP-1.img - WinVBlock RAMDISK - Boot XP in RAMDISK

# Sector-mapped disk 

map --mem /XP-1.img (hd0) 

# Dummy WinVBlock parameter disk 

map --rd-size=2048 

map --mem (rd)+4 (0x55) 

# Commit mapped drives 

map --hook 

# Tell WinVBlock the filename to switch from sector-mapped to file-backed 

write (0x55) #GRUB4DOS\x00v=1\x00XP-1.img\x00\x80\x00 

# Boot the Windows in the image file 

root (hd0,0) 

chainloader /ntldr



title Boot XP Image - XP-1.img - WinVBlock FILEDISK 

# Sector-mapped disk 

map /XP-1.img (hd0) 

# Dummy WinVBlock parameter disk 

map --rd-size=2048 

map --mem (rd)+4 (0x55) 

# Commit mapped drives 

map --hook 

# Tell WinVBlock the filename to switch from sector-mapped to file-backed 

write (0x55) #GRUB4DOS\x00v=1\x00XP-1.img\x00\x80\x00 

# Boot the Windows in the image file 

root (hd0,0) 

chainloader /ntldr




:smiling9:

#96 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 08 February 2011 - 04:27 PM

menu.lst on USB drive


title Load XP Image - XP-1.img - WinVBlock RAMDISK - Boot XP in RAMDISK

map --mem /XP-1.img (hd0)

map --hook

root (hd0,0)

chainloader /ntldr



title Boot XP Image - XP-1.img - WinVBlock FILEDISK 

map /XP-1.img (hd0)

map --hook

root (hd0,0)

chainloader /ntldr

Please pass the filename for file-backed disks.

title Boot XP Image - XP-1.img - WinVBlock FILEDISK

  # Sector-mapped disk

  map /XP-1.img (hd0)

  # Dummy WinVBlock parameter disk

  map --rd-size=2048

  map --mem (rd)+4 (0x55)

  # Commit mapped drives

  map --hook

  # Tell WinVBlock the filename to switch from sector-mapped to file-backed

  write (0x55) #GRUB4DOS\x00v=1\x00XP-1.img\x00\x80\x00

  # Boot the Windows in the image file

  root (hd0,0)

  chainloader /ntldr



#97 davlak

davlak

    Frequent Member

  • Advanced user
  • 224 posts
  •  
    Italy

Posted 08 February 2011 - 05:27 PM

hey Guys...you're simply FANTASTIC! :dubbio:

#98 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 08 February 2011 - 05:49 PM

Please pass the filename for file-backed disks.


title Boot XP Image - XP-1.img - WinVBlock FILEDISK

  # Sector-mapped disk

  map /XP-1.img (hd0)

  # Dummy WinVBlock parameter disk

  map --rd-size=2048

  map --mem (rd)+4 (0x55)

  # Commit mapped drives

  map --hook

  # Tell WinVBlock the filename to switch from sector-mapped to file-backed

  write (0x55) #GRUB4DOS\x00v=1\x00XP-1.img\x00\x80\x00

  # Boot the Windows in the image file

  root (hd0,0)

  chainloader /ntldr


Oops ! - I forgot it here - Thanks for reminding me. :dubbio:

The program IMG_XP_Create.exe will pass filename in the grub4dos menu entries for XP Setup.

:cheers:

#99 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 08 February 2011 - 07:07 PM

wimb,


i did it again , by using your new " img xp restore " , and i noticed that it applied cdob's batch file at the end ,

but again , it gave me BSOD while booting from the hdd . (after restoring IMG file ) ,

then i tried , and replace NTDETECT.COM with Dietmer's Modded NTDETACT.COM driver ,
this time , it BOOTS FINE :cheers:


Happy Happy :dubbio:

#100 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 08 February 2011 - 07:12 PM

then i tried , and replace NTDETECT.COM with Dietmer's Modded NTDETACT.COM driver ,
this time , it BOOTS FINE :unsure:


Happy Happy :cheers:


Great that you have got it working now. :dubbio:

:w00t:





Also tagged with one or more of these keywords: vhd, tutorial

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users