ExamplesMounting and accessing a partition on physical hard drive 0 (requires admin privileges)
Mounting and accessing a floppy diskette image file named floppy.img
Mounting and accessing an ISO file named terabyte.iso
Mounting and accessing a partition contained within a hard drive image file
In this case, the file is a VPC virtual hard drive file named disk1.vhd
Note that all open file systems will be closed automatically when exiting TBOSDT (or when a script completes), without having to explicitly unmount or close them.
Copying a partition to a file
The COPY PARTITION command can copy an existing partition to a file. The resulting file will be the same size in bytes as the partition copied. The file can then be worked with in the same way as other files containing a file system (such as ISO files and floppy diskette images):
Creating a virtual FAT drive
The ADD VIRTDRV command will create a file containing a FAT file system. The resulting file can then be worked with in the same way as other files containing file systems:
When working with hard drives and hard drive image files, there are some additional commands (some have already been used above) that can accomplish tasks such as listing partitions on a drive, setting a partition active, and installing MBR code on the drive. These commands can be used without having to first OPEN or MOUNT the drive or drive image file. The following are some examples of these commands (these typically require admin/root privileges):
Creating a Virtual PC VHD drive
The ADD VHD command will create a file in the format compatible with the Virtual PC/Server software products.
Note that TBOSDT currently supports only dynamic and fixed drive types that reside in a single .VHD file. If the files are split (e.g. my.vhd, my.v01, my.v02) then the virtual hard drive will not be supported by TBOSDT. Splitting can occur when the VHD virtual drive is located on a FAT volume and exceeds 4GiB in size. In addition, the current Virtual PC software only supports VHD drives up to 128GiB. Hyper-V supports drives larger than 128GiB.
Expanding the size of a virtual PC VHD drive
Use SET VHDSIZE command to extend the size of a VHD virtual drive. The maximum size for a VHD drive that will work in Virtual PC is 128GiB. Hyper-V supports VHD files that are larger.
Creating a VMWare VMDK drive
The ADD VMDK command will create a file in the format compatible with the VMWare software products.
Note that TBOSDT currently supports only MonolithicSparse (and pre-allocated raw) drive types that reside in a single .VMDK file.
Expanding the size of a VMWare VMDK drive
Use SET VMDKSIZE command to extend the size of a VMDK virtual drive. The maximum size for a VMDK drive is 2TiB.
Listing partitions on a physical hard drive, or in a hard drive image file
Setting a partition active on a physical hard drive, or in a hard drive image file
Install MBR code to a physical hard drive, or to a hard drive image file
Setting the NT Disk Signature on a hard drive, or in a hard drive image file
The SET MBR SIG command will write the 4-byte NT disk signature to the MBR sector (1st sector) of a hard drive. The NT disk signature is located at bytes 0x1B8 through 0x1BB in the MBR sector. The disk signature can be cleared by writing zero. Here are some examples:
Setting the CHS values for a partition entry
The SET PART GEO command will set one or more of the CHS values for a partition to specified values. The following is an example of how this command can be used:
|