Option of tmpfs Instead of RAMdisk when Creating Bootdisk
Hello All,
I am a Linux newbie and am in the process of building a Bootdisk for Linux based on the 2.4.18 Kernel as a self-education exercise and as a starting point for a new Hard Drive install of a Linux system.
I have managed to follow the instructions using the BOOTDISK - HOWTO and successfully produced a working boot/root diskette.
NOW I wish to try again, but using the 2.4.18 version of the Kernel. I noticed that a filesystem called tmpfs has been introduced in recent kernel releases.
In the current release of the Bootdisk HOWTO, 3 options are provided in creating the filesystem: 1 is using a RAMDisk, 2 is an unused hard disk partition and 3 is using a loopback device.
I was wondering whether it would be feasible to use the tmpfs filesystem as an alternative (or FOURTH option) to building the compressed filesystem on.
I have attempted to use this method already, but am getting problems when I get to the stage of creating the compressed rootfs.gz compressed.
I perform the following steps:
1. I prepare all the files I want for the root/bootdisk in the tmpfs partition (which is where I mount the tmpsfs filesystem partition)......so far so good
2. I then perform the command 'umount /tmpfs' which is the directory the tmpfs filesystem is mounted on
3. I TRY to run the command 'dd if=/tmpfs bs=1k|gzip -v9>rootfs.gz' and it tells me the directory is not mounted!
When I follow the same process using a RAMDisk then it works.
I prefer however to use the tmpfs filessytem instead of the RAMDisk option as the space is dynamically allocated and easier to mount on the fly.
Thanks in advance!!!!!!
|