Apparently there are still some bugs to work out with Ubuntu 9.10 RC. If you install with Wubi and update grub2 automatically rewrites the MBR which disables bootup to Windows but Ubuntu keeps working. Here is a temporary solution.

We need to fix the MBR for Windows. Since Ubuntu is the only Operating System we can now boot we need a way to fix it from inside of Ubuntu. ms-sys is an older package that is no longer available in the repo’s because of copyrights.

Visit http://packages.debian.org/etch/i386/ms-sys/download and download the package. Firefox should automatically ask you to open with GDebi Package Installer. Click Install Package and type in your password.

Next open up a terminal. Applications > Accessories > Terminal.


sudo ms-sys -w /dev/sda
[sudo] password for craig:
DOS/Windows NT master b oot record successfully written to /dev/sda

for a shorter way….


cd /tmp && wget -c http://ftp.us.debian.org/debian/pool/main/m/ms-sys/ms-sys_2.1.0-1_i386.deb && sudo dpkg -i ms-sys_2.1.0-1_i386.deb && sudo ms-sys -w /dev/sda

All the above assumes you only have one hard drive in your system on /dev/sda. If you have more than one hard drive please check by using “sudo sfdisk -l”. You’ll be looking for something like:


Device       Boot Start End     #cyls   #blocks      Id  System
/dev/sdb1   *      0+   2549    2550-  20482843+  7  HPFS/NTFS

This tells us we have a NTFS partition on /dev/sda1 which is the first partition on /dev/sda. So we know that we need to use /dev/sda. Substitute for your own hard drive. That may be /dev/sdb or /dev/sdc. Of course if your using Wubi its probably safe to say /dev/sda.