From: "Gyorgy Szekely" <hoditohod@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: ramdisk driver strange behaviour
Date: Fri, 14 Apr 2006 15:59:07 +0200 [thread overview]
Message-ID: <940be6070604140659q31c45599wf729a47ef25103ee@mail.gmail.com> (raw)
hi,
i'm trying to use a ramdisk driver (block/rd.c) and experienced some
very strnage behaviour. In brief:
If I set ramdisk_blocksize=512 on the kernel command line, the driver
operates oddly. I execute the following commands in a shell:
mkfs.ext2 /dev/ram0 ~runs fine, no errors
mount /dev/ram0 /mnt/disk ~doesn't mount the filesystem, can't find
it on device
mkfs.ext2 /dev/ram0 ~runs fine, same as above
mount /dev/ram0 /mnt/disk ~mounts fine
I have to make exactly this command sequence, to make the fs usable,
eg: mkfs.ext2 twice without trying to mount doesn't work. Once the
mount succeeds everything works fine, i can read/write files,
unmount/remount everything as expected.
I copied the ramdisk contents with dd into a file, and after the first
pass it's all zeros nothing else. Like the first mkfs didn't do
anything.
If I remove the ramdisk_blocksize option from the kernel command line
(defaults to 1024) then all is ok.
Test configs:
Linux 2.6.15.2 x86 (stock kernel.org kernel)
ramdisk config: 4 ramdisks of 1024k
ucLinux 2.6.14 ARM/nommu
ramdisk config: 4 ramdisks of 1024k
George
ps: i'm not subscribet to LKML, please CC me.
next reply other threads:[~2006-04-14 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-14 13:59 Gyorgy Szekely [this message]
2006-04-14 21:59 ` Jan Engelhardt
2006-04-17 22:29 ` Nathan Scott
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=940be6070604140659q31c45599wf729a47ef25103ee@mail.gmail.com \
--to=hoditohod@gmail.com \
--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
all inboxes | Powered by JetHome®