Free Ramdisk for Windows Vista, XP, 2000 and 2003 Server

  1. Parameters registry is

    HKLM\System\CurrentControlSet\Services\RRamdisk\Parameters\

    Why RRamdisk? Because XP SP1 contain a Ramdisk driver for XP Embeded.

  2. Parameter: DiskSizeM, DiskSizeK

    Your desired disk size, the unit is M bytes or K bytes. The DiskSizeK has higher priority.

  3. Parameter: MediaType

    The reported drive type:

    1 — RAM Drive
    2 — Fixed Media (default)
    3 — Removable Media
    4 — Floppy Diskette

  4. Parameter: DriveLetter

    Name say it is, default is R:

  5. Parameter: SectorsPerCluster

    Your desired cluster size, zero for driver pickup:

    <= 2M FAT12, cluster=512
    <= 32M FAT16, cluster=512
    <= 64M FAT16, cluster=1k
    <= 128M FAT16, cluster=2k
    <= 256M FAT16, cluster=4k
    <= 512M FAT32, cluster=2k
    <= 16G FAT32, cluster=4k
    and more...

    You can specify smaller cluster size, force pre-format as FAT32.

  6. Parameter: Image

    Maintained by rdutil utlilty, mainly for preload NTFS image. Eg:

    1. Load ramdisk, don’t write anything.
    2. Format the ramdisk

      FORMAT /FS:NTFS /Q /V:RamDisk /A:512 R:

    3. Adjust logfile to minimum size

      CHKDSK /L:2048 R:

    4. Reset access rights

      CACLS R:\ /G: BUILTIN\Adminstrators:F

    5. Create necessary structure

      MKDIR R:\TEMP

    6. Pack the disk image and save to registry

      rdutil R: registry

    Notes:

    1. You should leave RamDisk as clean as possible before packing, the max packed image size is 64K.
    2. The disk image only valid to same RamDisk size, you should re-create disk image when size changed.
    3. The driver internal formater will disable if this registry present, corrupt/size-mismatch value leave an un-formated disk.

    rdutil Utlility Usage:

    1. Backup registry image

      rdutil save filename

    2. Restore registry image

      rdutil load filename

    3. Report packed image size

      rdutil R:
      rdutil registry
      rdutil unpacked_file

      Second command reading DriveLetter from registry, while the third is packing an unpacked image file.

    4. Packing image & save to registry

      rdutil R: registry

    5. Packing image & save to file

      rdutil R: packed_file

    6. Unpacking image

      rdutil unpack packed_file unpacked_file

    7. Link NTFS junction to Ramdisk

      rdutil link temp \

  7. You can re-format RamDisk except RAMDrive media type. Eg:

    FixedMedia type:
    FORMAT /FS:NTFS /FORCE /Q /V:RamDisk /A:512 R:

    RemovableMedia type:
    ECHO Y | FORMAT /FS:NTFS /FORCE /Q /V:RamDisk /A:512 R:

    You can place your format command to startup script. I don’t recommend re-format to FAT, the pre-formated RamDisk is more efficient than other format utililty.

  8. Pagefile support - You can set pagefile to FixMedia type disk w/ pre-formated system. If you need other MediaType or re-format, use the addswap.exe utility:

    addswap r:\pagefile.sys 16 32

    Create pagefile r:\pagefile.sys with min=16M max=32M.

  9. TEMP directory - You should set TEMP/TMP directory to TEMP sub-directory, don’t use the root directory.
  10. NTFS junction point to RAMDrive - You can’t create NTFS junction point to RAMDrive media type, Fixed & Removable Media type should work.
  11. Connectix VirtualPC compatibility - Someone report problem with VirtualPC+physical volume/disk. Please set MediaType to RAMDrive/Removable.
  12. Mountpoint without DriveLetter

    Clear DriveLetter registry value will not create Drive Letter for Ramdisk.

    Attn. Don’t delete the DriveLetter registry, which fall to default R:. You can setup mountpoint/junction linking to this unnamed Ramdisk. Eg:

    rdutil link C:\ramdisk
    link C:\ramdisk to root of Ramdisk

    rdutil link C:\TEMP TEMP
    link C:\TEMP to \TEMP at Ramdisk

    rmdir C:\ramdisk
    rmdir can remove the link without clear target content

    NoDriveLetter configuration isn’t recommended, because most AntiVirus software cannot realtime scan Volume w/o Drive Letter.

