开发者

Is it possible mount two separate tmpfs filesystems during boot?

开发者 https://www.devze.com 2023-01-25 14:03 出处:网络
When i execute the df command i can see that tmpfs is mounted on /. What i need is to create a directory in /etc, say tmp and then mount another tmpfs开发者_JAVA技巧 on /etc/tmp. Can i do it by adding

When i execute the df command i can see that tmpfs is mounted on /. What i need is to create a directory in /etc, say tmp and then mount another tmpfs开发者_JAVA技巧 on /etc/tmp. Can i do it by adding another entry in /etc/fstab saying tmpfs should be mounted on /etc/tmp.


Yes, for example (in /etc/fstab)

tmpfs    /etc/tmp    tmpfs    defaults,size=50%      0       0
0

精彩评论

暂无评论...
验证码 换一张
取 消