LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-16-2007, 08:27 AM   #16
linux01
LQ Newbie
 
Registered: Aug 2005
Posts: 20

Rep: Reputation: 1
Post Been there; done that ....


Sounds to me like you installed XP on one disk and linux on the other, but you "grubbed' the wrong (non-booting) disk.
There is a fine grub document on this site to use, but here is what I discovered on my system.
I had installed WinXP on the secondary master IDE hard drive and had the bios booting from it. When I installed Ubuntu, I installed it in the primary IDE Master drive.
Once Ubuntu finished and re-booted, WinXP would boot, but no grub menu.
I changed my bios setting to boot from the primary Master IDE and there was the grub.
The faster way to find, out if my theory is correct in your system, is to hit F9 or F12 (depends on your system) to get to the device boot menu, then boot a different drive.
BTW
Make sure that the boot flag is set on your "Linux" drive. To find out boot with linux and type in the command prompt (xterm) "sudo fdisk -l" (no quotes). You should see an asterisk under the word boot for both your drives. If not use fdisk to fix it (the fdisk "a" command to be exact).
I am an ocasional Linux user but my family is more inclined to use WinXP, so I edited the grub "menu.lst" to boot WinXP instead of Ubuntu which is it's default.
Linux01

Last edited by linux01; 12-16-2007 at 09:38 AM.
 
Old 12-18-2007, 01:00 PM   #17
MikRose
Member
 
Registered: Mar 2006
Location: Arizona
Distribution: Linux Lucid 10.04
Posts: 83

Original Poster
Rep: Reputation: 15
Grub Reinstall

Thank you all again for the suggestions, I have a good reference file now for the future! After combining many of your ideas, I came to the conclusion that I had either deleted the Grub file or possibly installed it on a pen drive (if that's possible). I couldn't find the stage1 file anywhere no matter what boot sequence I used or how I searched for it. Eventually, I chose to install Feisty with a clean install on my secondary drive and during that process the grub was installed on my primary. Now when I boot, Linux is the first choice so I don't have to choose Windows unless I want it. I had a little trouble with the external modem when I went from Dapper to Feisty, but eventually was able to find a Linmodem driver that worked for my original internal Conexant modem and so far so good. I have to enter "sudo wvdial" in a terminal to get on-line instead of it being automatic...when I try to set up the modem with Network as I did the external previously (when it worked), it won't complete it for some reason. I had to go into /etc/wvdial file and enter my isp information, then use the Terminal command. I lost the information I had on the drive I was trying to gain access to before this all started, but easy come easy go. I have a free Gutsy Gibbon ordered, my dial-up isn't too keen on downloading, and I'm in no rush to bother with an iso burn. Thanks again, I am back in the Linux saddle and learning something every day.
 
Old 03-03-2009, 02:29 AM   #18
MikRose
Member
 
Registered: Mar 2006
Location: Arizona
Distribution: Linux Lucid 10.04
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Spirals View Post
The following fix worked for me aster a lot of reading and experiment. I ran into this problem after I suffered a corrupted XP installation. I have always installed XP on C: drive (hda1) and Linux (various flavors) on the hdd2 (with hdd1) for swap and hdc1 to hdc4 for "mounted on" working/data partitions.
To restore grub: I booted Debian running in ram, from CD and (presuming your Linux installation on the hdd2 is OK) type: grub <hit return>, on the grub command line type: root (hd2,1) <hit return>,then type: setup (hd0,0) <hit return>, finally type: quit <hit return>. Your finished. Shutdown and fter a cold reboot (power off) I get the grub menu up. Its that simple! Hope this helps.(dja.)
Thank you guys, just realized I've neglected to!
 
  


Reply

Tags
boot, grub, master, mbr, multiboot, record, systems, ubuntu, windows, xp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reinstall grub jaygee02 Ubuntu 4 01-22-2007 02:01 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Reinstall grub rejser Linux - Software 3 04-14-2004 03:19 AM
reinstall grub sau2004 Linux - Newbie 3 01-31-2004 10:29 PM


All times are GMT -5. The time now is 12:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration