LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-21-2005, 06:06 PM   #1
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Rep: Reputation: 15
Exclamation Mandriva Install Destroys GRUB


***NOTE: if their is a forum dedicated to installation, plese move it there***

I had Ubuntu Linux on a dual boot partition with WINXP, and decided to install Mandriva Linux (newest version) in Ubuntu's place. I fired up the Mandriva DVD, did the steps, and got to partitioning. There I selected "partition manualy" and deleted the ubuntu partion, making a new ext3 partion for mandriva in its place. I clicked OK, and after being prompted with a message box saying "This Will Write to Partition Table. Continue?" so I selected "yes". Then after hearing a bit of processing noise, i got a list of errors, saying "kernel missing." Clicking ok brought me back to the partitioning menu...

Doing this over a few times got me *really* mad. I took out the dvd and rebooted. Now all i get everytime i turn on my box is a "GRUB ERROR 22" I believe my MBR is messed up...

HELP!!!

thx in advance
 
Old 11-21-2005, 06:49 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
How we may be of service to you?

You have an aborted installation from Mandriva. That means it doesn't work. The Disk may be faulty for all we know or your hardware may have conflict with Mandriva. There is nothing we can do unless you have done a MD5 sum check on the iso image.

Your previous Ubuntu has been trashed by overwritting on it so it can't work either. Neither can we put back a system partially cut away.

What kind of help do you need from us?

Boot up a DOS floppy and type fdisk /mbr can get your XP back on line if that is what you after.
 
Old 11-21-2005, 07:31 PM   #3
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
Unfortunatly, I don't have a floppy drive. Would doing an installation of Ubuntu again fix GRUB???
I don't want to try to fix mandriva, so i guess i will try. I can't use my WINXP CD because i have no idea what the administrator password is, even though the box is mine...

i could use a gentoo live cd to use fdisk, but that might not have good effects.


Microsoft writes:
SUMMARY
The MS-DOS Fdisk utility usually updates the master boot record (MBR) only if no master boot record exists. Repartitioning with Fdisk does not rewrite this information.

Fdisk has an undocumented parameter called /mbr that causes it to write the master boot record to the hard disk without altering the partition table information.

Warning Writing the master boot record to the hard disk in this manner can make certain hard disks partitioned with SpeedStor unusable. It can also cause problems for some dual-boot programs and disks with more than four partitions.

Note that there is a prob with dual boot systems... Is this applicable here?

PS I want to recover windows and dont really care for now if i need to install a distro

Last edited by anubis26; 11-21-2005 at 08:12 PM.
 
Old 11-22-2005, 02:43 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I always use a DOS floppy's fdisk /mbr to fix a XP's MBR.

I also have, just for satisfying my self, used a XP's installation CD's fixmbr to fix a DOS 6.22 MBR.

As far as I am concerned the two are the same.

You can get got of a Win2k or any XP installation CD, drop into the recovery console and type

fixmbr

The password requested by XP installation CD protects the files only and should not affect the use of fixmbr.

The mbr is not a part of the filing system. It is stored in sector 0 of every partition permanently reserved for the boot loader. MBR is the first 512 bytes of it. It is important because the BIOS reads it.
 
Old 11-22-2005, 03:02 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quote:
Originally posted by saikee
The mbr is not a part of the filing system. It is stored in sector 0 of every partition permanently reserved for the boot loader. MBR is the first 512 bytes of it.
C'mon saikee you know better than that !!!!!
Every partition ??? - nah. Every disk I'd accept - partitions have boot sector records, not MBRs.

Just rattling your chain - don't take it too seriously ...
 
Old 11-22-2005, 04:30 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
syg00,

Yes you are right. The MBR is only the relevant for the first primary partition. So the red addition should make it technically more precise.

Quote:
The mbr is not a part of the filing system. It is stored in sector 0 of every partition permanently reserved for the boot loader. MBR is the first 512 bytes of it of the first partition
.

Strangely as it may sound as I always store every boot loader in its root partition and so replicating any one into the MBR is effectively placing its first 512 bytes there.

That is how I rotate my boot loader in the MBR.

Any system that has either Grub, Lilo or NTldr (from XP or Win2k) can take over the MBR to manage the booting.

tinybit, the author of Grub4DOS, has recently alerted me of his software with which I can launch Grub inside any DOS partition. That effectively makes every one of my 50+ systems capable of multi-booting the rest, by hooping from one boot loader to another. This can all be done without the use of the MBR because Grub can be booted from a floppy or a CD.
 
Old 11-22-2005, 05:16 PM   #7
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
great thanks for the tips!

now ill be able to use my webcam to talk wit family over thanksgiving.

Thank You!

*I understand that fixmbr is not risky*

UPDATE: After reinstalling ubuntu, both os's now work

Last edited by anubis26; 11-25-2005 at 11:37 AM.
 
  


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
Mandriva 2006 Grub Entry Jongi Mandriva 4 11-26-2005 03:59 PM
Dual boot grub Mandriva WinXP separate drives McNider Linux - General 2 06-17-2005 04:49 AM
Still Destroys Windows Partition? JSmith Fedora 6 01-08-2005 02:51 PM
simple redhat9 rpm install destroys whole OS qwijibow Linux - Newbie 9 07-14-2003 02:46 PM
rivafb destroys X server icyfire Slackware 6 11-19-2002 06:29 PM

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

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