I spent a lot of time reading posts so I figured I would write this easy tutorial. ENJOY! :-)
Howto put ghost on TinyCore and use with PXE"
1) Download the latest "TinyCore" from
http://distro.ibiblio.org/tinycorelinux/downloads.html *TinyCore-current.iso
2) Copy other files to your usb (example f:\build\)
a. Browse to C:\Program Files\Symantec\Ghost
b. Copy the following files: gdisk, ghconfig, ghost, ghregedit, omnifs
c. Get this script
http://forum.tinycorelinux.net/index.php?action=dlattach;topic=12300.0;attach=3242 too
d. Use the attached icon (dimensions=48x48)
e. Now is a good time to run ghost32.exe to create an "GHOST.INI"
3) Mount the TinyCore-current.iso
(oracle vm with at least 256mb ram and no hdd will do)
a. just press <enter> at the tinycore boot prompt
4) Copy the files from your usb to /tmp
a. mount the usb to the oracle vm by right clicking the usb plug
b. mount the usb inside your tinycore vm os using the Mount icon on the wbar (example: sda1)
c. sudo cp -R /mnt/sda1/build/* /tmp
d. cd /tmp
e. sudo ./cr_tc-initrd.sh
5) sudo mkdir /tmp/newinit
6) sudo mv ./tinycore_4.3.gz /tmp/newinit
7) cd /tmp/newinit
8) zcat tinycore_4.3.gz | sudo cpio -idum
9) copy the ghost files:
sudo cp /tmp/g* /tmp/newinit/usr/local/bin
sudo cp /mnt/sda1/build/GHOST.INI /tmp/newinit/usr/local/bin
sudo cp /tmp/omni* /tmp/newinit/usr/local/bin
10) sudo vi /tmp/newinit/usr/local/bin/ghost.sh
#tcl ghost run
cd /usr/local/bin
sudo nohup ./ghost
11) sudo cp /mnt/sda1/build/ghost.png /tmp/newinit/usr/local/share/pixmaps
12) sudo vi /tmp/newinit/usr/local/share/applications/ghost.desktop
[Desktop Entry]
Name=Ghost
Exec=ghost.sh
Icon=ghost
X-FullPathIcon=/usr/local/share/pixmaps/ghost.png
Type=Application
Categories=System;
13) mkdir /tmp/newinit/home/tc/.X.d
14) sudo cp /tmp/newinit/usr/local/bin/ghost.sh /tmp/newinit/home/tc/.X.d
15) sudo chmod 755 /tmp/newinit/usr/local/bin/ghost.sh
16) sudo chmod 755 /tmp/newinit/home/tc/.X.d/ghost.sh
17) sudo chown tc:staff /tmp/newinit/home/tc/.X.d/ghost.sh
18) sudo rm /tmp/newinit/tinycore_4.3.gz
19) cd /tmp/newinit
20) sudo find . | sudo cpio -odum -H newc \ | gzip > ../core.gz
21) sudo cp ../core.gz /mnt/sda1
*sda1 is the usb
22) unmount the usb from tinycore and kill the vm
23) using magiciso edit TinyCore-current.iso
24) delete the "cde" folder
25) drag the core.gz from your usb into the boot folder of iso and replace the old one
26) drag \boot\isolinux\isolinux.cfg to desktop and edit it with "editpad lite" as shown:
display boot.msg
default tc
label tc
kernel /boot/vmlinuz
append initrd=/boot/core.gz quiet cde nozswap
implicit 0
prompt 0
timeout 0
F1 boot.msg
F2 f2
F3 f3
F4 f4
27) drag the revised isolinux.cfg back into magiciso and replace original file
28) save the new iso
29) test the new iso in vm
30) Now take the cd to your pxe server
31) copy d:\boot\core.gz and d:\boot\vmlinuz to c:\tftpboot\tinycore\
32) use "editpad lite" to add this "c:\tftpboot\pxelinux.cfg\default" on your PXE server
DEFAULT vesamenu.c32
PROMPT 0
NOESCAPE 0
ALLOWOPTIONS 0
# Timeout in units of 1/10 s
TIMEOUT 60
MENU MARGIN 10
MENU ROWS 16
MENU TABMSGROW 21
MENU TIMEOUTROW 26
MENU COLOR BORDER 30;44 #20ffffff #00000000 #ffffffff
MENU COLOR SCROLLBAR 30;44 #20ffffff #00000000 none
MENU COLOR TITLE 0 #ffffffff #00000000 none
MENU COLOR SEL 30;47 #40000000 #20ffffff
MENU BACKGROUND menu.jpg
MENU TITLE PXE Menu
LABEL Boot from Harddisk
LOCALBOOT 0
Type 0x80
label Tinycore with ghost
kernel tinycore/vmlinuz
append initrd=tinycore/core.gz cde nozswap
NOTES:
nozswap is a required option for ghost
I am using the 3com boot services that come with ghost and pointing to pxelinux.0 using bootptab editor.
My DHCP options per scope are:
003 Router = server ip or real router (required for ghost linux multicast)
006 DNS Server = server ip
060 PXEClient
*still need to figure out how to add more mass storage drivers....