The debian install
documentation for debootstrap is quite good. I am using
cdebootstrap. As I am installing Debian squeeze from
another debian (linux) distribution we can bind /dev
and mount proc so the howto simplifies and enhaces a
bit.
Partitioning
Since squeeze uses grub v2 I am using file system (ext4) for all partitions.
/dev/md0(SW Raid 1) on/boot/dev/sda[ab]2SWAP partition/dev/md1(SW Raid 1) with LVM PVEs on it (in groupvgincluding/dev/vg/root)
Afterwords mount the partitions to
/mnt/${debinst}.
Bootstrap system
# cdebootstrap --arch amd64 squeeze /mnt/${debinst} http://ftp.us.debian.org/debian
# mount -t proc none /mnt/${debinst}/proc
# mount -o bind dev /mnt/${debinst}/dev
# LANG=C chroot /mnt/${debinst} /bin/bash
# cp /proc/self/mounts /etc/mtab
What you must not forget bevore reboot
/etc/fstab- Configure
apt - Setting the timezone
- Configure
networking (
/etc/hostname,/etc/hosts) - Set the locales
- Install kernel
apt-get install linux-image-2.6-amd64 - Install grub
apt-get install grub,grub-install /dev/sd[ab],update-grub(check/boot/grub/grub.cfg) - Install lvm2 and madm
apt-get install lvm2 mdadm - Install openssh
apt-get install openssh-server - Set root password
passwd - Clean up
apt-get clean
Reboot and hope the best ;-).