Categories
Computers

Check Your Drive Boot Priorities

I don’t normally reboot my Linux machine. But this morning I was forced to because I installed a hard drive that the Wife’s desktop machine was no longer recognizing properly. It’s a 1.5TB Caviar drive from Western Digital. I installed it many moons ago (at this point) to store some of her home video work. At the time, it worked fine. It was only ever a backup drive so usage was minimal and somewhere along the way, Windows refused to recognize it as anything more than a 500GB drive that was inaccessible because Windows wanted to reformat it. This may or may not be related to the computer’s BIOS, which also only recognizes it as a 500GB drive.

Rather than be so hasty, I figured I’d try it out on my machine to see if the drive itself was bad, or if Windows was bad (my money was secretly on Windows.) So I shutdown my computer, installed the drive, plugged in all the cables and rebooted.

And was summarily dumped into grub rescue mode with a wonderfully cryptic message “Symbol not found: grub_divmod64_full.”

My initial reaction was … unprintable. All I can say is there was no physical violence, though it was touch and go for a couple seconds. Alas, the same cannot be said for my mouth.

On the chance that the newly installed hard drive was at fault, I powered down and disconnected the power and the data cables. Unfortunately, I ended up in the same place after re-powering.

After calming down, I futzed with things for a bit and quickly concluded that the problem was that grub was not attempting to boot the correct drive. I was somewhat flummoxed as to how that happened, but it seemed clear enough. The whole circumstance felt eerily familiar.

I had actually resolved myself to fixing the problem via a USB stick install medium. Towards that end, I rebooted into the BIOS setup to check the boot priorities. The computer was already configured properly in terms of device, so then, on a lark, I checked the hard drive boot priorities.

There is where I found my problem. The hard drive boot priorities had been shuffled and the drive with grub on it was no longer the 1st device. After ordering the drives properly, I rebooted and was happy to see a proper bootloader screen followed by everything loading up without issue. I can only conclude that installing the new drive caused the BIOS to shuffle the drive priorities around thus, breaking my system.

On the plus side, the hard drive works great. I don’t think I’ll be un-installing it any time soon though.

Categories
Computers

grub_xputs Addendum

A week or so ago my computer failed to boot, giving me an error stating that ‘grub_xputs could not be found.’ My final solution ended up being straight forward and I was up and running again fairly quickly. However, I had a commenter drop by who was unable to resolve the issue on his side, despite trying some grub command-line incantations. As a result, I’ve continued to kinda follow the problem, curious as to a final fix.

I don’t think there’s, as yet, a formal fix. My guess is that it should be possible to fix the grub install with an install image. But I also found this fix which involves using a liveCD. Keep in mind that I have not tried it myself so I can’t vouch for it personally, but I thought I’d point it out for others who happen across this spot in search of some kind of solution.

I’ll note that the solution is not related to the grub_xputs issue. But the end result is a newly installed grub2, which is essentially the requirement to fix the problem.