"-b offset" and hard disk images.
#1
Posted 03 March 2012 - 10:18 AM
If I mount a image from the Control Panel, the windows automatically shows the offset.
The CP window also shows different units for offset ( bytes, blocks, ... ). If I have to specify the offset when using a command line, how do I specify the units ?
When using the command from the FAQ (imdisk -a -t vm -f C:\ramdisk.img -m R:), if I try to mount a hard disk image, it is mounted, but Windows says it is unformatted, that's why I'm asking these Qs.
#2
Posted 03 March 2012 - 06:58 PM
When mounting a hard disk image ( .img or .vhd ) from the command line, is it compulsory to specify the "-b offset" parameter ? Or does imdisk automatically compute that ?
If I mount a image from the Control Panel, the windows automatically shows the offset.
The corresponding method with command line is to specify -b auto which automatically translates to auto-detected offset.
The CP window also shows different units for offset ( bytes, blocks, ... ). If I have to specify the offset when using a command line, how do I specify the units ?
When using the command from the FAQ (imdisk -a -t vm -f C:ramdisk.img -m R:), if I try to mount a hard disk image, it is mounted, but Windows says it is unformatted, that's why I'm asking these Qs.
If you specify offset manually instead of auto, you can suffix size with T, G, M, K or b.
#3
Posted 04 March 2012 - 05:05 AM
One more Q, I don't want to start a new thread. Is the max size of a RAMdisk ( like first eg in FAQ ) limited by the available physical memory or available virtual memory ? I think it is the latter.
Edit :
If I want to set device type to HD I would use "-o hd". What is the parameter for device type auto, "-o auto" ? Or, if I skip the -o parameter, "auto" is assumed ?
No problem using two "-o" parameters ? If I want read-only and harddisk, can I use "-o ro" and -o hd" OR do I have to use "-o ro hd" ?
-----------------------
My app coming along fine so far :
https://sites.google.../images/gid.png
#4
Posted 04 March 2012 - 02:05 PM
Is the max size of a RAMdisk ( like first eg in FAQ ) limited by the available physical memory or available virtual
memory ? I think it is the latter.
The latter. The driver allocates a virtual memory block for that kind of virtual disks.
If I want to set device type to HD I would use "-o hd". What is the parameter for device type auto, "-o auto" ? Or, if I skip the -o parameter, "auto" is assumed ?
There is no "auto" for -o parameter. Just skip specifying things you want to use default values for.
No problem using two "-o" parameters ? If I want read-only and harddisk, can I use "-o ro" and -o hd" OR do I have to use "-o ro hd" ?
No problems with multiple -o parameters. Either specify -o ro,hd or -o ro -o hd.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








