Anonymous user
Windows Tools: Difference between revisions
no edit summary
[unchecked revision] | [unchecked revision] |
(Even more to come :)) |
No edit summary |
||
Line 1:
Windows provides some useful utilities for using [[Loopback Device|loopback devices]] and manipulating files that OS developers should know about; most of the time they are unaware of this and thus download tools that give them functionality they already had. This page attempts to describe
Note: Wherever you see a drive letter followed by a semicolon in the examples, remember that you can just as well specify a GUID instead.
Line 27:
There are a few things worth noting:
* The utility expects you to specify full paths.
* When the '''maximum'''argument is omitted, the default size is set to '''24''' GiB. When it is present, a valid hard disk size is needed.
* If not type is specified, the default is set to '''fixed'''. Expandable images grow in size as needed, while fixed ones do not.
* The '''source="bar.vhd"''' argument can be used in order to intialize the contents of the new image with ''bar.vhd''.
Line 34:
Although expandable images grow in size, they do not also automatically reduce in size. To manually reduce the size of the selected virtual disk:
compact vdisk
Here's an example of how to change the maximum size of the selected VHD to 20 MiB:
expand vdisk maximum=20
The following attaches the selected VHD:
attach vdisk
* The '''readonly''' argument can be used; its purpose is obvious.
After attaching a virtual disk, you need to create a partition for and mount it (i.e., assign it a letter):
create partition primary
assign letter=G
Finally, the following unmounts the selected VHD:
detach vdisk
== fsutil ==
|