pchokola
January 14th, 2010, 05:19 PM
Summary:
All I performed was a “sudo apt-get update” followed by a “sudo apt-get upgrade” and it wiped out the boot sector (not sure that is the correct terminology, boot sector, MBR, whatever) of my Windows drive. Now my Windows drive will only boot when the Ubuntu drive is available. Now that is a nice undocumented upgrade feature, not asking me permission to do this! How do I fix this without reloading Windows?
Here is my exact setup:
I have two physical hard drives. On Drive “A” I have Windows XP loaded. On drive “B” I have Ubuntu 9.10 64 bit loaded. They are (or should I say were) completely isolated entities. I like this much better than dual booting by putting everything on one drive, because I change operating systems quite a bit in order to experiment with them. I select the drive (and therefore the operating system) that I want to boot from by pressing the “F10” key that is available via the BIOS during boot up. The BIOS also allows me to select which drive to boot from by default.
Here is what happened:
I did an update and upgrade of Ubuntu in order to get the latest versions of all programs, and it overwrote the boot portion of the Windows XP drive. Ubuntu now controls everything, and forces me to boot through its boot program located on the Ubuntu drive. I verified this is what happened by disconnecting the Ubuntu drive. When I try to boot via the Windows standalone drive it no longer boots, and a Grub error occurs.
I have another computer with Windows 7 and Centos Linux loaded using the same exact technique, and this has never happened during an update (using yum).
My questions are:
1) Rather than restoring Windows XP from a bare metal restore backup (which I do have thank God), is there an easy way to recover the Windows XP boot sector?
2) How can I prevent this from happening again? If this is not possible, I am going to replace Ubuntu with Fedora, Centos or something else which behaves much more reasonably.
All I performed was a “sudo apt-get update” followed by a “sudo apt-get upgrade” and it wiped out the boot sector (not sure that is the correct terminology, boot sector, MBR, whatever) of my Windows drive. Now my Windows drive will only boot when the Ubuntu drive is available. Now that is a nice undocumented upgrade feature, not asking me permission to do this! How do I fix this without reloading Windows?
Here is my exact setup:
I have two physical hard drives. On Drive “A” I have Windows XP loaded. On drive “B” I have Ubuntu 9.10 64 bit loaded. They are (or should I say were) completely isolated entities. I like this much better than dual booting by putting everything on one drive, because I change operating systems quite a bit in order to experiment with them. I select the drive (and therefore the operating system) that I want to boot from by pressing the “F10” key that is available via the BIOS during boot up. The BIOS also allows me to select which drive to boot from by default.
Here is what happened:
I did an update and upgrade of Ubuntu in order to get the latest versions of all programs, and it overwrote the boot portion of the Windows XP drive. Ubuntu now controls everything, and forces me to boot through its boot program located on the Ubuntu drive. I verified this is what happened by disconnecting the Ubuntu drive. When I try to boot via the Windows standalone drive it no longer boots, and a Grub error occurs.
I have another computer with Windows 7 and Centos Linux loaded using the same exact technique, and this has never happened during an update (using yum).
My questions are:
1) Rather than restoring Windows XP from a bare metal restore backup (which I do have thank God), is there an easy way to recover the Windows XP boot sector?
2) How can I prevent this from happening again? If this is not possible, I am going to replace Ubuntu with Fedora, Centos or something else which behaves much more reasonably.