slitaz-doc-wiki-data diff pages/en/cookbook/rootcd.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pages/en/cookbook/rootcd.txt	Sat Feb 26 12:17:18 2011 +0000
     1.3 @@ -0,0 +1,115 @@
     1.4 +====== Rootcd ======
     1.5 +
     1.6 +Descriptions of files contained on the cdrom. 
     1.7 +
     1.8 +===== Syslinux/isolinux =====
     1.9 +
    1.10 +Syslinux and the (SliTaz) main bootloader - we use the isolinux version to start the system contained on the CD-ROM. Simple effective and configurable, isolinux was installed during the creation of the base system. The binary is named isolinux.bin and uses the configuration file isolinux.cfg. Here's an example of an isolinux.cfg using isolinux.msg to post the splash image and displayable help files via F1, F2, F3 and F4. You will find the files help.txt, options.txt, etc in [[:en:cookbook:slitaztools|SliTaz tools]].
    1.11 +
    1.12 +<file>
    1.13 +display isolinux.msg
    1.14 +default slitaz
    1.15 +label slitaz
    1.16 +	kernel /boot/bzImage
    1.17 +	append initrd=/boot/rootfs.gz rw root=/dev/null vga=788
    1.18 +implicit 0	
    1.19 +prompt 1	
    1.20 +timeout 80
    1.21 +F1 help.txt
    1.22 +F2 options.txt
    1.23 +F3 isolinux.msg
    1.24 +F4 display.txt
    1.25 +</file>
    1.26 +
    1.27 +===== Isolinux boot splash image =====
    1.28 +
    1.29 +We can configure isolinux to display a splash image when booting SliTaz or any other operating system. This image has a particular format .lss, suitable for Syslinux and must be indexed using the 16 color mode. You can use the official logo, ppmforge, imagemagick, GIMP or other tools to create your image.
    1.30 +
    1.31 +The Syslinux file (//sample/syslogo.lss//) provides an official logo which you can directly use by copying to the root of the CD-ROM. SliTaz provides a logo (//rootcd/boot/isolinux/splash.lss//) which you can find in [[:en:cookbook:slitaztools|SliTaz tools]]. To display a splash image when booting, it's necessary that the 'display' option calls the isolinux.msg file which loads the *.lss format image. Note that the //isolinux.msg// file uses 24 ASCII characters. Example using 'echo' and an isolinux.msg file incorporating a .lss splash image:
    1.32 +
    1.33 +<code> # echo -e "\24isplash.lss\n" > isolinux.msg </code>
    1.34 +
    1.35 +You can also add a text message underneath the splash image by modifying the file with your favorite text editor, echo or cat and so on.
    1.36 +
    1.37 +===== ISO bootable with isolinux =====
    1.38 +
    1.39 +To create a bootable ISO image using isolinux and genisoimage:
    1.40 +
    1.41 +<code>
    1.42 + # genisoimage -R -o slitaz-test.iso -b boot/isolinux/isolinux.bin \
    1.43 +   	-c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
    1.44 +   	-V "SliTaz" -input-charset iso8859-1 -boot-info-table rootcd 
    1.45 +
    1.46 +</code>
    1.47 +
    1.48 +===== GRUB =====
    1.49 +
    1.50 +GRUB (GRand Unified Bootloader) is a bootloader distributed by the GNU project. This is used during installation to a hard drive; it can boot Linux, BSD, HURD and Window$. GRUB provides stage2_eltorito to start the ISO images. To find stage2_eltorito on your system, you need to have the GRUB package installed. Finally you copy stage2_eltorito to the root of the cdrom. Note that SliTaz provides a (.tazpkg) package grub-0.97 that you can find on the mirrors or you can rebuild grub-0.97 from sources. Example using a stage2_eltorito image from a Debian system or SliTaz:
    1.51 +
    1.52 +<code>
    1.53 + # mkdir -p rootcd/boot/grub
    1.54 + # cp /usr/lib/grub/i386-pc/stage2_eltorito \
    1.55 +   	rootcd/boot/grub
    1.56 +</code>
    1.57 +
    1.58 +The GRUB configuration file is called //menu.lst// and can be edited with your favorite text editor. Example:
    1.59 +
    1.60 +<file>
    1.61 +# By default, boot the first entry.
    1.62 +default 0
    1.63 +
    1.64 +# Boot automatically after 20 secs.
    1.65 +timeout 20
    1.66 +
    1.67 +# Change the colors.
    1.68 +color yellow/brown white/black
    1.69 +
    1.70 +title  SliTaz GNU/Linux 1.0 (vga 800x600) (Kernel 2.6.20)
    1.71 +       kernel /boot/bzImage root=/dev/null vga=788
    1.72 +       initrd /boot/rootfs.gz
    1.73 +
    1.74 +title  SliTaz GNU/Linux 1.0 (vga 1024x768) (Kernel 2.6.20)
    1.75 +       kernel /boot/bzImage root=/dev/null vga=771
    1.76 +       initrd /boot/rootfs.gz
    1.77 +</file>
    1.78 +
    1.79 +===== ISO bootable with GRUB =====
    1.80 +
    1.81 +To create a bootable ISO image using GRUB and genisoimage or mkisofs:
    1.82 +
    1.83 +<code>
    1.84 + # genisoimage -R -o slitaz-test.iso -b boot/grub/stage2_eltorito \
    1.85 +   	-no-emul-boot -V "SliTaz" -boot-load-size 4 -input-charset iso8859-1 \
    1.86 +   	-boot-info-table rootcd
    1.87 +</code>
    1.88 +
    1.89 +===== Memtest86 =====
    1.90 +
    1.91 +The application memtest86 is a tool to test random access memory (RAM). We download the utility into the src directory, decompress the archive, and copy the (precompiled) binary:
    1.92 +
    1.93 +<code>
    1.94 + # mkdir -v -p src
    1.95 + # cd src
    1.96 + # wget http://www.memtest86.com/memtest86-3.2.tar.gz
    1.97 + # tar xzfv memtest86-3.2.tar.gz
    1.98 + # cd memtest86-3.2
    1.99 + (# more README)
   1.100 + # cp precomp.bin ../../rootcd/boot/memtest
   1.101 + # cd ../..
   1.102 +</code>
   1.103 +
   1.104 +Once installed, you can add the label for the memtest86 file to isolinux.cfg, specifing the path to the utility:
   1.105 +
   1.106 +<file>
   1.107 +label memtest
   1.108 +	kernel /boot/memtest
   1.109 +</file>
   1.110 +
   1.111 +Or if you want to use GRUB, here's the line to launch memtest86:
   1.112 +
   1.113 +<file>
   1.114 +title 	Memtest86 (Test system memory)
   1.115 +kernel 	/boot/memtest
   1.116 +</file>
   1.117 +
   1.118 +Once the lines are added, you can then create a new ISO and test. 
   1.119 \ No newline at end of file