buildframework/helium/external/filedisk/example.txt
author timothy.murphy@nokia.com
Fri, 18 Dec 2009 18:19:11 +0000
branchwip
changeset 115 5869e06bf2ac
parent 1 be27ed110b50
permissions -rw-r--r--
Cause whatcomp output to use the incoming epocroot value. i.e. if epocroot is relative then so is the what output. e.g. if EPOCROOT=\ then the output will be of the form "\epoc32\release\armv5\...." If it's "..\myepocroot" then the output will be "..\myepocroot\epoc32\release\armv5". If it's absolute then the what output will also be absolute.

C:\>filedisk
syntax:
filedisk /mount  <devicenumber> <filename> [size[k|M|G] | /ro | /cd] <drive:>
filedisk /umount <drive:>
filedisk /status <drive:>

filename formats:
  c:\path\filedisk.img
  \Device\Harddisk0\Partition1\path\filedisk.img
  \\server\share\path\filedisk.img

example:
filedisk /mount  0 c:\temp\filedisk.img 8M f:
filedisk /mount  1 c:\temp\cdimage.iso /cd i:
filedisk /umount f:
filedisk /umount i:

C:\>filedisk /mount 0 c:\temp\filedisk.img 8M f:

C:\>format /fs:fat f:
The type of the file system is RAW.
The new file system is FAT.

WARNING, ALL DATA ON NON-REMOVABLE DISK
DRIVE F: WILL BE LOST!
Proceed with Format (Y/N)? y
Verifying 7M
Initializing the File Allocation Table (FAT)...
Volume label (11 characters, ENTER for none)? filedisk
Format complete.

    8 353 792 bytes total disk space.
    8 353 792 bytes available on disk.

        2 048 bytes in each allocation unit.
        4 079 allocation units available on disk.

           12 bits in each FAT entry.

Volume Serial Number is 28DF-0C81

C:\>dir f:
 Volume in drive F is FILEDISK
 Volume Serial Number is 28DF-0C81

 Directory of F:\

File Not Found

C:\>chkdsk f:
The type of the file system is FAT.
Volume FILEDISK created 2002-11-24 14:25
Volume Serial Number is 28DF-0C81
Windows is verifying files and folders...
File and folder verification is complete.
Windows has checked the file system and found no problems.

    8 353 792 bytes total disk space.
    8 353 792 bytes available on disk.

        2 048 bytes in each allocation unit.
        4 079 total allocation units on disk.
        4 079 allocation units available on disk.

C:\>filedisk /status f:
f: \??\c:\temp\filedisk.img Size: 8388608 bytes

C:\>filedisk /umount f:

C:\>