Pages: 1 2

MDL blog postings now continue at Tip and Trick, and readers are welcome to join My Digital Life Forums.


37 Responses to “Free Ramdisk for Windows Vista, XP, 2000 and 2003 Server”

  1. LatecomerX
    June 5th, 2007 23:56
    1

    Man, I would really like to thank you for putting Gavotte’s work here. I have been finding a solution like this for the past 5 hours trying out Google-d Win 2K solutions and trial softwares, and most of the time I spent were on Googling and removing them (one almost killed my system). Once again, a big thanks - and I hope you can convey that to Gavotte himself too.

  2. Robert
    August 22nd, 2007 07:32
    2

    Gavotte! Excellent job!
    Your Rramdisk works very fine. It is even suitable to put Windows swapfile on it (what I’ve done).
    Thank you.
    Robert

  3. Tadeisz
    August 28th, 2007 02:07
    3

    Does not work in Vista 64-bit

  4. naveed
    September 20th, 2007 00:04
    4

    It would be nice to see a vista 64-bit version of this.

  5. JJ
    September 20th, 2007 10:59
    5

    Anyone encountered this problem? After creating the RAM disk, I restarted my pc and windows reported that the disk might be corrupted or using a format tat is not compatible with windows. Anyway i am using windows XP.

  6. Robert
    September 21st, 2007 14:25
    6

    Did you test memory with Memtest?

  7. E-Musings On Web Stuff»Blog Archive » Free RAM Disk supports FAT, NTFS and disk size up to 3 GB
    September 23rd, 2007 18:50
    7

    [...] an image file into RAM either after starting or on boot up through an autoexec.bat argument. More configuration choices including registry editing are available [...]

  8. JJ
    September 24th, 2007 10:44
    8

    Robert, I did not test the memory with Memtest. what is the purpose of Memtest?

  9. Robert
    September 24th, 2007 11:37
    9

    As the name says :)
    http://www.memtest.org
    http://www.memtest86.com
    Using Google is recommended behaviour.

  10. JJ
    September 24th, 2007 18:20
    10

    i already use the memtest.. no errors occured.. hmmm any extra configuration needed after creating the RAM drive? My RAM drive works when it is first created. Once I restarted my pc, windows report that the disk might be corrupted when i tried to aaccess the ram drive

  11. Robert
    September 25th, 2007 03:21
    11

    Run ramdisk.exe.
    Set it as “Fixed Media”. What size did you set?
    In my case I set 512MB (I have plenty of RAM) and letter “Z”.
    Try to run Memtest again with the following configuration:
    At the very beginning of the test press C (config box will appear), then 2 then 3 then 3 and again 3. You will force thorough test of all memory.
    Run the test for the whole night. In the morning you will have results.

  12. JJ
    September 25th, 2007 09:23
    12

    It worked when I set it as “Fixed Media”. Previously it did not work because I set it as “RAM Drive”. hmmm what is the difference between these two types?

  13. Robert
    October 3rd, 2007 06:39
    13

    First, sorry for the delay. I’ve been out of my home.
    Difference is only in bit responsible for media identification.
    Some programs “don’t like” virtual disks but they look only at media identifier. If you set the identifier as fixed drive everything become O.K.
    Luckily you solved the problem yourself.
    Good luck and greetings from Poland :)

  14. JJ
    October 9th, 2007 09:39
    14

    okie..thanx a lot robert..appreciate your help

  15. JJ
    October 9th, 2007 10:10
    15

    is there any way to load the image to the ram disk without using the GUI provided?

  16. Peter
    October 14th, 2007 05:28
    16

    Hi mr. Gavotte, I like to compile the driver myself, would that be possible? I use VC Express and have 3790.1830 SDK and tried the Win2000 example from DDK, I asume you used the example to build your version of ramdisk.sys, can you make a little master-class for us to get some insight in the techniques used?
    thx for the good work and grtz from Holland

  17. RAMDisk Guide - Page 3 - HardwareLogic Forums
    December 12th, 2007 08:24
    17

    [...] RAMDisk Guide I found a better, faster, and more compatable RAMdisk here, Free Ramdisk for Windows Vista, XP, 2000 and 2003 Server

  18. rocsta
    January 7th, 2008 18:05
    18

    Hmm..i have problem to remove ramdisk. It would return on next reboot. Any ideas..?

  19. rocsta
    January 12th, 2008 16:20
    19

    on the other hand i think run as admin would help..

  20. Starbuck
    January 30th, 2008 16:51
    20

    I have 4 gig of Ram on my new XP box. I made a 750 MB Swapfile on my new virtual drive. I opened the entiire MS Office suite and 13 other apps along with 2 major resource hogging games without a hitch. I then rebooted and the drive held it’s formatting. A million thanks!!

  21. Mersine
    February 20th, 2008 03:53
    21

    “Ramdisk.exe accepts a image file as its argument so that the image file can be loaded automatically into the Ramdisk from command line. Potential usage include adding of “ramdisk imgfilename” to system boot up script such as autoexec.bat to load the data into memory disk.”

    I would love to do this. However, I read the instructions and could not understand them. Can someone please explain the instructions to me in another way. Thanks

  22. Brice
    February 25th, 2008 06:41
    22

    This program fails to install on my XP Pro 64 bits machine. Any ideas why? Thanks guys.B.

  23. Chang
    February 27th, 2008 14:45
    23

    Dear Robert, this program failed to run in my machine running Window Vista Business 32 bit. I attempted a few setting of xxMb to no avail but returned with an error ‘blue screen’ message and rebooted. I have to run in Window safe mood every time to install the program. Any ideas what’s wrong? and how to overcome? Thank you.

  24. Chang
    February 27th, 2008 14:47
    24

    Sorry, for typing error, it was ‘uninstalled’ in Window safe mode.

  25. Ch
    February 27th, 2008 15:34
    25

    no

  26. Robert
    February 28th, 2008 03:35
    26

    Dear Chang,
    I don’t know the behaviour of Rramdisk under Win Vista. I still use Win2000. In my oppinion this is the most stable one among all the Windows family. Not all what is newest is always the best.

  27. dr mark
    March 1st, 2008 04:03
    27

    The ramdisk driver has an error. Setting the ramdisk media type to ramdisk is missing a component for proper initialization (the other file types work well). Another drive that has removable media is required to load up required drivers for this ramdisk - without the removable media the ramdisk is RAW. As soon as the removable media is inserted the Ramdisk is usable.

    This is most likely an oversight as that the writer having this dependent component loaded up in the background didn’t realize it was dependent. Systems without this component do not work. There is a newer release as well 01.01.2008 which allows for >=4GB ramdisks (the error is still apparent within this new release)

  28. dr mark
    March 1st, 2008 04:05
    28

    05.23.2007 version and greater allows for x64 support

  29. dr mark
    March 1st, 2008 04:58
    29

    found the reason why it fails
    http://support.microsoft.com/kb/257405
    Windows XP Update:

    Installing the Ramdisk sample driver in a NTFS only machine might make it unusable. To resolve this problem make the following change:

    While you call the IoCreateDevice function (RamdiskAddDevice function in pnp.c), change the device type from FILE_DEVICE_VIRTUAL_DISK to FILE_DEVICE_DISK and recompile the driver. After you install the driver, restart the system in order to access the Ramdisk through Explorer.

    Someone please inform Gavotte and have a fix made. Thank you

  30. PatrickE
    March 6th, 2008 03:16
    30

    Just set up a 256Mb ramdrive using this. Perfect. Wish it was opensourced tho…

  31. Brice
    March 6th, 2008 06:05
    31

    dr Mark,

    What do you mean by 64 bits version support ?
    The download link on that page is not the latest version?
    Thank you.

    >> dr mark
    >> March 1st, 2008 04:05
    >> 28

    >> 05.23.2007 version and greater allows for x64 support

  32. Matt
    March 21st, 2008 13:07
    32

    Tried installing under xp64, clicking on the “Install Ramdisk” button gave me a “failed” dialog box.

    ramdisk.exe is dated 2/14/2004
    rramdisk.sys is dated 12/9/2003

    readfirst is dated 5/27/2007

  33. Upgrade RAM ให้ EEE PC ดีไหม? « Ninelouis’s Weblog
    April 7th, 2008 22:31
    33

    [...] http://www.mydigitallife.info/2007/05/27/free-ramdisk-for-windows-vista-xp-2000-and-2003-server/ ย้าย temp เลือก control panel /system/advanced แล้วเลือก [...]

  34. I Just Had To Buy An Asus EEE PC
    April 11th, 2008 15:12
    34

    [...] the memory to 2GB is recommended and besides, you can create a RAMdisk for more working space using Gavotte’s free ramdisk [...]

  35. Dan Dar3
    April 18th, 2008 20:43
    35

    Good job writing the article!

    See the a newer version here:
    http://www.badongo.com/file/7201826

    ChangeLog:
    12.09.2003 fix SMP/HT compatibility
    11.26.2003 fix re-format problem & some typo
    11.25.2003 merge rdpack and rdj to rdutil
    11.24.2003 add DiskSizeK registry, more compatible w/ antivirus software
    05.23.2007 x64 support
    01.01.2008 support >=4G ram under 32bit windows (UsePAE=1)

  36. Jack
    May 4th, 2008 21:06
    36

    I am unable to load a previous saved image from a command line…
    using: ramdisk tempimage I have this error:

    error: MFMT: Open R: failed 2

    If I load the image from the GUI it is loaded rigth…
    Where is the trouble?
    Thanks for the answers.

  37. Denis Fayruzov » 1XP tweaks: переносим временные файлы и кэш на ramdisk
    May 13th, 2008 04:53
    37

    [...] реализовать задуманное. Итак, берем реализацию rramdisk, про которую сам автор говорит: There are plenty of Ramdisk driver and [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting



Incoming Search Terms for the Article

RamDisk - ramdisk vista - vista ramdisk - gavotte ramdisk - ramdisk for vista - ramdrive vista - vista ramdrive - free ramdisk - rramdisk - ram disk vista - vista ram disk - windows vista ramdisk - gavotte ramdisk download - all - ramdisk Gavotte - ramdisk windows - Ramdisk - ramdisk xp - ramdisk free - windows ramdisk - gavotte ramdisk - ramdisk.sys download - RamDisk Vista 64 - free ramdisk vista - ram disk for vista - rramdisk.sys - ramdisk windows vista - superspeed ramdisk vista - gavotte ram disk - ramdrive for vista - RamDisk on VISTA - ramdisk in vista - XP Ramdisk - free ramdrive - Ramdisk für Vista - qsoft ramdisk - ramdrive in vista - gavotte ramdisk x64 - ramdisk.sys - download ramdisk.sys - vista 64 ramdisk - Gavotte ramdrive - ramdrive windows vista - ramdisk vista x64 - gavotte ram - ramdisk voor vista - Free VISTA ramdisk - ramdisk vista free - free ram disk - vista x64 ramdisk - ramdiskve - vista ramdisk - RamDisk For Windows - free ramdisk software - windows vista ramdrive - ramdisk vista - rdutil - ramdisk+vista - vista ram drive - Gavotte Ramdisk with GUI - free ramdisk for vista - download gavotte ramdisk - ramdisk.exe - mydigitallife ramdisk - Ramdrive free - FREE RAMDISK DRIVER - free ramdisk xp - ramdisk vista download - ramdisk software gavotte - RamDisk Plus vista - ramdisk vista64 - microsoft ramdisk vista - ramdisk - Gavotte Ramdisk vista - gavotte ramdisk software -