Hey,
here are my notes on how to upgrade Debian32 bit to Dapper64 bit on a OVH Core2Duo Server.
Please post corrections, as there are some problems.
Last Updated: 2006-11-26
Partition Table:
SDA1: 2GB - /
SDA2: 2GB - Swap
SDA3: *GB - /var/www/dataLog in to the box
apt-get install mdadm
umount /dev/md3
mdadm -S /dev/md3
fdisk:
Remove SDA3 and SDB3
Create sda3 (5GB here) for future /Edit /etc/fstab/
Remove md3reboot to reread partition table
Re-Login
mkfs.ext3 /dev/sda3
Configure Netboot 64bit in OVH’s Manager.
Netboot Expert
Noyau :Â Â Â Â 2.6.18.1
Processeur :Â Â Â Â x86_64
Racine :Â Â Â Â /dev/md1Reboot to boot the Netboot 64bit kernel.
Re-Login
mount /dev/sda3 /mnt
apt-get install debootstrap
Add to sources.list as we need debootstrap from dapper:
deb http://fr.archive.ubuntu.com/ubuntu dapper maindebootstrap –arch amd64 dapper /mnt http://fr.archive.ubuntu.com/ubuntu/
chroot /mnt
apt-get install openssh-server
apt-get install linux-image-amd64
mkdir /boot/grub
update-grub
to change that: turn off swap so it’s not using /dev/sda 2Â (swapoff -a)
fdisk /dev/sda
and delete the swap partition
and the new sda3
make a new sda2, using the same start and end as sda3 was
and a new sda3, using the same start and end as sda2 was
and fix the swap device name in /etc/fstabDans le Manager:
Noyau :Â Â Â Â 2.6.18.1
Processeur :Â Â Â Â x86_64
Racine :Â Â Â Â /dev/sda2copy fstab and etc/network/interfaces to the chroot place, kind of important.
passwd
locale-gen en_US.UTF-8
Reboot
Login
enable universe in /etc/apt/sources.list…
install ms-sys
ms-sys -m /dev/sda
set active partition to /dev/sda2 using fdisk
then grub-install /dev/sda2
fix /boot/grub/menu.lst
add via-rhine to /etc/modules (just in case)
reboot
move everything to a new /
Please comment errors.
