Ok, so I consider myself to be rather proficient with computers in general and have been using Linux as a second OS since RedHat7.3 was released (a long time). In that time, I have seen some rather interesting problems with Windows stepping on partition tables and the such, but this one was new to me.
First, the system specs: a windows xp sp2 prim Os installed on a 120GB IDE drive (only IDE device), and Ubuntu 9.10 (upgraded from 9.4) installed on a small section of a 320GB SATA2 drive. GRUB 1.92 (wasn't upgraded to GRUB 2.x when the system auto updated to Ubuntu 9.10) loaded onto the MBR (if you've encountered this before you can already see the issue).
Now, the task. Xp had degraded badly, but, since it does that often, I had a backup of the complete install. Thus all I needed to do was load Linux, clear the prime XP drive, and copy my backup over (this would be the third time for this system).
The mistake that brought the problem to my attention was that I had forgotten that the other times I had done this I had simple deleted the files rather than formatting the partition. When I formatted, it changed the partition identify that GRUB uses to boot the targeted OS. This meant that my freshened XP was intact but un-bootable unless I edited GRUB's settings, which I was inexplicable unable to do.
When I told the user of the system, they said not to worry about it too much, just purge Linux from the system and all would be well (live disk works for the usage). This I did as well as using the XP repair tool to to rebuild the MBR.
When I rebooted the system, I was amazed to see that GRUB was still there and complaining because I had formatted the drive with it's config files on it. After about 8 hours of digging through everything I knew to do including a fresh install of XP, reinstalling Ubuntu to put a new copy of GRUB over the bad one, pulling out some old tools (FDisk and a few others) I finally gave up and cracked the box open. After pulling what I thought was the offending drive out (the 120GB IDE) and rebooting with the expectation of seeing the generic "No OS Found" message I was presented with GRUB's complaining again.
This baffled me. GRUB should not have been there, but it was. I replaced the IDE drive and popped the SATA drive out and the system booted just fine.
What I believe happened was that the original install had gotten confused and placed GRUB on the IDE drive's boot sector as well as the boot sector of the first SATA device. So all the freaking out I had done trying to clear and rebuild the MBR had actually worked, but was limited to the IDE drive alone.
While I was looking for any direction I could, I saw that I am not the only person that has had this issue, but no one had obviously stated what the problem was or how to fix it.
So, what to avoid? If you dual-boot, I would advise not mixing drive types on the system. This is the first time I've ever heard of anything like this and everyone I've talked to about this looks at me like I'm recounting an alien abduction story. So, learn from my mistake...or at the least, if your system does something completely unexpected like this, start with pulling hardware
First, the system specs: a windows xp sp2 prim Os installed on a 120GB IDE drive (only IDE device), and Ubuntu 9.10 (upgraded from 9.4) installed on a small section of a 320GB SATA2 drive. GRUB 1.92 (wasn't upgraded to GRUB 2.x when the system auto updated to Ubuntu 9.10) loaded onto the MBR (if you've encountered this before you can already see the issue).
Now, the task. Xp had degraded badly, but, since it does that often, I had a backup of the complete install. Thus all I needed to do was load Linux, clear the prime XP drive, and copy my backup over (this would be the third time for this system).
The mistake that brought the problem to my attention was that I had forgotten that the other times I had done this I had simple deleted the files rather than formatting the partition. When I formatted, it changed the partition identify that GRUB uses to boot the targeted OS. This meant that my freshened XP was intact but un-bootable unless I edited GRUB's settings, which I was inexplicable unable to do.
When I told the user of the system, they said not to worry about it too much, just purge Linux from the system and all would be well (live disk works for the usage). This I did as well as using the XP repair tool to to rebuild the MBR.
When I rebooted the system, I was amazed to see that GRUB was still there and complaining because I had formatted the drive with it's config files on it. After about 8 hours of digging through everything I knew to do including a fresh install of XP, reinstalling Ubuntu to put a new copy of GRUB over the bad one, pulling out some old tools (FDisk and a few others) I finally gave up and cracked the box open. After pulling what I thought was the offending drive out (the 120GB IDE) and rebooting with the expectation of seeing the generic "No OS Found" message I was presented with GRUB's complaining again.
This baffled me. GRUB should not have been there, but it was. I replaced the IDE drive and popped the SATA drive out and the system booted just fine.
What I believe happened was that the original install had gotten confused and placed GRUB on the IDE drive's boot sector as well as the boot sector of the first SATA device. So all the freaking out I had done trying to clear and rebuild the MBR had actually worked, but was limited to the IDE drive alone.
While I was looking for any direction I could, I saw that I am not the only person that has had this issue, but no one had obviously stated what the problem was or how to fix it.
So, what to avoid? If you dual-boot, I would advise not mixing drive types on the system. This is the first time I've ever heard of anything like this and everyone I've talked to about this looks at me like I'm recounting an alien abduction story. So, learn from my mistake...or at the least, if your system does something completely unexpected like this, start with pulling hardware

Comment