LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2007, 03:57 AM   #1
denis1982
LQ Newbie
 
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Grub Error!!!


Hi
I installed ubuntu linux on my acer travelmate 2400 series laptop. It was a dual boot system with XP pro. When I tried to log in to ubuntu however, my password was not recognised. So I logged on to XP and formatted the hard disks with ubuntu on them. Now when I try to reboot my pc, I get a grub eror 17.
Also before, I used to get a screen saying " press F2 to get to setup" but now I don't get it.
Could anyone help??

Denis
 
Old 05-04-2007, 06:09 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You did the removal process the wrong way -- with haste GRUB stores some files, along with it's configuration file, to the /boot of your Linux installation. In Ubuntu's case, if you did a regular install (and not manual partitioning), /boot resides in the same partition as /root does. Anyway you seem to have formatted /boot (along with the others), destroying GRUB's configuration files. Without them it doesn't work, so what you get is error 17 (don't get me wrong; I don't know what number 17 actually means, but obviously it's caused by this -- check GRUB website for more information).

Solution: either reinstall Windows XP's bootloader or reinstall GRUB or some other Linux bootloader (easiest done if you just install some Linux distribution, it comes along) or install some 3rd-party bootloader.

Windows XP bootloader: boot into recovery console, using the XP setup disc. Choose, when asked, the harddisk where your XP is installed, and run
Code:
fixmbr
and possibly
Code:
fixboot
to try and recover the bootloader. The first command warns you, but you don't have much choise but to go ahead. There is a little more documentation at Microsoft's website about these.

GRUB-installation: if you don't want to install a whole Linux-based operating system, you'll need at least a /boot partition, then a live-cd distribution (or equivalent, so you can boot your machine) and once booted, run grub-install for the harddisk you're booting from (i.e. for the first harddisk it's hd(0,0) for GRUB), followed by grub-update if you like. Then open /boot/grub/menu.lst with a text-editor, as root, and make sure it includes your Windows' (and other OS') boot information.

Other bootloader installation: depends on the choice. Search using any search engine on the web.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 01:14 PM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Software 11 02-25-2007 07:42 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration