linux ram drive 1

linux ram drive

mount -t [TYPE] -o size=[SIZE] [FSTYPE] [MOUNTPOINT]

Here is what the above code is Doing:
1. Create a file called /tmp/ramdisk.img
2. Format the file as an ext4 filesystem
3. Mount the file as a ramdisk at /mnt/ramdisk

Similar Posts