LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2007, 10:18 AM   #1
Mousy
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva 2005 LE - Ubuntu Edgy - Ubuntu Feisty
Posts: 14

Rep: Reputation: 0
fixmbr for WinXP killed GRUB-cannot boot into Ubuntu - HD1+HD2 not recognized


Hi

I have been using WinXP and Ubuntu (initially Edubuntu 6.10) for the last few months with no problems.
The OS are on 2 separate disks.
Linux disk holds both Edubuntu 6.10 and the latest Ubuntu Feisty 7.04. They are on separate partitions.
When I installed Feisty I had planned to save the bootloader onto a USB key, and then copy the bootsector onto C:\ in Windows, but I didn't. Therefore GRUB took over WinXP boot.ini, although I could still boot into Windows.
I then decided to use fixmbr to re-establish WinXP booting, and tried to export GRUB bootsector onto C:\ with dd... command.
It didn't work. I could only boot into Edubuntu (which I had installed with bootloader on USB key as described above). Ubuntu only showed a series of 99 99 99 ..., when selected.
Now the problem is that, after I did all this, I cannot use both hard drives at the same time. They are not recognized by the BIOS. But if I remove Linux HD I can boot into WinXP.
I am about to try if BIOS can see my second HD.

Can this problem be caused by the process that I wrongly followed with Ubuntu installation? It could well be the HD, as it is a 26GB I used for at least the last 8 years.

I am going to try if it can be recognized by the BIOS when I disconnect the Win HD. In the mean time an experienced comment on this issue is very welcome.

Thanks
Giuseppe
 
Old 08-15-2007, 10:29 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
tried to export GRUB bootsector onto C:\ with dd... command.
exactly what command did you use here ?
 
Old 08-15-2007, 10:40 AM   #3
Mousy
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva 2005 LE - Ubuntu Edgy - Ubuntu Feisty
Posts: 14

Original Poster
Rep: Reputation: 0
Linux HD not recognized

It looks like the Linux HD is dead.
Not a sausage from it. BIOS cannot see it, whether it's configured as a Master or as a Slave or Cable Select.
All of this happened this morning when I turned the PC on, and discoverd that both HDs were not recognized by the BIOS.
Since then I tried recovering using PE Bart for WinXP.
And with that I managed to read Windows disk.
Then I disconnected Linux HD and realised I could boot.
Hmmm...Still investigating...
 
Old 08-15-2007, 10:50 AM   #4
Mousy
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva 2005 LE - Ubuntu Edgy - Ubuntu Feisty
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
exactly what command did you use here ?
By memory:

dd if=/dev/hdb3 of=/ubuntu.bin bs=512 count=1
 
Old 08-15-2007, 11:08 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Mousy View Post
By memory:

dd if=/dev/hdb3 of=/ubuntu.bin bs=512 count=1
that command copies the first sector of the partition hdb3. This is commonly called the "boot sector". You always have to have boot code in the MBR if you are booting from any harddrive directly. The MBR is the first sector of the drive--not part of any partition.

depending on where you are in your trouble-shooting, the "booting" link below might help.
 
Old 08-15-2007, 11:11 AM   #6
Mousy
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva 2005 LE - Ubuntu Edgy - Ubuntu Feisty
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mousy View Post
It looks like the Linux HD is dead.
I have just done something that I had done and learned in the past from somewhere on the net.
The BIOS was in a sort of confused state.
I inverted the Lithium battery close to it for a few seconds (my MOBO does not have a jumper for the reset).
Resetting the BIOS chip means now that BIOS recognises the thought dead Linux HD.
I still have the problem that I cannot access Linux as the bootsector created for Windows doesn't work.

At least one problem is solved...
 
Old 08-15-2007, 11:21 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"bootsector created for Windows"
See my previous comment about the difference between MBR and bootsector. Most dual-boot setups would not do anything with bootsectors.

You can boot up from a live CD--eg your ubuntu 704 CD--and re-install GRUB from there. There's also a handy new thing out which I have been meaning to try---the "SuperGrub boot disk.
 
Old 08-15-2007, 11:30 AM   #8
Mousy
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva 2005 LE - Ubuntu Edgy - Ubuntu Feisty
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
...
depending on where you are in your trouble-shooting, the "booting" link below might help.
Thanks pixellany.
I realized the mistake.
Do you expect I can still boot into the Feisty even if i don't have GRUB any more on the main disk?
After all I don't have any importnt data in Ubuntu.
The only annoyance is that I had installed many games for the children, other interesting applications, Qt designer and other programming tools that I use quite a lot, and the downloading process was rather long (nearly 2G of stuff).
But, hey, I could start again and a avoid the trouble.
nless it is really easy to re-establish GRUB....

I like the though!!
 
Old 08-15-2007, 12:47 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
It is really easy to install GRUB---it is also relatively easy to re-install Linux. Take your pick.

If you can get into any Linux (including live CD) you can get into your installed version.
 
Old 08-16-2007, 05:39 AM   #10
Mousy
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva 2005 LE - Ubuntu Edgy - Ubuntu Feisty
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
.... "SuperGrub boot disk.
I used Supergrub last night.
Unfortunately, although it said that the process of "re-creating" GRUB had succeded, it has actually installed
GRUB into the MBR of the 2nd disk where LINUX is.
My system MBR is on the 1st disk, where WinXP is.
Using another tool from SuperGrub I was able to boot into Ubuntu Feisty (even if it was on the 2nd disk) to confirm the above.
I still have to figure out how to manually create a file onto a floppy or USB key (like bootsect.lnx) that I can stick onto C:\ and insert a line in boot.ini (WinXP) to call the file and boot Ubuntu Feisty. (this was what I did with Edubuntu 6.04)
I still haven't gone throguh the reading. I'll do it tonight back from work...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HD1:IDE Suse 10.2 & Windows Xp Pro HD HD2: SATA XP PRO X64 HOW TO MOUNT HD 2 blazintilda2005 Linux - Hardware 1 04-13-2007 08:30 PM
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
64-bit Suse9.1 on HD1, need WinXP on HD2 sharkcatcher Linux - Newbie 4 01-22-2005 01:16 PM
Killed WinBoot, Fixmbr doesn't work igoretta Linux - General 4 11-18-2004 12:16 PM
red hat on hd1 windows on hd2 FireWolf Linux - Newbie 6 02-12-2003 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:43 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