Results 1 to 6 of 6

Thread: Howto create a ramdisk?

  1. #1

    Default Howto create a ramdisk?

    I would like to create a ramdisk to run my SecondLife cache. Following instructions I found online I edited my Grub menu:

    kernel /boot/vmlinuz-2.6.25.5-1.1-default ramdisk_size=102400 quiet

    Then I did:

    mkdir /mnt/ram
    mke2fs -m 0 /dev/ram0

    And got:

    mke2fs 1.40.8 (13-Mar-2008)
    Could not stat /dev/ram0 --- No such file or directory

    The device apparently does not exist; did you specify it correctly?

    I searched all over the web and could not find instructions for setting up a ramdisk in openSuse. I also searched the forums; nothing.

    How do you set up a ramdisk in openSuse?

  2. #2

    Default Re: Howto create a ramdisk?

    Wow, nothing is working. I've spent all day pouring through instructions, none of which work. mke2fs does this:

    /dev/ram0 is not a block special device.

  3. #3

    Default Re: Howto create a ramdisk?

    Ok, found this:

    mount -t tmpfs none /mnt/ram -o size=102400

    I don't know if I just created a ramdisk or not. It doesn't show up in fdisk. It does show up in mount. I can add files to ti, but for all I know it's just a directory. How do I know if /mnt/ram is actually a ramdisk?

  4. #4
    ab@novell.com NNTP User

    Default Re: Howto create a ramdisk?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Check and see how much space you have free everywhere:

    `df -h`

    Now copy some files there. Still have the same space on your physical
    drive, less on ramdisk? Probably a ramdisk.

    Good luck.





    mooreted wrote:
    | Ok, found this:
    |
    | mount -t tmpfs none /mnt/ram -o size=102400
    |
    | I don't know if I just created a ramdisk or not. It doesn't show up in
    | fdisk. It does show up in mount. I can add files to ti, but for all I
    | know it's just a directory. How do I know if /mnt/ram is actually a
    | ramdisk?
    |
    |
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFIcWED3s42bA80+9kRAp1nAJ9h9xPr57igWpPTV4Vg3hvPCsIJOgCfaKdr
    SO7pnmR/59b7N8dIk3PB9yc=
    =oeyL
    -----END PGP SIGNATURE-----

  5. #5

    Default Re: Howto create a ramdisk?

    It is working! Yay!

    Boy, all the complex configurations I was trying and a simple mount -t tmpfs none /mnt/ram -o size=1024m worked!

    Coolness.

    Thanks for the tip.

  6. #6
    sbarylski NNTP User

    Default Re: Howto create a ramdisk?

    I have also been looking for a procedure how to set up a ramdisk in openSUSE. Your idea is very nice, but I am not sure what you get is a ramdisk exactly.
    It looks like there is a slight difference between a ramdisk and a tpmfs.

    Anyway, do anyone have an idea how to make a ramdisk in openSUSE? I myself need a ramdisk set up by grub.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •