How to Automate Mounting and Saving Image File of a RAM Disk?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • DanD
    replied
    For mounting I think I may have found a better way. Local Computer Policy (gpedit.msc) > Computer Configuration > Windows Settings > Scripts (Startup / Shutdown). Place the script in the Startup > View files folder (%SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts \Startup)

    David (PassMark)

    A question if I may on the implmentation and difference in performance.
    1. -t vm -f ramdrive.img creates a logical "RAM (Virtual)" type disk, it loads the image and performs very fast in benchmarks.
    2. -t file -f ramdrive.img creates a logical "Disk" type disk, it loads the image, it is able to persist it on shutdown but it appears to perform at the speed of the medium storing the .img file.

    Is the second variant persisting each change on the RAMDrive to the original image file or does it do it at shutdown? From the performance test I would say it persists it with every change rather than at shutdown, is that correct? Thank you.

    Leave a comment:


  • David (PassMark)
    replied
    There are a bunch of command line arguments you can use with OSFMount to mount an image from the command line.
    They are all documented in the Help file (Which you can get to from the "Help" menu).

    Some examples,
    Mounting a empty RAM disk and format

    osfmount.com -a -t vm -m #: -o format:NTFS:"RAM Volume" -s 1G
    Mounting an image file as a virtual drive

    osfmount.com -a -t file -f C:\passmark\images\vmdk_split.001 -m #:

    Leave a comment:


  • WhyIsSalmonBetterRaw
    replied
    For Question #1 (the mounting of the RAM disk image), I'm not sure but doesn't your instructions simply start OSFMount? Don't you still have to mount the image you had saved on your C drive and re-input stuff like what type of drive it is?

    For example, when I shutdown my computer, I go to the Drive actions tab and select Save to image... and dismount the image. I shut down my computer.

    After I log into my computer and start OSFMount, there isn't any RAM drive. I have to go to the File menu and select Mount new virtual disk... Then, I browse for my image on my C drive.

    Is there another way to do this that's completely automatic?


    Has anyone written a script that has automated any of the mounting and dismounting procedure?

    Thanks for any info you can provide.



    Originally posted by David (PassMark)
    1) Yes. There are lot of ways to auto-run programs at boot time in Windows.

    One way is,
    1. Press windows key + r
    2. Copy the run command Shell:startup
    3. It will reach C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
    4. Create the shortcut of the program you want to run in startup. (this might be a batch file for example that runs OSFMount)
    5. Drag and drop shortcut into the folder.
    6. Restart the computer.

    2) No, at least nothing built into OSFMount

    Leave a comment:


  • David (PassMark)
    replied
    1) Yes. There are lot of ways to auto-run programs at boot time in Windows.

    One way is,
    1. Press windows key + r
    2. Copy the run command Shell:startup
    3. It will reach C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
    4. Create the shortcut of the program you want to run in startup. (this might be a batch file for example that runs OSFMount)
    5. Drag and drop shortcut into the folder.
    6. Restart the computer.

    2) No, at least nothing built into OSFMount

    Leave a comment:


  • How to Automate Mounting and Saving Image File of a RAM Disk?

    I've read a ton of articles on OSFMount and I finally think I figured out how to use this awesome program. I was able to create a empty RAM disk and format it. Then, I installed caches and a few programs like my PDF editor and Microsoft Office. I saw an immediate explosion in speed. That a great feeling.

    Now the only 2 question I have right now are:

    1. Is there a way to automatically have the RAM disk image be mounted by OSFMount when my computer boots up?

    2. Is there a way to automatically have the RAM disk image be saved when shutting down (I don't know if sleep will erase the RAM)?"

    I found this guy's blog in which he created a program but I actually have no idea what language he is using and where he is putting the code.

    https://dandar3.blogspot.com/2018/05...e-on-boot.html

    Any help, peeps?

Working...