Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 716

Create a Ramdisk with predefined folder structure possible?

$
0
0

I have a ramdisk defined in fstab and it's been working perfectly:

ramdisk1 /media/ramdisk ramfs defaults,size=8G,x-gvfs-show 0 0

Recently I want to change the ramdisk in such a way that when the system boots, the ramdisk will be mounted with some predefined empty folders inside.

Is this possible? I feel like I can simply add more lines in fstab for the sub-folders, but then I have to define a quota for them which I don't want. Is there a simple way to define this while all the sub-folders will use the total 8GB quota of the ramdisk?

Update: The answer from David is probably the way to go, doing one way restore with empty folders only. Thanks!


Viewing all articles
Browse latest Browse all 716

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>