目录

把内存变成一块硬盘 | 基于内存的硬盘分区 | ImDisk

ImDisk安装

http://www.ltr-data.se/opencode.html/#ImDisk

Download ImDisk install files for current stable version as a zip file built 23 December 2022

创建分区

imdisk -a -s 512M -m X: -p “/fs:ntfs /q /y”

  • -a initializes the virtual disk.
  • -s 512M is the size, 512 MegaBytes. The full choices are b, k, m, g, t, K, M, G, or T. These denote a number of 512-byte blocks, thousand bytes, million bytes, billion bytes, trillion bytes, KB, MB, GB, and TB, respectively.
  • -m X: sets up the mount point a.k.a. the drive letter, X:.
  • -p “fs:ntfs /q /y” formats the drive. -p’s parameters are actually for Windows’ format program. So, if you want the RAM disk in a different filesystem, just change ntfs to fat (FAT16) or fat32 (FAT32).

删除分区

imdisk -D -m X:

参考:

https://forums.guru3d.com/threads/guide-using-imdisk-to-set-up-ram-disk-s-in-windows-with-no-limit-on-disk-size.356046/