Linux VR CompactFlash Root HOWTO
By Bradley D. LaRonde (email@example.com)
Even a modest Linux distribution takes up some space, and keeping it all in a ramdisk eventually becomes impractical. The coolest solution is to replace the ROMs in the device, but since that's not an option (at least yet) for most devices, the next best thing is to mount root from a CompactFlash card.
- A CompactFlash card for which you have no love of the contents, as this procedure will completely erase everything from your Compact Flash card. To use my prepared CF roots you need need a 16MB or larger CF card.
- Appropriate "boot" and "root" archive from my ftp site.
Mounting Root from CompactFlash
- Insert the CompactFlash card into the Linux box. Note the hd designation. The rest of these instructions will use /dev/hde for example.
- Use Linux fdisk:
to partition the CF card in two parts:
You do not have to set the boot flag for either partition.
- Format the two CompactFlash partitions:
- Extract the boot and root archives using the actual names instead of "boot" and "root":
tar -xzf boot.tar.gz
tar -xzf root.tar.gz
- Mount and copy the contents of the two archives to the partitions, again using the actual names of the extracted directories instead of "boot" and "root":
mount /dev/hde1 /mnt -t vfat
cp boot/* /mnt
mount /dev/hde2 /mnt
cp -a root/* /mnt
Note: The -a option in the second copy is very important.
- Remove the CompactFlash card from the Linux box and insert it into your device.
- Launch cyace.exe on the storage card. Linux should start.
- When done using Linux, be sure to umount / then reset the device.