View Single Post
  #44  
Old July 18th 18, 04:21 AM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default I'd like to boot Windows from an external drive.

Carlos E.R. wrote:
On 2018-07-12 21:12, Paul wrote:
Carlos E.R. wrote:


I got mine working :-)


I saved this post and will try when time and hardware permits, thanks :-)


Does it has to be the enterprise version?


I discovered what was making my install.wim a little difficult
to make. It's the usual thing. I have a RAMDisk.img which is
stored as a sparse file (most of RAMDisk images are zeros,
and a sparse representation handles this nicely). And lots of
programs have no special handler for sparse, so they expand the
file to full size.

That's especially important in this case. I set the compression
to none, when making the install.wim (copy of a copy of the C: drive).
By deleting the RAMDisk.img file (it can easily be recreated),
the install.wim is just a bit smaller than the C: effectively
being imaged. I expect the process ignores things like
pagefile, but haven't checked with 7ZIP to see what
files are in there.

DISM has some error handling, but it also has lots of "I've
fallen asleep" failure cases that don't help. Looking in
dism.log doesn't always help.

dism /capture-image /imagefile:G:\install.wim /capturedir:H:\ /ScratchDir:G:\Scratch /name:"AnyName" /compress:none /checkintegrity /verify /bootable

The WinToUSB doesn't have a problem with that install.wim
and transfers it to the external USB storage no problem.
I think in this case, the image would have fit on my
32GB USB flash key, but it wouldn't be particularly
healthy for it (lots of unnecessary writes I could do
without). A conventional HDD hanging off a USB adapter
should give years of good service.

Paul
Ads