Reinstalling CentOS 5.6 remote
Download images and add entry to Grub boot loader. Make sure you put in the right networking values:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | cd /boot mkdir centos5-x86_64 cd centos5-x86_64 wget http://mirror.leaseweb.com/centos/5.6/os/x86_64/isolinux/initrd.img wget http://mirror.leaseweb.com/centos/5.6/os/x86_64/isolinux/vmlinuz /sbin/grubby --add-kernel /boot/centos5-x86_64/vmlinuz --initrd=/boot/centos5-x86_64/initrd.img --args="ip=x.x.x.x netmask=y.y.y.y gateway=z.z.z.z dns=n.n.n.n ksdevice=eth0 method=http://mirror.leaseweb.com/centos/5.6/os/x86_64/ lang=en_US keymap=us vnc vncpassword=foobar headless" --title="CentOS Reinstall" |
Assuming the new Grub entry is the first one (0), ask Grub to boot pick it next reboot:
1 | echo “savedefault --stage2=/boot/grub/stage2 --default=0 --once” | grub --batch |
Now cross your fingers, pray to your preferred deity or lack thereof and reboot. If your karma is good, the server should come up in a few minutes. Now connect to it with the VNC client of your choice. Example:
1 | vncviewer x.x.x.x:1 |
If you’re lucky, you should be presented with something along the lines of this:

Now it’s all up to you. Based on my experience, I recommend making good use of RAID and LVM and keep your /root and /home partitions separate, but it’s all up to you. Be careful though – once you’ve started messing with the partition table, your disk is wiped and there is no way back – you have to finish the installation before you can give the remote reinstall another go.


