Jump to content











Photo
- - - - -

commands to go from esd to vhd and from vhd to esd

commands

  • Please log in to reply
7 replies to this topic

#1 blackbalfur

blackbalfur

    Member

  • Members
  • 39 posts
  •  
    Netherlands

Posted 01 April 2018 - 04:42 PM

You cannot simply change the name.

 

First 2 rules:

 

1. you can only use this technique on windows 8 and higher.

 

2. you cannot capture an os that you are right in.

 

Ok that are da rules.

 

I found 4 commands that can do this trickery, download them here:

 

https://mega.nz/#!Nt...GxKi-6CBSi-oV7Q

 

command 1:

 

Dism /Capture-Image /ImageFile:C:\Install.wim /CaptureDir:K:\ /Name:"anything you want"

 

What does this do?

 

You must mount the .vhd file that you want to capture that is holding an os. 

 

This command capture your mounted .vhd file (in this case K: in your case it might be different and you must change it then) and turn it into a install.wim file.

 

The install.wim file will be on the root of your hd ( on C: )

 

The part /Name:"anything you want" is for you to fill in and will appear in for example the winntsetup tool but it is not really important.

 

This proces is rather fast on a decent computer.

 

command 2:

 

DISM /Export-Image /SourceImageFile:C:\install.wim /SourceIndex:1 /DestinationImageFile:C:\install.esd /compress:recovery /CheckIntegrity

 

What does this do?

 

Only and only if you want your project file to be as small as can be, you will use this command.

 

Ok in the first command we created the install.wim file in the root of you hd ( C: ) 

 

The file must be right there to make this new command happen!

 

This command will convert your install.wim file into install.esd

 

Why? because the install.esd file is so much smaller, it is like you use the best option in winrar.

 

But beware this command takes a lot of time, even om my 16 GB ram computer.

 

The result is worth it in my opinion!

 

command 3 and 4:

 

Dism /apply-image /imagefile:C:/install.esd /index:1 /ApplyDir:K:\

 

Dism /apply-image /imagefile:C:/install.wim /index:1 /ApplyDir:K:\

 

What does this do?

 

Both commands will give you the option to "unrar" your install.wim or install.esd file to an empty mounted .vhd file.

 

Again the /ApplyDir:K:\ in this example can be different in your setup so change :K: into the letter that is your mounted empty .vhd

 

How can you create a empty .vhd file?

 

You do this with simple vhd manager:

 

https://www.sordum.o...d-manager-v1-3/

 

download simple vhd manager:

 

https://www.sordum.o...ple-vhd-manager

 

see this video how to use it:

 

https://youtu.be/fJF8JHzxVAU

 

So this completes the circle, from vhd to wim to esd and back from esd or wim to vhd  wink.png .


Edited by blackbalfur, 01 April 2018 - 04:43 PM.


#2 alacran

alacran

    Silver Member

  • Advanced user
  • 631 posts
  •  
    Mexico

Posted 02 April 2018 - 06:51 PM

You can do all this and with better compression rate and also faster if you use wimlib-imagex and no limitation fom Win8 to newest., you may use it from Win7 to last win10.

To make things easier you do not need to make a VHD just to latter capture it with a higher or lower compress format. To do this use Export/Optimize Tab to export your selected index to a new .wim or .esd file (you may send this way all index to a new image if you want one by one).

Try WimLib_clc http://reboot.pro/to...ta/#entry206470  GUI front end for wimlib-imagex it has all you need.

 

Best Regards

 

alacran


  • blackbalfur likes this

#3 blackbalfur

blackbalfur

    Member

  • Members
  • 39 posts
  •  
    Netherlands

Posted 02 April 2018 - 07:58 PM

Ok that is a nice tool to have.

 

But knowing how it works with some simple commands is also nice.

 

The best thing of this tool is that it works on windows 7!!

 

On the other hand the method i use seems a lot easier to me.


Edited by blackbalfur, 02 April 2018 - 08:07 PM.


#4 alacran

alacran

    Silver Member

  • Advanced user
  • 631 posts
  •  
    Mexico

Posted 02 April 2018 - 10:35 PM

You should compare how long takes to make a new image in both ways, and also final image size, before decide wich works better, The tool I am suggesting to you, in fact it runs from XP to 10 OS or PE's

 

Also if you are interested, there is a batch file from abbodi1406 to let you make this compression works more automated, it goes both ways, from wim to esd and from esd to wim: http://www.mirrorcre.../files/1AI10G13

It uses wimlib-imagex and a batch file, instructions included in download.



#5 blackbalfur

blackbalfur

    Member

  • Members
  • 39 posts
  •  
    Netherlands

Posted 03 April 2018 - 12:50 AM

I will test this other tool.

 

Do not get me wrong i never suggested that my method works better.

 

I stated that my method is easier in use comfort.

 

The batch files i collected can be followed by a n00b.

 

The tool you suggested is nice to have when you have computer skills.

 

That is the main reason i released them, so that everybody can use them not only experts.

 

The second tool you showed is more user friendly and it give me a sligthly better compression.

 

A 642 mb install.esd file i created with my method is a 622 mb install.esd file with your tool.

 

The working time is also long, i can not see any difference in that.

 

The fact that it works with even xp makes me liking it a lot.

 

So thank you for this tool.


Edited by blackbalfur, 03 April 2018 - 12:52 AM.


#6 alacran

alacran

    Silver Member

  • Advanced user
  • 631 posts
  •  
    Mexico

Posted 04 April 2018 - 09:36 PM

 

Do not get me wrong i never suggested that my method works better.

 

I stated that my method is easier in use comfort.

 

The batch files i collected can be followed by a n00b.

 

The second tool you showed is more user friendly and it give me a sligthly better compression.

 

A 642 mb install.esd file i created with my method is a 622 mb install.esd file with your tool.

 

The working time is also long, i can not see any difference in that.

 

The fact that it works with even xp makes me liking it a lot.

 

I was only trying to make this tools available to you, no intention to go against your preferences.

 

Hope you can make good use of them.

 

alacran


  • blackbalfur likes this

#7 Chandra-Orbit

Chandra-Orbit

    Member

  • Members
  • 31 posts
  • Location:Jakarta, Indonesia
  • Interests:I am just a person who likes to learn about life and life itself
  •  
    Indonesia

Posted 08 April 2018 - 04:46 PM

Some time ago, I also have created a small tool on the basis suggested by ALCRAN, with a view to facilitate the user n00B.
 
Look here

Edited by Chandra-Orbit, 08 April 2018 - 04:47 PM.


#8 alacran

alacran

    Silver Member

  • Advanced user
  • 631 posts
  •  
    Mexico

Posted 09 April 2018 - 08:50 PM

 

Some time ago, I also have created a small tool on the basis suggested by ALCRAN, with a view to facilitate the user n00B.
 
Look here

 

 

Good Tool too.

 

I saw your thread before but forgot about it, very usefull for split *.esd, *.wim image files.

It was good you put a link in this thread.

 

alacran







Also tagged with one or more of these keywords: commands

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users