All pastes #386793 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-08 21:53 UTC
rendered paste body
#!/bin/sh
#Created by TheX1le
clear
echo "This simple script is just for installing bt2, it assumes you have created and formatted
your partitions all ready"
#Handles input of boot and root partitions
echo "Your boot partition EX. hda1"
read BOOT
echo "Your root partition EX. hda3"
read ROOT
clear
creates dir's for mounting and installing
mkdir -p /tmp/backtrack/boot
mount /dev/$BOOT /tmp/backtrack/boot
mount /dev/$ROOT /tmp/backtrack
copies over the files
cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /tmp/backtrack
echo "Backtrack files copied sucessfully"
mkdir /tmp/backtrack/{mnt,proc,sys,tmp}
mount --bind /dev/ /tmp/backtrack/dev/
mount -t proc proc /mnt/backtrack/proc/
cp /boot/vmlinuz /tmp/backtrack/boot
echo "Kernel copied sucessfully"
chroot /tmp/backtrack/ /bin/bash
clear
#used for creation of mbr
echo "Every Thing is complete run "lilo -v" and reboot into your new system"
exec nano /etc/lilo.conf