Mr. Coffee TCX85 User Manual Page 30

  • Download
  • Add to my manuals
  • Print
  • Page
    / 43
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 29
Now that you have a "container" for your filesystem, it is time to format it and place a bare
filesystem on it.
In our kernel phase, we added in support for the ext2 filesystem. We'll now format our
"container" with this filesystem type.
mkfs.ext2 ./fs_test.img
Ignore any warnings about the file not being a block device, and proceed anyway. This is an expected
warning message.
4.
Mount the Filesystem "Container" and Write to It
Now that you have your filesystem container, you can mount it and load your prototyped filesystem
on it.
To mount the container, use the kernel loopback device. Make sure your server's kernel has loopback
support enabled and issue a:
mount −o loop ./fs_test.img /mnt
Copy your files to the filesystem, and make sure "/etc/fstab" has the RAMdisk entries as described
elsewhere in this document.
To avoid symbolic links being changed into actual copies of files, use a copy tool like "tar" or
"cpio" instead of a "cp".
5.
Unmount and Compress the Root Filesystem
Unmount the root filesystem you just created.
umount /mnt
Compress the filesystem file with maximum "gzip" compression levels.
gzip −v9 ./fs_test.img
You should now have "fs_test.img.gz" file.
6.
Hook the Root−Filesystem Onto the Back of Your Kernel Image
Now you must append the filesystem image onto your kernel.
You do this with a utility program called "piggyback". The piggyback program takes care of the task
of appending the two and letting the kernel know where both it and the filesystem begins and ends.
The "piggyback" program is found in your kernel source tree under
<LINUXROOT>/arch/sparc/boot. It might also be found on your favorite ftp.kernel.org site.
For piggyback to work, it needs your AOUT format kernel image, the System.map file from your
kernel source root directory, and the compressed root−filesystem you just created.
Linux on the Sun JavaStation NC HOWTO
"Embedded−Root" Filesystem fstab 27
Page view 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 42 43

Comments to this Manuals

No comments