Can I create a new ramdisk device file using mknod in Minix 3

441 views
Skip to first unread message

Jeff

unread,
Dec 9, 2010, 7:28:08 AM12/9/10
to minix3
Just like what I can do in Linux.For example, I want to create a new
ramdisk file : /dev/ram9, and because the memory major number is 1,
and the minor number of /dev/ram5 is 12, so I try to achieve that by
running the following command :
mknod /dev/ram9 b 1 13
there is no error message. However, when I try to run another
command :
ramdisk 4096 /dev/ram9
I just got a error message read : No such device or address .
Is there anything wrong about my command ?

Best Regards,
Jeff

Thomas Veerman

unread,
Dec 9, 2010, 7:35:33 AM12/9/10
to min...@googlegroups.com
Hi,

There's nothing wrong with your command. The memory driver has a hard
coded limit of 6 ram disks (which are already created for you). You can
increase the limit by modifying line 33 in /usr/src/drivers/memory/memory.c.

--
Thomas

Jeff

unread,
Dec 9, 2010, 8:18:48 AM12/9/10
to minix3
thank you, Thomas. That really works!
Reply all
Reply to author
Forward
0 new messages