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