Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

uClinux ramdisk

Hello, I am new to linux, so hopefully someone else will know how to do this, but:

I was wondering how do you increase the size of the ramdisks that uClinux initalizes. I am setting the /home/ftp directory to be maped to a ramdisk, but it seems like it can only hold around 225KB of data. I was wondering how to increase that so it can hold much more.

Thanks!

Randy

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    To get a RAMdisk of 4MBytes (default kernel ramdisk size):

    /sbin/mke2fs -q -m0

    /bin/mount -t ext2 /dev/ram0 <mount-dir>

    + create the necessary directory structure.

    Put this in /etc/rc.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry, the 1st line should of course be:

    /sbin/mke2fs -q -m0 /dev/ram0