Menu

Trouble duplicating RamDiskUI.exe behavior from the ImDisk command line, Win10 Pro, ImDisk 2.0.9 (2017.07.06.0)

cgettes
2017-08-15
2017-08-15
  • cgettes

    cgettes - 2017-08-15

    Hi,

    Using the RamDiskUI utility I get the exact behavior I need:

    Settings:
    Basic tab: Size 4GB, Drive letter: R, File system: NTFS
    Advanced tab: Use AWE, Use Mount Point: C:\MyFolder\MyRamDisk

    With the Advanced tab selected I press OK, and I get a formatted 4GB ram drive without a mapped drive letter. I can read/write to it from Windows exporer as well as programtically. Works Great!!

    This is the entry I get in "Virtual Disk Driver Currently mounted virtual disks" list:
    - Drive: (none)
    - Image file: Physical memory
    - Size: 4GB
    - Properties: Read/write
    - Filesystem: (none)

    But, when I use the command line:
    imdisk -a -s 4G -o awe -m C:\MyFolder\MyRamDisk <ENTER>
    Creating device...
    Created device 0: C:\MyFolder\MyRamDisk -> Image in memory
    Done.

    I get the same entry in the mounted virtual disks list but the mount point is not accessible:
    Windows Message Box:

    "C:\MyFolder\MyRamDisk is not accessible. The volume does not contain a recognized file system. Please make sure that all required system drivers are loaded and the volume is not corrupted"

    It seems like the mount point is pointing to an unformatted device? ImDisk -l returns "\Device\ImDisk0"

    Any thoughts?

    Thanks in advance,
    Chuck

     
  • v77

    v77 - 2017-08-15

    The imdisk.exe command line utility creates unformatted volumes, unless you use the -p switch.
    Extract from the command line help:

    -p "format-parameters"
    If -p is specified the 'format' command is invoked to create a
    filesystem when the new virtual disk has been created.
    "format-parameters" must be a parameter string enclosed within
    double-quotes. The string is added to the command line that starts
    'format'. You usually specify something like "/fs:ntfs /q /y", that
    is, create an NTFS filesystem with quick formatting and without user
    interaction.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.