]> wimlib.net Git - wimlib/blob - doc/man1/wimlib-imagex-apply.1
4e8bc8d8d65ba6ddec7782ddd64a98eb4242af0a
[wimlib] / doc / man1 / wimlib-imagex-apply.1
1 .TH WIMLIB-IMAGEX "1" "August 2016" "wimlib 1.10.0" "User Commands"
2 .SH NAME
3 wimlib-imagex-apply \- Extract one image, or all images, from a WIM archive
4 .SH SYNOPSIS
5 \fBwimlib-imagex apply\fR \fIWIMFILE\fR [\fIIMAGE\fR] \fITARGET\fR [\fIOPTION\fR...]
6 .SH DESCRIPTION
7 \fBwimlib-imagex apply\fR extracts an image, or all images, from the Windows
8 Imaging (WIM) file \fIWIMFILE\fR.  This command is also available as simply
9 \fBwimapply\fR if the appropriate hard link or batch file has been installed.
10 .PP
11 This command is designed to extract, or "apply", one or more full WIM images.
12 If you instead want to extract only certain files or directories contained in a
13 WIM image, consider using \fBwimlib-imagex extract\fR or
14 \fBwimlib-imagex mount\fR instead.  (\fBwimlib-imagex mount\fR is not
15 supported on Windows.)
16 .PP
17 \fIIMAGE\fR specifies the WIM image in \fIWIMFILE\fR to extract.  It may be a
18 1-based index of an image in \fIWIMFILE\fR, the name of an image in
19 \fIWIMFILE\fR, or the keyword "all" to indicate that all images in \fIWIMFILE\fR
20 are to be extracted.  Use the \fBwimlib-imagex info\fR (1) command to show
21 what images a WIM file contains.  \fIIMAGE\fR may be omitted if \fIWIMFILE\fR
22 contains only one image.
23 .PP
24 \fITARGET\fR specifies where to extract the WIM image to.  If \fITARGET\fR
25 specifies a directory, the WIM image is extracted to that directory (see
26 \fBDIRECTORY EXTRACTION (UNIX)\fR or \fBDIRECTORY EXTRACTION (WINDOWS)\fR).
27 Similarly, if \fITARGET\fR specifies a non-existent file, a directory is created
28 in that location and the WIM image is extracted to that directory.
29 .PP
30 If \fIIMAGE\fR is specified as "all", then all the images in \fIWIMFILE\fR are
31 actually extracted into subdirectories of \fITARGET\fR, each of which is given
32 the name of the corresponding image, falling back to the image index in the case
33 of an image with no name or a name not valid as a filename.
34 .PP
35 Alternatively, on UNIX-like systems only, if \fITARGET\fR specifies a regular
36 file or block device, it is interpreted as an NTFS volume to which the WIM image
37 is to be extracted (see \fBNTFS VOLUME EXTRACTION (UNIX)\fR).  Only a single
38 image can be extracted in this mode, and only extracting to the root of the NTFS
39 volume (not a subdirectory thereof) is supported.
40 .PP
41 \fIWIMFILE\fR may be "-" to read the WIM from standard input rather than from a
42 file, but see \fBPIPABLE WIMS\fR for more information.
43 .PP
44 \fBwimlib-imagex apply\fR supports applying images from stand-alone WIMs as
45 well as split WIMs.  See \fBSPLIT WIMS\fR.
46 .SH DIRECTORY EXTRACTION (UNIX)
47 This section documents how \fBwimlib-imagex apply\fR (and also
48 \fBwimlib-imagex extract\fR) extract a WIM image (or a possibly a subset
49 thereof, in the case of \fBwimlib-imagex extract\fR) to a directory on
50 UNIX-like systems.  See \fBDIRECTORY EXTRACTION (WINDOWS)\fR for the
51 corresponding documentation for Windows.
52 .PP
53 As mentioned, a WIM image can be applied to a directory on a UNIX-like system by
54 providing a \fITARGET\fR directory.  However, it is important to keep in mind
55 that the WIM format was designed for Windows, and as a result WIM files can
56 contain data or metadata that cannot be represented on UNIX-like systems.  The
57 main information that \fBwimlib-imagex\fR will \fInot\fR be able to extract
58 on UNIX-like systems is the following:
59 .IP \[bu] 4
60 Windows security descriptors (which include the file owner, group, and ACLs).
61 .IP \[bu]
62 Named data streams.
63 .IP \[bu]
64 Reparse points other than symbolic links and junction points.
65 .IP \[bu]
66 Certain file attributes such as compression and encryption.
67 .IP \[bu]
68 Short (DOS) names for files.
69 .IP \[bu]
70 File creation timestamps.
71 .PP
72 Notes: Unsupported data and metadata is simply not extracted, but
73 \fBwimlib-imagex\fR will attempt to warn you when the contents of the WIM
74 image can't be exactly represented when extracted.  Last access and last
75 modification timestamps are specified to 100 nanosecond granularity in the WIM
76 file, but will only be extracted to the highest precision supported by the
77 underlying operating system, C library, and filesystem.  Compressed files will
78 be extracted as uncompressed, while encrypted files will not be extracted at
79 all.
80 .SH NTFS VOLUME EXTRACTION (UNIX)
81 This section documents how \fBwimlib-imagex apply\fR extracts a WIM image
82 directly to an NTFS volume image on UNIX-like systems.
83 .PP
84 As mentioned, \fBwimlib-imagex\fR running on a UNIX-like system can apply a
85 WIM image directly to an NTFS volume by specifying \fITARGET\fR as a regular file
86 or block device containing an NTFS filesystem.  The NTFS filesystem need not be
87 empty, although it's expected that it be empty for the intended use cases.  A
88 new NTFS filesystem can be created using the \fBmkntfs\fR(8) command provided
89 with \fBntfs-3g\fR.
90 .PP
91 In this NTFS volume extraction mode, the WIM image is extracted to the root of
92 the NTFS volume in a way preserves almost all information contained in the WIM
93 image.  It therefore does not suffer from the limitations described in
94 \fBDIRECTORY EXTRACTION (UNIX)\fR.  This support relies on libntfs-3g to write
95 to the NTFS volume and handle NTFS-specific and Windows-specific data.
96 .PP
97 Please note that this NTFS volume extraction mode is \fInot\fR entered if
98 \fITARGET\fR is a directory, even if an NTFS filesystem is mounted on
99 \fITARGET\fR.  You must specify the NTFS volume itself (and it must be
100 unmounted, and you must have permission to write to it).
101 .PP
102 This NTFS volume extraction mode attempts to extract as much information as
103 possible, including:
104 .IP \[bu] 4
105 All data streams of all files except encrypted files, including the unnamed data
106 stream as well as all named data streams.
107 .IP \[bu]
108 Reparse points, including symbolic links, junction points, and other reparse
109 points.
110 .IP \[bu]
111 File and directory creation, access, and modification timestamps, using the
112 native NTFS resolution of 100 nanoseconds.
113 .IP \[bu]
114 Windows security descriptors, including all components (owner, group, DACL, and
115 SACL).
116 .IP \[bu]
117 DOS/Windows file attribute flags.
118 .IP \[bu]
119 All names of all files, including names in the Win32 namespace, DOS namespace,
120 Win32+DOS namespace, and POSIX namespace.  This includes hard links.
121 .IP \[bu]
122 Object IDs.
123 .PP
124 However, a limitation of the NTFS volume extraction mode is that encrypted files
125 will not be extracted.
126 .PP
127 Regardless, since almost all information from the WIM image is restored in this
128 mode, it is possible (and fully supported) to restore an image of an actual
129 Windows installation using \fBwimlib-imagex\fR on UNIX-like systems as an
130 alternative to using \fBwimlib-imagex\fR on Windows.  In the examples at the end
131 of this manual page, there is an example of applying an image from the
132 "install.wim" file contained in the installation media for Windows (Vista or
133 later) in the "sources" directory.
134 .PP
135 Note that to actually boot Windows (Vista or later) from an applied
136 "install.wim" image, you also need to mark the partition as "bootable" and set
137 up various boot files, such as \\BOOTMGR and \\BOOT\\BCD.  The latter task is
138 most easily accomplished by running the "bcdboot.exe" program from a live
139 Windows system (such as Windows PE), but there are other options as well.
140 .SH DIRECTORY EXTRACTION (WINDOWS)
141 On Windows, \fBwimlib-imagex apply\fR and \fBwimlib-imagex extract\fR
142 natively support Windows-specific and NTFS-specific data.  For best results, the
143 target directory should be located on an NTFS volume and \fBwimlib-imagex\fR
144 should be run with Administrator privileges; however, non-NTFS filesystems and
145 running without Administrator privileges are also supported.
146 .PP
147 On Windows, \fBwimlib-imagex apply\fR and \fBwimlib-imagex extract\fR
148 try to extract as much data and metadata as possible, including:
149 .IP \[bu] 4
150 All data streams of all files.  This includes the default file contents, as well
151 as named data streams if supported by the target volume.
152 .IP \[bu]
153 Reparse points, including symbolic links, junction points, and other reparse
154 points, if supported by the target volume.  (Note: see \fB--rpfix\fR and
155 \fB--norpfix\fR for documentation on exactly how absolute symbolic links and
156 junctions are extracted.)  However, as per the default security settings of
157 Windows, it is impossible to create a symbolic link or junction point without
158 Administrator privileges; therefore, you must run \fBwimlib-imagex\fR as the
159 Administrator if you wish to fully restore an image containing symbolic links
160 and/or junction points.  (Otherwise, merely a warning will be issued when a
161 symbolic link or junction point cannot be extracted due to insufficient
162 privileges.)
163 .IP \[bu]
164 File and directory creation, access, and modification timestamps, to the highest
165 resolution supported by the target volume.
166 .IP \[bu]
167 Security descriptors, if supported by the filesystem and \fB--no-acls\fR is not
168 specified.  Furthermore, unless \fB--strict-acls\fR is specified, the security
169 descriptors for individual files or directories may be omitted or only partially
170 set if the user does not have permission to set them, which can be a problem if
171 \fBwimlib-imagex\fR is run as a non-Administrator.
172 .IP \[bu]
173 File attributes, including hidden, compressed, encrypted, etc, when supported by
174 the filesystem.
175 .IP \[bu]
176 DOS names (8.3) names of files; however, the failure to set them is not
177 considered an error condition.
178 .IP \[bu]
179 Hard links, if supported by the target filesystem.
180 .IP \[bu]
181 Object IDs, if supported by the target filesystem.
182 .PP
183 Additional notes about extracting files on Windows:
184 .IP \[bu] 4
185 \fBwimlib-imagex\fR will issue a warning when it is unable to extract the
186 exact metadata and data of the WIM image, for example due to features mentioned
187 above not being supported by the target filesystem.
188 .IP \[bu]
189 Since encrypted files (with FILE_ATTRIBUTE_ENCRYPTED) are not stored in
190 plaintext in the WIM image, \fBwimlib-imagex\fR cannot restore encrypted
191 files to filesystems not supporting encryption.  Therefore, on such filesystems,
192 encrypted files will not be extracted.  Furthermore, even if encrypted
193 files are restored to a filesystem that supports encryption, they will only be
194 decryptable if the decryption key is available.
195 .IP \[bu]
196 Files with names that cannot be represented on Windows will not
197 be extracted by default; see \fB--include-invalid-names\fR.
198 .IP \[bu]
199 Files with full paths over 260 characters (the so-called MAX_PATH) will be
200 extracted, but beware that such files will be inaccessible to most Windows
201 software and may not be able to be deleted easily.
202 .IP \[bu]
203 On Windows, unless the \fB--no-acls\fR option is specified, wimlib will attempt
204 to restore files' security descriptors exactly as they are provided in the WIM
205 image.  Beware that typical Windows installations contain files whose security
206 descriptors do not allow the Administrator to delete them.  Therefore, such
207 files will not be able to be deleted, or in some cases even read, after
208 extracting, unless processed with a specialized program that knows to acquire
209 the SE_RESTORE_NAME and/or SE_BACKUP_NAME privileges which allow overriding
210 access control lists.  This is not a bug in wimlib, which works as designed to
211 correctly restore the data that was archived, but rather a problem with the
212 access rights Windows uses on certain files.  But if you just want the file data
213 and don't care about security descriptors, use \fB--no-acls\fR to skip restoring
214 all security descriptors.
215 .IP \[bu]
216 A similar caveat to the above applies to file attributes such as Readonly,
217 Hidden, and System.  By design, on Windows wimlib will restore such file
218 attributes; therefore, extracted files may have those attributes.  If this is
219 not what you want, use the \fB--no-attributes\fR option.
220 .SH SPLIT WIMS
221 You may use \fBwimlib-imagex apply\fR to apply images from a split WIM.  The
222 \fIWIMFILE\fR argument must specify the first part of the split WIM, while the
223 additional parts of the split WIM must be specified in one or more
224 \fB--ref\fR="\fIGLOB\fR" options.  Since globbing is built into the \fB--ref\fR
225 option, typically only one \fB--ref\fR option is necessary.  For example, the
226 names for the split WIM parts usually go something like:
227 .RS
228 .PP
229 .nf
230 mywim.swm
231 mywim2.swm
232 mywim3.swm
233 mywim4.swm
234 mywim5.swm
235 .RE
236 .fi
237 .PP
238 To apply the first image of this split WIM to the directory "dir", run:
239 .PP
240 .RS
241 wimlib-imagex apply mywim.swm 1 dir --ref="mywim*.swm"
242 .RE
243 .PP
244 As a special case, if you are applying an image from standard input from a split
245 WIM that is also pipable (as described in \fBPIPABLE WIMS\fR), the \fB--ref\fR
246 option is unneeded; instead you must ensure that all the split WIM parts are
247 concatenated together on standard input.  They can be provided in any order,
248 with the exception of the first part, which must be first.
249 .SH PIPABLE WIMS
250 Since wimlib v1.5.0, \fBwimlib-imagex apply\fR supports applying a WIM from a
251 nonseekable file, such as a pipe, provided that the WIM was captured with
252 \fB--pipable\fR (see \fBwimlib-imagex capture\fR(1)).  To use standard input as
253 the WIM, specify "-" as \fIWIMFILE\fR.  A useful use of this ability is to apply
254 an image from a WIM while streaming it from a server.  For example, to apply the
255 first image from a WIM file available on a HTTP server to an NTFS volume on
256 /dev/sda1, run something like:
257 .PP
258 .RS
259 wget -O - http://myserver/mywim.wim | wimapply - 1 /dev/sda1
260 .RE
261 .PP
262 (The above also used the \fBwimapply\fR abbreviation for \fBwimlib-imagex
263 apply\fR.) Note: WIM files are \fInot\fR pipable by default; you have to
264 explicitly capture them with \fB--pipable\fR, and they are \fInot\fR compatible
265 with Microsoft's software.  See \fBwimlib-imagex capture\fR(1) for more
266 information.
267 .PP
268 It is possible to apply an image from a pipable WIM split into multiple parts;
269 see \fBSPLIT WIMS\fR.
270 .SH OPTIONS
271 .TP 6
272 \fB--check\fR
273 When reading \fIWIMFILE\fR, verify its integrity if the integrity table is
274 present.
275 .TP
276 \fB--ref\fR="\fIGLOB\fR"
277 File glob of additional WIMs or split WIM parts to reference resources from.
278 See \fBSPLIT_WIMS\fR.  This option can be specified multiple times.  Note:
279 \fIGLOB\fR is listed in quotes because it is interpreted by
280 \fBwimlib-imagex\fR and may need to be quoted to protect against shell
281 expansion.
282 .TP
283 \fB--rpfix\fR, \fB--norpfix\fR
284 Set whether to fix targets of absolute symbolic links (reparse points in Windows
285 terminology) or not.  When enabled (\fB--rpfix\fR), extracted absolute symbolic
286 links that are marked in the WIM image as being fixed are assumed to have
287 absolute targets relative to the image root, and therefore \fBwimlib-imagex
288 apply\fR prepends the absolute path to the extraction target directory to their
289 targets.  The intention is that you can apply an image containing absolute
290 symbolic links and still have them be valid after it has been applied to any
291 location.
292 .IP ""
293 The default behavior is \fB--rpfix\fR if any images in \fIWIMFILE\fR have been
294 captured with reparse-point fixups done.  Otherwise, it is \fB--norpfix\fR.
295 .IP ""
296 Reparse point fixups are never done in the NTFS volume extraction mode on
297 UNIX-like systems.
298 .TP
299 \fB--unix-data\fR
300 (UNIX-like systems only)  Restore UNIX owners, groups, modes, and device IDs
301 (major and minor numbers) that were captured by \fBwimlib-imagex capture\fR with
302 the \fB--unix-data\fR option.  Since wimlib v1.7.0, you can backup and restore
303 not only the standard UNIX file permission information, but also character
304 device nodes, block device nodes, named pipes (FIFOs), and UNIX domain sockets.
305 .TP
306 \fB--no-acls\fR
307 Do not restore security descriptors on extracted files and directories.
308 .TP
309 \fB--strict-acls\fR
310 Fail immediately if the full security descriptor of any file or directory cannot
311 be set exactly as specified in the WIM file.  If this option is not specified,
312 when \fBwimlib-imagex\fR on Windows does not have permission to set a
313 security descriptor on an extracted file, it falls back to setting it only
314 partially (e.g. with SACL omitted), and in the worst case omits it entirely.
315 However, this should only be a problem when running \fBwimlib-imagex\fR
316 without Administrator rights.  Also, on UNIX-like systems, this flag can also be
317 combined with \fB--unix-data\fR to cause \fBwimlib-imagex\fR to fail
318 immediately if the UNIX owner, group, or mode on an extracted file cannot be set
319 for any reason.
320 .TP
321 \fB--no-attributes\fR
322 Do not restore Windows file attributes such as readonly, hidden, etc.
323 .TP
324 \fB--include-invalid-names\fR
325 Extract files and directories with invalid names by replacing characters and
326 appending a suffix rather than ignoring them.  Exactly what is considered an
327 "invalid" name is platform-dependent.
328 .IP ""
329 On POSIX-compliant systems, filenames are case-sensitive and may contain any
330 byte except '\\0' and \'/', so on a POSIX-compliant system this option will only
331 have an effect in the unlikely case that the WIM image for some reason has a
332 filename containing one of these characters.
333 .IP ""
334 On Windows, filenames are case-insensitive(*), cannot include control
335 characters, and cannot include the characters '/', \'\\0', '\\', ':', '*', '?',
336 \'"', '<', '>', or '|'.  Ordinarily, files in WIM images should meet these
337 conditions as well. However, it is not guaranteed, and in particular a WIM image
338 captured with \fBwimlib-imagex\fR on a POSIX-compliant system could contain such
339 files.  By default, invalid names will be ignored, and if there are multiple
340 names differing only in case, one will be chosen to extract arbitrarily;
341 however, with \fB--include-invalid-names\fR, all names will be sanitized and
342 extracted in some form.
343 .IP ""
344 (*) Unless the ObCaseInsensitive setting has been set to 0 in the Windows
345 registry, in which case certain software, including the Windows version of
346 \fBwimlib-imagex\fR, will honor case-sensitive filenames on NTFS and other
347 compatible filesystems.
348 .TP
349 \fB--wimboot\fR
350 Windows only: Instead of extracting the files themselves, extract "pointer
351 files" back to the WIM archive(s).  This can result in significant space savings.
352 However, it comes at several potential costs, such as not being able to delete
353 the WIM archive(s) and possibly having slower access to files.  See Microsoft's
354 documentation for "WIMBoot" for more information.
355 .IP ""
356 If it exists, the [PrepopulateList] section of the file
357 \\Windows\\System32\\WimBootCompress.ini in the WIM image will be read.  Files
358 matching any of these patterns will be extracted normally, not as WIMBoot
359 "pointer files".  This is helpful for certain files that Windows needs to read
360 early in the boot process.
361 .IP ""
362 This option only works when the program is run as an Administrator and the
363 target volume is NTFS or another filesystem that supports reparse points.
364 .IP ""
365 In addition, this option works best when running on Windows 8.1 Update 1 or
366 later, since that is the first version of Windows that contains the Windows
367 Overlay Filesystem filter driver ("WOF").  If the WOF driver is detected, wimlib
368 will create the WIMBoot "pointer files" using documented ioctls provided by WOF.
369 .IP ""
370 Otherwise, if the WOF driver is not detected, wimlib will create the reparse
371 points and edit the file "\\System Volume Information\\WimOverlay.dat" on the
372 target volume manually.  This is potentially subject to problems, since although
373 the code works in certain tested cases, neither of these data formats is
374 actually documented by Microsoft.  Before overwriting this file, wimlib will
375 save the previous version in "\\System Volume
376 Information\\WimOverlay.wimlib_backup", which you potentially could restore if
377 you needed to.
378 .IP ""
379 You actually can still do a \fB--wimboot\fR extraction even if the WIM image is
380 not marked as "WIMBoot-compatible".  This option causes the extracted files to
381 be set as "externally backed" by the WIM file.  Microsoft's driver which
382 implements this "external backing" functionality seemingly does not care whether
383 the image(s) in the WIM are really marked as WIMBoot-compatible.  Therefore, the
384 "WIMBoot-compatible" tag (<WIMBOOT> in the XML data) seems to be a marker for
385 intent only.  In addition, the Microsoft driver can externally back files from
386 WIM files that use XPRESS chunks of size 8192, 16384, and 32768, or LZX chunks
387 of size 32768, in addition to the default XPRESS chunks of size 4096 that are
388 created when \fBwimlib-imagex capture\fR is run with the \fB--wimboot\fR
389 option.
390 .TP
391 \fB--compact\fR=\fIFORMAT\fR
392 Windows-only: compress the extracted files using System Compression, when
393 possible.  This only works on either Windows 10 or later, or on an older Windows
394 to which Microsoft's wofadk.sys driver has been added.  Several different
395 compression formats may be used with System Compression, and one must be
396 specified as \fIFORMAT\fR.  The choices are: xpress4k, xpress8k, xpress16k, and
397 lzx.
398 .IP ""
399 Exclusions are handled in the same way as with the \fB--wimboot\fR option.
400 That is: if it exists, the [PrepopulateList] section of the file
401 \\Windows\\System32\\WimBootCompress.ini in the WIM image will be read, and
402 files matching any of the patterns in this section will not be compressed.
403 In addition, wimlib has a hardcoded list of files for which it knows, for
404 compatibility with the Windows bootloader, to override the requested compression
405 format.
406 .SH NOTES
407 \fIData integrity\fR:  WIM files include SHA1 message digests for file data.
408 \fBwimlib-imagex apply\fR calculates the SHA1 message digest of every file
409 it extracts and issues an error if it is not equal to the SHA1 message digest
410 provided in the WIM.  (This default behavior seems equivalent to the
411 \fB/verify\fR option of ImageX.)  Note that this is separate from the integrity
412 table of the WIM, which provides SHA1 message digests over raw chunks of the
413 entire WIM file and is checked separately if the \fB--check\fR option is
414 specified.
415 .PP
416 \fIESD files\fR: wimlib v1.6.0 and later can extract files from version 3584
417 WIMs, which usually contain LZMS-compressed solid resources and may carry the
418 \fI.esd\fR file extension rather than \fI.wim\fR.  However, \fI.esd\fR files
419 downloaded directly by the Windows 8 web downloader have encrypted segments, and
420 wimlib cannot extract such files until they are first decrypted.
421 .PP
422 \fIDirectory traversal attacks\fR:  wimlib validates filenames before extracting
423 them and is not vulnerable to directory traversal attacks.  This is in contrast
424 to Microsoft WIMGAPI/ImageX/DISM which can overwrite arbitrary files on the
425 target drive when extracting a malicious WIM file containing files named
426 \fI..\fR or containing path separators.
427 .SH EXAMPLES
428 Extract the first image from the Windows PE image on the Windows (Vista or
429 later) installation media to the directory "boot":
430 .RS
431 .PP
432 wimlib-imagex apply /mnt/windows/sources/boot.wim 1 boot
433 .RE
434 .PP
435 Same as above, but using the \fBwimapply\fR abbreviation:
436 .RS
437 .PP
438 wimapply /media/windows/sources/boot.wim 1 boot
439 .RE
440 .PP
441 On Windows, apply an image of an entire volume, for example from "install.wim"
442 which can be found on the Windows (Vista or later) installation media:
443 .RS
444 .PP
445 wimlib-imagex apply install.wim 1 E:\\
446 .RE
447 .PP
448 Same as above, but running on a UNIX-like system where the corresponding
449 partition is /dev/sda2:
450 .RS
451 .PP
452 wimlib-imagex apply install.wim 1 /dev/sda2
453 .RE
454 .PP
455 Note that before running either of the above commands, an NTFS filesystem may
456 need to be created on the partition, for example with format.exe on Windows or
457 \fBmkntfs\fR(8) (part of NTFS-3G) on UNIX-like systems.  For example, you might
458 run:
459 .RS
460 .PP
461 mkntfs /dev/sda2 && wimapply install.wim 1 /dev/sda2
462 .RE
463 .PP
464 (Of course don't do that if you don't want to destroy all existing data on the
465 partition!)
466 .PP
467 An example of applying a pipable WIM from a pipe can be found in \fBPIPABLE
468 WIMS\fR, and an example of applying a split WIM can be found in \fBSPLIT
469 WIMS\fR.
470 .SH SEE ALSO
471 .BR wimlib-imagex (1)
472 .BR wimlib-imagex-capture (1)
473 .BR wimlib-imagex-extract (1)
474 .BR wimlib-imagex-info (1)