[SOLVED] Dual booted Debian not booting from harddrive, grub rescue prompt only
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dual booted Debian not booting from harddrive, grub rescue prompt only
Well, I guess I screwed up royally this time, but I can't remember where.
I have a dual booted system with Debian Wheezy and Windows 8.1, and LVM, which worked fine until I had an upgrade on Debian, after which I did not have a working Debian anymore. I think I screwed up with the upgrade.
Trying to solve the problem I screwed it up some more, so nothing worked anymore. Starting the laptop I would get:
"error: file not found
Entering rescue mode...
grub rescue> _"
I managed to boot Debian again, with SuperGrub, but I have not succeeded to boot from the hard drive, it will only boot with the SuperGrub CD.
I do not know enough to solve this, I have collected some info that might be useful for solving;
root@debian:~# cat /etc/fstab
# /etc/fstab: static file system information.
All I can do is point out the obvious. Sorry. Swap, root and home all do not have valid partition tables. The boot-loader appears to have been damaged or removed, which should not happen during a normal upgrade. I am assuming this was an update and not an upgrade from Squeeze to Wheezy. Do you remember doing anything else?
I am clueless, but shall throw out an idea anyway, in hopes it helps. Since you can boot the system using a SuperGrub CD, how about using it to boot Debian and re-installing grub? Like I mentioned, I am actually clueless. So I do not know if it is a simple apt-get install and update grub or if it requires a more intricate procedure. Good luck.
Yes, you are right, it was an update and not an upgrade.
That swap, root and home do not have valid partition tables apparently has to do with fdisk which is not yet very good with LVM. I looked that up.
SuperGrub can find a grub.cfg file that lives on (hd0,msdos5)/grub/grub.cfg, not sure whether that is right or wrong, but that is the only one, and it boots with that file.
If all else fails I can backup all data and start over again, but I prefer not to! I hope there are better solutions.
And I learned I should not update when I am tired, look what happened!
It's all solved, hurray. Somebody mentioned EasyBCD, and that was installed on the windows side, I could boot windows from the SuperGrub CD, let EasyBCD repair the windows boot, then I was back to having Windows boot without problems, but still only a grub command line on the Linux side
Booting Debian Wheezy from CD I did a grub-install and voila, it all works again.
By the way, there are some commands for LVM, like vgdisplay and lvdisplay, I discovered
Somebody mentioned EasyBCD which was installed on Windows, I could boot Windows through the SuperGrub CD, then let EasyBCD do a boot repair, which worked wonderful, so I had Windows again.
For Debian Wheezy I had only a grub prompt still, but booting Debian through SuperGrub I did a grub-install and voila, everything is working wonderful again.
By the way, I found there are specific commands for LVM, like lvdiplay and vgdisplay and some others.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.