[SOLVED] Another Problem with GRUB bootloader in Ububtu/XP
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have Ubuntu 9.10 and Windows XP installed on my laptop.
Every thing was OK, until yesterday, when I turn on my
laptop I got a black screen with the word "GRUB" on it and
nothing else happens.
I've had the same problem several times, especially when adding new distros etc..... This page always gets me out of trouble, so much so that i don't even worry when it happens anymore. It's a very simple process, and doesn't take long, hopefully it'll get you back up & running as well.
Btw, the first time this happened to me, i tried many other things first (Repairing MBR etc) none of which worked.... but this worked first time i tried it, and has worked everytime since.
Have fun.... Grub2 is way better than Grub Legacy.... it just takes some getting used to.
I do not have internet connection on my Ubuntu.
Is it possible to do what you said above whitout
having internet connection?
Best regards. Hassan
It will be if you print out the following first....
Reinstalling from LiveCD
If you cannot boot from GRUB 2 review the section Boot Problems & Rescue Mode. If a reinstall becomes necessary follow these instructions. Two methods are presented; both require booting from a LiveCD (Ubuntu 9.10, Karmic Koala or later version). If the first method does not work, follow the second method, which is more complex and contains more options and instructions.
SIMPLEST - Copy GRUB 2 Files from the LiveCD
This is a quick and simple method of restoring a broken system's GRUB 2 files. The terminal is used for entering commands and the user must know the device name/partition of the installed system (sda1, sdb5, etc). The problem partition is located and mounted from the LiveCD. The files are then copied from the LiveCD libraries to the proper locations and MBR. It requires the least steps and fewer command line entries than the following methods.
1. Boot to the LiveCD Desktop (Ubuntu 9.10 or later).
2. Open a terminal by selecting Applications, Accessories, Terminal from the menu bar.
3. Determine the partition with the Ubuntu installation. The fdisk option "-l" is a lowercase "L".
1. sudo fdisk -l
If the user isn't sure of the partition, look for one of the appropriate size or formatting.
Running sudo blkid may provide more information to help locate the proper partition, especially if the partitions are labeled. The device/drive is designated by sdX, with X being the device designation. sda is the first device, sdb is the second, etc. For most users the MBR will be installed to sda, the first drive on their system. The partition is designated by the Y. The first partition is 1, the second is 2. Note the devices and partitions are counted differently.
4. Mount the partition containing the Ubuntu installation.
sudo mount /dev/sdXY /mnt
Example: sudo mount /dev/sda1 Note: If the user has a separate /boot partition, this must be mounted to /mnt/boot
5. Run the grub-install command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.
sudo grub-install --root-directory=/mnt/ /dev/sdX
Example: sudo grub-install --root-directory=/mnt/ /dev/sda
7. Refresh the GRUB 2 menu with sudo update-grub
Of course you could just go to the 1st link i provided & print out the whole page, but in this instance it's only the above that you need and will save you paper & ink in the process! LOL!
Let me know how it goes if you get a chance? Oh, and no, once you've printed the above out, you won't need Net access to go through the steps above. You will need your Ubuntu 9.10 Live CD though, so make sure you have that to hand.