Fedora This forum is for the discussion of the Fedora Project. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-05-2007, 01:51 AM
|
#1
|
Member
Registered: Dec 2006
Posts: 606
Rep:
|
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.
|
|
|
07-05-2007, 01:54 AM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
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.
|
|
|
07-05-2007, 02:01 AM
|
#3
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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.
|
|
|
07-06-2007, 02:07 AM
|
#4
|
Member
Registered: Dec 2006
Posts: 606
Original Poster
Rep:
|
the problem is ovled now but i want to map the windows partition into grub. How to do so ?
|
|
|
07-06-2007, 04:31 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
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.
|
|
|
07-06-2007, 04:55 AM
|
#6
|
Member
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347
Rep:
|
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
|
|
|
07-07-2007, 12:20 AM
|
#7
|
Member
Registered: Dec 2006
Posts: 606
Original Poster
Rep:
|
Sorry to do that. Anyway, thanks for your help.
|
|
|
All times are GMT -5. The time now is 04:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|