Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
cramfs + devfs
- 12-28-2005
- Geronimo W. Christ Esq
December 28, 2005, 10:47 pm

Does anyone here use cramfs or devfs together ?
At the moment I have a simple compressed ext2 ramdisk image included in
the kernel, but obviously this gets decompressed whenever the kernel
gets booted. I'd like to get rid of this and just mount either cramfs or
squashfs and decompress on the fly.
The trouble seems to be that with a cramfs root filesystem, if I use
devfs I cannot create new device nodes under /dev because the underlying
FS is read-only. The alternative is to throw out devfs and create these
nodes when generating the filesystem image, but because you need to be
root on the Linux box to use mknod that is not an option.
Is there some way of using, eg, tmpfs mounted on /dev and then mounting
devfs over that ?
At the moment I have a simple compressed ext2 ramdisk image included in
the kernel, but obviously this gets decompressed whenever the kernel
gets booted. I'd like to get rid of this and just mount either cramfs or
squashfs and decompress on the fly.
The trouble seems to be that with a cramfs root filesystem, if I use
devfs I cannot create new device nodes under /dev because the underlying
FS is read-only. The alternative is to throw out devfs and create these
nodes when generating the filesystem image, but because you need to be
root on the Linux box to use mknod that is not an option.
Is there some way of using, eg, tmpfs mounted on /dev and then mounting
devfs over that ?

Re: cramfs + devfs

Thanks, Chuck.
So in the cramfs image I just need to create an empty /dev directory
with the correct permissions, then I can do mknod etc after booting ?
I will give that a try. It's a while since I tried that but at the time
I had trouble making it work.
Cheers...
Site Timeline
- » Aircraft embedded systems
- — Next thread in » Embedded Linux
-
- » pl2303
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Israel sees 60% drop in hospitalizations for age 60-plus 3 weeks after 1st shot
- — The site's Newest Thread. Posted in » Electronics Design
-