linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAM drive
@ 2005-01-11  1:44 Phy Prabab
  2005-01-11  7:39 ` Miquel van Smoorenburg
  0 siblings, 1 reply; 2+ messages in thread
From: Phy Prabab @ 2005-01-11  1:44 UTC (permalink / raw)
  To: linux-kernel

Hello!

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.

Any help if greatly appreciated!

TIA!
Phy


		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RAM drive
  2005-01-11  1:44 RAM drive Phy Prabab
@ 2005-01-11  7:39 ` Miquel van Smoorenburg
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel van Smoorenburg @ 2005-01-11  7:39 UTC (permalink / raw)
  To: linux-kernel

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-11  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-11  1:44 RAM drive Phy Prabab
2005-01-11  7:39 ` Miquel van Smoorenburg

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).