Thanks
I'm talking about the file size, not size of volume.
Command:
imdisk -a -s 40960k -m G: -f "D:\Win7.img" -x 63 -y 255 -p "/FS:FAT32 /Q /Y"
Output:
Creating device...
Created device 0: G: -> D:\Win7.img
Formatting disk G:...
The type of the file system is FAT32.
QuickFormatting 39,1 MB
Initializing the File Allocation Table (FAT)...
Format complete.
35,1 MB total disk space.
35,1 MB are available.
512 bytes in each allocation unit.
71.807 allocation units available on disk.
32 bits in each FAT entry.
Volume Serial Number is B838-9BC3
Notifying applications...
Done.
D:\Win7.img = 39,0 MB (40.960.000 bytes) = 40960k = 40960 * 1000
=> K = 1000 byte.
Command:
imdisk -a -s 40M -m G: -f "D:\Win7.img" -x 63 -y 255 -p "/FS:FAT32 /Q /Y"
Output:
Creating device...
Created device 1: G: -> D:\Win7.img
Formatting disk G:...
The type of the file system is FAT32.
QuickFormatting 40,0 MB
Initializing the File Allocation Table (FAT)...
Format complete.
36,0 MB total disk space.
36,0 MB are available.
512 bytes in each allocation unit.
73.727 allocation units available on disk.
32 bits in each FAT entry.
Volume Serial Number is 8445-CC8B
Notifying applications...
Done.
D:\Win7.img = 40,0 MB (41.943.040 bytes) = 40 * 1024 * 1024
=> M = 1024 * 1024
=> K = 1024 byte
ImDisk Help...
Size of the virtual disk. Size is number of bytes unless suffixed with
a b, k, m, g, t, K, M, G or T which denotes number of 512-byte blocks,
thousand bytes, million bytes, billion bytes, trillion bytes,
kilobytes, megabytes, gigabytes and terabytes respectively.
Edited by nguyentu, 14 January 2017 - 11:21 PM.