[*] -  SecureInfo.eu, /System/Mount RAMDisk.md

Back


RAM disk on Linux and macOS

Linux :

mount -t tmpfs tmpfs /mnt -o size=1024m

macOS :

512 : block size

1024 : 1024 ?

1024*1024 : 1048576 = 1024Mo = 1Go

diskutil erasevolume HFS+ /mnt\
  `hdiutil attach -nomount ram://$((1024*512*1024*1024))`
⬆️ Top
admin