LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-05-2007, 01:51 AM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Rep: Reputation: 31
Thumbs up SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux)


Hello all LIinux Expert, i have a strange problem where the SATA hard disk MBR is corrupted by Linux Grub Boot loader. When i forgot to set priority of hard disk in BIOS , the MBR of SATA is couurpted by IDE(Linux). Now, the problem is solved but i want to know the reason.

Thanks for your help.

Your help is greatly appreciated by me and others.
 
Old 07-05-2007, 01:54 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
When i forgot to set priority of hard disk in BIOS , the MBR of SATA is couurpted by IDE(Linux).
Wasn't it that?

No, really - what did happen exactly? MBR (Main Boot Record) is the first 512 bytes of the harddisk. So..originally on the SATA drive there was something, and then happened something and GRUB did something. Now what are those 'something's? Did GRUB install itself to the SATA drive instead of the IDE drive or what?

A good practise is, when modifying bootloaders, to backup the MBRs of harddisks. It's simply done with dd.
 
Old 07-05-2007, 02:01 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Your statements are contradictory:

1. the SATA hard disk MBR is corrupted by Linux Grub Boot loader
2. the MBR of SATA is couurpted by IDE(Linux)

Which is it?

When you install linux, you are given an option to install GRUB to different places. Normally you would want to install to the MBR of the drive that BIOS will try to boot from. So it is normal for GRUB to write to the MBR.

If a windows recovery disk is used later, it will report (incorrectly) that the MBR has been "corrupted", even declaring that a virus is in there. This is because Windows will assume that it is the only OS on the computer. "Fixing" this with Windows fixboot will break your installation.

I hope this answers your question.
 
Old 07-06-2007, 02:07 AM   #4
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
the problem is ovled now but i want to map the windows partition into grub. How to do so ?
 
Old 07-06-2007, 04:31 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
the problem is ovled now
Yes, so you said. Can you let us know if any of the replies make sense to you? Otherwise, why should anyone bother?
Quote:
but i want to map the windows partition into grub
There are any number of tutorials and posts about dual boot with GRUB. Read one of those.

For your specific case, we need to know your existing /boot/grub/menu.lst and fdisk -l output.
 
Old 07-06-2007, 04:55 AM   #6
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
I agree with Simon, you're not giving us much to go on.
But just in case it helps, here's how my windows is mapped, in /boot/grub/grub.conf

# on /dev/sda1
title Microsoft Windows XP Home Edition
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
 
Old 07-07-2007, 12:20 AM   #7
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Sorry to do that. Anyway, thanks for your help.
 
  


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
how to install Linux 4 on SATA hard disk ssthakur Linux - Kernel 2 09-04-2006 11:33 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
SATA hard disk and linux fobius Slackware 3 01-26-2004 07:04 PM
SATA hard disk and linux fobius Linux - Hardware 0 01-24-2004 02:31 PM
Linux corrupted due to full hard disk ravykanth Linux - Newbie 7 10-20-2003 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:59 PM.

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