So I am doing a project that requires me to create a RAM disk in MINIX. The question is as follows:
Your task is to implement your own RAM disk which can be used as a location to store data where fast access is required. It should have read and write permissions for everybody and must be 10MB in size.
I am struggling to find info on this topic for MINIX, so I've been trying to work off numerous other tutorials that are for Linux distros.
Using this tutorial I have done the following in MINIX:
mknod /dev/ram0 c 0 1
chmod 777 /dev/ram0
Then mkfs -b 10240 -i 2000 -B 1024 /dev/ram0
yields the error:
mkfs: /dev/ram0: number of blocks too large for device.
This occurs even when I make the -b
parameter 1.
When I type mkfs /dev/ram0
an error stating the following appears:
mkfs: this device can't hold a filesystem.
In the tutorial I can see the author increasing the size of the ramdisk to 16GB in grub.conf, but that file isn't located in /etc.
ANY help would be appreciated as I am struggling to find info on MINIX in general with tasks like this.