# # Simple rescue boot-CD using GRUB, Etherboot and INSERT # Version 1.9 # # Copyright (C) 2004-2005 Fredrik Åslund # # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this script; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # ## GRUB apt-get install grub cp -dpR /usr/lib/grub/i386-pc/* boot/grub/ ## gPXE http://etherboot.org/wiki/index.php http://rom-o-matic.net/ # 1. Output format: Linux kernel (SYSLINUX/GRUB/LILO) loadable image (.lkrn) # 2. NIC type: All drivers # 3. # 4. Get image! cp /tmp/gpxe-0.9.9-gpxe.lkrn boot/etherboot/ ## INSERT http://www.inside-security.de/INSERT_en.html http://sourceforge.net/project/showfiles.php?group_id=99853 http://dfn.dl.sourceforge.net/sourceforge/insert/INSERT-1.3.9b_en.iso mount INSERT*.iso /mnt -o loop cp -dpR /mnt/INSERT . cp /mnt/isolinux/{vmlinuz,miniroot.lz} INSERT/ chmod u+w -R INSERT umount /mnt ## Memtest86+ http://www.memtest.org/#downiso wget http://www.memtest.org/download/2.11/memtest86+-2.11.bin.gz zcat memtest86+-2.11.bin.gz > boot/memtest86+/memtest86+.bin ## g4u - Harddisk Image Cloning for PCs http://www.feyrer.de/g4u/ http://www.feyrer.de/g4u/g4u-2.3.iso mount g4u-2.0.iso /mnt -o loop cp /mnt/netbsd boot/g4u umount /mnt ## Debian Lenny Installer businesscard CD image wget http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-507-i386-businesscard.iso mount debian-*businesscard.iso /mnt -o loop cp -dpR /mnt debian chmod u+w -R debian umount /mnt initrd=debian/install.386/initrd mv $initrd.gz $initrd-orig.gz mkdir tmp cd tmp gzip -cd ../$initrd-orig.gz | cpio -i --quiet --no-absolute-filenames patch -p0 < ../debian-initrd.diff find . | cpio --quiet -o -H newc | gzip -9 > ../$initrd.gz cd .. rm -rf tmp ## Windows NT/2k/XP Change Password Utility http://home.eunet.no/~pnordahl/ntpasswd/ version=cd080802 wget http://home.eunet.no/~pnordahl/ntpasswd/$version.zip unzip $version.zip mount $version.iso /mnt -o loop mkdir -p boot/ntpasswd cp -p /mnt/vmlinuz boot/ntpasswd # if GRUB supported multiple initrd images #cp -p /mnt/{initrd.cgz,scsi.cgz} boot/ntpasswd # else mkdir tmp cd tmp for cpioarchive in /mnt/{initrd,scsi}.cgz ; do gzip -cd $cpioarchive | cpio -i --quiet --no-absolute-filenames done find . | cpio -o --quiet -H newc | gzip -9 > ../boot/ntpasswd/initrd.cgz cd .. rm -rf tmp # fi umount /mnt