slitaz-doc-wiki-data annotate 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
rev   line source
slaxemulator@7 1 ====== Rootcd ======
slaxemulator@7 2
slaxemulator@7 3 Descriptions of files contained on the cdrom.
slaxemulator@7 4
slaxemulator@7 5 ===== Syslinux/isolinux =====
slaxemulator@7 6
slaxemulator@7 7 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]].
slaxemulator@7 8
slaxemulator@7 9 <file>
slaxemulator@7 10 display isolinux.msg
slaxemulator@7 11 default slitaz
slaxemulator@7 12 label slitaz
slaxemulator@7 13 kernel /boot/bzImage
slaxemulator@7 14 append initrd=/boot/rootfs.gz rw root=/dev/null vga=788
slaxemulator@7 15 implicit 0
slaxemulator@7 16 prompt 1
slaxemulator@7 17 timeout 80
slaxemulator@7 18 F1 help.txt
slaxemulator@7 19 F2 options.txt
slaxemulator@7 20 F3 isolinux.msg
slaxemulator@7 21 F4 display.txt
slaxemulator@7 22 </file>
slaxemulator@7 23
slaxemulator@7 24 ===== Isolinux boot splash image =====
slaxemulator@7 25
slaxemulator@7 26 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.
slaxemulator@7 27
slaxemulator@7 28 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:
slaxemulator@7 29
slaxemulator@7 30 <code> # echo -e "\24isplash.lss\n" > isolinux.msg </code>
slaxemulator@7 31
slaxemulator@7 32 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.
slaxemulator@7 33
slaxemulator@7 34 ===== ISO bootable with isolinux =====
slaxemulator@7 35
slaxemulator@7 36 To create a bootable ISO image using isolinux and genisoimage:
slaxemulator@7 37
slaxemulator@7 38 <code>
slaxemulator@7 39 # genisoimage -R -o slitaz-test.iso -b boot/isolinux/isolinux.bin \
slaxemulator@7 40 -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
slaxemulator@7 41 -V "SliTaz" -input-charset iso8859-1 -boot-info-table rootcd
slaxemulator@7 42
slaxemulator@7 43 </code>
slaxemulator@7 44
slaxemulator@7 45 ===== GRUB =====
slaxemulator@7 46
slaxemulator@7 47 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:
slaxemulator@7 48
slaxemulator@7 49 <code>
slaxemulator@7 50 # mkdir -p rootcd/boot/grub
slaxemulator@7 51 # cp /usr/lib/grub/i386-pc/stage2_eltorito \
slaxemulator@7 52 rootcd/boot/grub
slaxemulator@7 53 </code>
slaxemulator@7 54
slaxemulator@7 55 The GRUB configuration file is called //menu.lst// and can be edited with your favorite text editor. Example:
slaxemulator@7 56
slaxemulator@7 57 <file>
slaxemulator@7 58 # By default, boot the first entry.
slaxemulator@7 59 default 0
slaxemulator@7 60
slaxemulator@7 61 # Boot automatically after 20 secs.
slaxemulator@7 62 timeout 20
slaxemulator@7 63
slaxemulator@7 64 # Change the colors.
slaxemulator@7 65 color yellow/brown white/black
slaxemulator@7 66
slaxemulator@7 67 title SliTaz GNU/Linux 1.0 (vga 800x600) (Kernel 2.6.20)
slaxemulator@7 68 kernel /boot/bzImage root=/dev/null vga=788
slaxemulator@7 69 initrd /boot/rootfs.gz
slaxemulator@7 70
slaxemulator@7 71 title SliTaz GNU/Linux 1.0 (vga 1024x768) (Kernel 2.6.20)
slaxemulator@7 72 kernel /boot/bzImage root=/dev/null vga=771
slaxemulator@7 73 initrd /boot/rootfs.gz
slaxemulator@7 74 </file>
slaxemulator@7 75
slaxemulator@7 76 ===== ISO bootable with GRUB =====
slaxemulator@7 77
slaxemulator@7 78 To create a bootable ISO image using GRUB and genisoimage or mkisofs:
slaxemulator@7 79
slaxemulator@7 80 <code>
slaxemulator@7 81 # genisoimage -R -o slitaz-test.iso -b boot/grub/stage2_eltorito \
slaxemulator@7 82 -no-emul-boot -V "SliTaz" -boot-load-size 4 -input-charset iso8859-1 \
slaxemulator@7 83 -boot-info-table rootcd
slaxemulator@7 84 </code>
slaxemulator@7 85
slaxemulator@7 86 ===== Memtest86 =====
slaxemulator@7 87
slaxemulator@7 88 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:
slaxemulator@7 89
slaxemulator@7 90 <code>
slaxemulator@7 91 # mkdir -v -p src
slaxemulator@7 92 # cd src
slaxemulator@7 93 # wget http://www.memtest86.com/memtest86-3.2.tar.gz
slaxemulator@7 94 # tar xzfv memtest86-3.2.tar.gz
slaxemulator@7 95 # cd memtest86-3.2
slaxemulator@7 96 (# more README)
slaxemulator@7 97 # cp precomp.bin ../../rootcd/boot/memtest
slaxemulator@7 98 # cd ../..
slaxemulator@7 99 </code>
slaxemulator@7 100
slaxemulator@7 101 Once installed, you can add the label for the memtest86 file to isolinux.cfg, specifing the path to the utility:
slaxemulator@7 102
slaxemulator@7 103 <file>
slaxemulator@7 104 label memtest
slaxemulator@7 105 kernel /boot/memtest
slaxemulator@7 106 </file>
slaxemulator@7 107
slaxemulator@7 108 Or if you want to use GRUB, here's the line to launch memtest86:
slaxemulator@7 109
slaxemulator@7 110 <file>
slaxemulator@7 111 title Memtest86 (Test system memory)
slaxemulator@7 112 kernel /boot/memtest
slaxemulator@7 113 </file>
slaxemulator@7 114
slaxemulator@7 115 Once the lines are added, you can then create a new ISO and test.