[other] deepin下如何开启8gb的ramdisk并挂在tmpfs
Tofloor
poster avatar
const/4 v1,0
deepin
2023-12-10 00:46
Author

deepin下如何创建并挂载8GB的ramdisk,我需要把tmpfs等临时文件的目录放在ramdisk中

Reply Favorite View the author
All Replies
安洛
deepin
2023-12-10 01:30
#1

tmpfs本身就是ramdisk。

如果你想说的是把/tmp挂在ramdisk下,那么只要将tmpfs挂载到/tmp就好。不过,/tmp默认应该就是挂载的tmpfs吧。

Reply View the author
const/4 v1,0
deepin
2023-12-10 03:49
#2
安洛

tmpfs本身就是ramdisk。

如果你想说的是把/tmp挂在ramdisk下,那么只要将tmpfs挂载到/tmp就好。不过,/tmp默认应该就是挂载的tmpfs吧。

好的,用df -hT命令看到了

Reply View the author
魔法师
deepin
2023-12-11 00:15
#3

image.png

Reply View the author