From: "Miquel van Smoorenburg" <miquels@cistron.nl>
To: linux-kernel@vger.kernel.org
Subject: Re: RAM drive
Date: Tue, 11 Jan 2005 07:39:10 +0000 (UTC) [thread overview]
Message-ID: <crvvqu$icc$1@news.cistron.nl> (raw)
In-Reply-To: 20050111014406.18739.qmail@web51805.mail.yahoo.com
In article <20050111014406.18739.qmail@web51805.mail.yahoo.com>,
Phy Prabab <phyprabab@yahoo.com> wrote:
>I need some assistance with creating a RAM disk of 8G
>and mounting it. I am using 2.6.10 with this
>proceedure:
>
>(ramdisk support enabled)
>dd bs=512 if=/dev/zero of=/dev/ram0 count=16384000
>mkfs.ext2 -m0 /dev/ram0 8192000
>mount -t ext2 /dev/ram0 /ramdisk0
>mount: wrong fs type, bad option, bad superblock on
>/dev/ram0,
> or too many mounted file systems
>
>I am not sure what the issue is. It worked on the
>2.4.x series.
I seem to remember that you must explicitly set the blocksize
to 1024 or 4096 when creating the filesystem. Eg mkfs.ext2 -b1024
or mkfs.ext2 -b4096 (don't remember which one exactly).
But with 2.6, why not use tmpfs ? Mount -t tmpfs -o size=8192000000 /ramdisk0
Mike.
prev parent reply other threads:[~2005-01-11 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-11 1:44 RAM drive Phy Prabab
2005-01-11 7:39 ` Miquel van Smoorenburg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='crvvqu$icc$1@news.cistron.nl' \
--to=miquels@cistron.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).