Upgrade to Dapper64 from Debian32 on a OVH Server.

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/data

Log 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 md3

reboot 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/md1

Reboot 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 main

debootstrap –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/fstab

Dans le Manager:

Noyau :      2.6.18.1
Processeur :      x86_64
Racine :      /dev/sda2

copy 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.

RSS