![]() |
Help! Reboot Fails aft Debian Etch upgrade now at GRUB prompt
Help!! I'm a debian server admin who is preparing to upgrade from etch to Lenny and was told I should upgrade from Etch from last August to the final release of Etch from May '09 first.
So, I made a full boot drive backup with dd. Then I ran the "mock upgrade" using aptitude first and everything went well. Then I ran the real upgrade (128 pacakges were upgraded) and everything seemed to go well too. (Famous last words!) In the middle of the upgrade I got a notice that I'd need to reboot after the upgrade had finished in order to let Apache complete its rebuild (No surprise there!). So when the upgrade completed successfully with no horrible errors or warnings, I double-checked to make sure all updates had been installed and then I tried to reboot the system. ARggghhhhh! The bleeping reboot failed. The server is remote (1,200 miles away). So I requested KVM access from the server center and find I'm at the GRUB loader's prompt... YIKES! I have NO idea what went wrong or what the exact name of the system bootstrap file is. I do know it's on sda1 (hd0,0) in Grub's parlance) and I know my full save (dd) backup is on sdb1 (Is that hd1,0 to grub?). I also know the Etch release I was running ended in ".18". I'm fairly sure it was like vmlinuz-2.6.18 and that it ended with -amd64. What the heck do I do NOW?? |
Quote:
Then try to compare it with value in menu.lst, what values for kernel boot are there, still old ones, or .... What kind of error you see ? This link http://www.mondorescue.org/ describes mondo backup solution....I recomend it, do backup, test does backup works--if yes, perfom upgrades/changes Regards |
Quote:
I will also look at the mondorescue.org site. But I assumed the full-drive dd copy would produce a bootable backup. In fact, I'm not sure it DIDN'T produce a bootable backup. I'm just not clear about how to convince GRUB to boot from that drive. Confucious say: You never know what you should know until you need to know it! :-( Thanks. |
Quote:
You are getting as far of the grub prompt so that is good news. Here is a pointer to the GRUB manual. You are going to need it as a reference. What is the output of the following grub command? Code:
cat /grub/grub.conf |
Quote:
http://www.troubleshooters.com/linux/grub/grub.htm This helped me figure out the location and name of the vmlinuz file; but when I tried to reboot using that information (from hd0 which is actually sda1) I got the following kernel panic: Quote:
Quote:
Quote:
Does anyone know what I'm doing wrong with the device names? I forgot on the restart to look up the output of the "cat /grub/grub.conf" command. I'll try that on this next restart. And I gues I'll have to go dig out that grub manual after all... sigh! Thanks again! |
Quote:
I've also tried find /grub/gru<tab> in an effort to use autocomplete to figure out the file name. But it isn't working either. This IS a debian box. That MAY mean that the file name for grub.conf has changed here. Is there another way to locate it? |
If you're looking for the configuration file it should be menu.lst which is in the Grub directory so your command should be:
cat /boot/grub/menu.lst Your vmlinuz file should be in the /boot directory. |
Quote:
The following will not work until you add details of your initial ram disk using initrd. Code:
root (hd0,0) |
Quote:
So now I have a totally different batch of fish to fry. :-( Thanks for the help! |
Quote:
I'm sure I read somewhere (I believe it was in this excellent grub tutorial: http://www.troubleshooters.com/linux/grub/grub.htm) that in many cases the initrd command wasn't needed after it had been provided once. Yet in my case, the system repeatedly fails to boot if this grub command is NOT included. It clearly wasn't required for the old kernel to boot. Does anyone know of a way to get the info provided in initrd embedded into the kernel or must I always include it in the bootup from this day forward. If so, can someone explain why? For the moment, I'm ignoring the fact that I'm still trying to decide what to do about that &^%$#@! rootkit and want to complete my knowledge on how to eliminate the kernel panic caused by failing to include the initrd command in grub. Thanks! |
Quote:
Assume than you always need an initrd line in your (grub) configuration stanza. |
Quote:
Thanks again! |
Quote:
|
| All times are GMT -5. The time now is 02:36 AM. |