From: Remco van Mook <remco@virtu.nl>
To: linux-kernel@vger.kernel.org
Subject: 2.4 odd behaviour of ramdisk + cramfs
Date: Thu, 13 Nov 2003 17:32:49 +0100 [thread overview]
Message-ID: <5.1.0.14.2.20031113171537.01ee82c8@services3.virtu.nl> (raw)
I am experiencing a problem when I try to run the following script:
#! /bin/sh
cat /flash/modules-2.4.21 > /dev/ram1
mount -t cramfs -o ro /dev/ram1 /lib/modules
Running it once causes the mount to fail with 'cramfs: wrong magic' -
running it twice will make mount succeed on the second try.
Oddly enough, repeating the 2 lines within the script doesn't work either.
The behaviour has been reproduced by several people with different 2.4
kernels.
As I need this to go into some boot scripts, I'd like this to work without
human intervention.
Any suggestions ?
Remco van Mook
Typical kernel config:
2.4.21 unpatched kernel tree
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_CRAMFS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
next reply other threads:[~2003-11-13 16:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-13 16:32 Remco van Mook [this message]
2003-11-13 16:45 ` buffer/page cache aliasing? " bert hubert
2003-11-13 16:58 ` Remco van Mook
2003-11-13 16:59 ` Meelis Roos
2003-11-13 17:13 ` Remco van Mook
2003-11-13 17:41 ` Meelis Roos
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=5.1.0.14.2.20031113171537.01ee82c8@services3.virtu.nl \
--to=remco@virtu.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
all inboxes | Powered by JetHome®