Shopping cart    |      
Results 1 to 3 of 3

Thread: OSFMount CLI - Auto mount RAM drive on boot

  1. #1
    Join Date
    Feb 2012
    Posts
    2

    Default OSFMount CLI - Auto mount RAM drive on boot

    First, I'd like to express my sincere gratitude for making OSFMount available for free.

    Often I end up mounting a ram drive, and I'd like to speed up the process of doing so. I decided to try creating a batch script using your CLI to get the process going, but I'm having an issue where OSFMount is "Notifying applications...". I have a FORMAT statement just after the osfmount command, but a soon get a pop-up asking me to format the RD anyway. I don't know if this is a result of the notifying part, or because Windows is detecting a new disk. I would like the process to be essentially silent. Guidance would be appreciated.


    Thanks.

    Edit: Answered my own question. I had been using an IF EXIST statement that didn't work because unformatted volumes cannot be found with it. After that, I had too much of a delay, and the Start /wait didn't function as intended. If you mount a RD, then format it quickly enough, the pop-up never comes up.

    e.g.:

    osfmount -a -t vm -m z: -s ****M
    ECHO y|FORMAT Z: /FS:NTFS /Q

    This silently produces a RD of specified size, with no pop-ups on my W7-x64 system. The only danger would be that format has no way of knowing if it is formatting the correct volume. OSFM could fail because volume z: already exists, and this would format it anyway. Careful use, or some sort of safety should be put in.
    Last edited by darkknight; 02-23-2012 at 08:14 PM.

  2. #2
    Join Date
    Jan 2003
    Location
    Sydney Australia
    Posts
    4,139

    Default

    Glad you sorted it out. This might help a few other people as well.

  3. #3
    Join Date
    Feb 2012
    Posts
    2

    Default

    Humorously enough, I just googled how to do this for another machine and the first result was my own post explaining it. Awesome.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •