mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4 odd behaviour of ramdisk + cramfs
@ 2003-11-13 16:32 Remco van Mook
  2003-11-13 16:45 ` buffer/page cache aliasing? " bert hubert
  2003-11-13 16:59 ` Meelis Roos
  0 siblings, 2 replies; 6+ messages in thread
From: Remco van Mook @ 2003-11-13 16:32 UTC (permalink / raw)
  To: linux-kernel


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


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

end of thread, other threads:[~2003-11-13 17:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-13 16:32 2.4 odd behaviour of ramdisk + cramfs Remco van Mook
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

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®