Install Debian Sarge using debootstrap on a CentOS 4 system
The attached script tries to go about converting a non-Debian server into Debian server using debootstrap.
Warning: Unless you are very careful its likely to wipe out your network interface files, mess up grub, stop your server booting, delete your /etc/fstab and all sorts of other horrible things.
The script has yet to run un-attended. So treat it as a guide only.
The system we usually do this on is a Centos server parititoned as follows:
/dev/sda1 100mb software raid
/dev/sda2 4096mb ext3 /
/dev/sda3 software raid remainder
/dev/sdb1 100mb software raid
/dev/sdb2 swap
/dev/sdb3 software raid remainder
/dev/md0 software raid1 on /dev/sda1 and /dev/sdb1 mounted as /boot
/dev/md1 software raid1 on /dev/sda3 and /dev/sdb3 mounted as /raid
After the Debian install /dev/md1 will be the Debian / partition.