LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2004, 11:54 PM   #1
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Rep: Reputation: 0
Duel boot MBR screwed


I have Red Hat and WinXP duel boot. I decided to reformat my Winxp partition and when i did, I lost my MBR.

I can't get my mbr back!! help!!!

I've tried a number of tools, but I dont think they'll work w/ my linux paritions.

Should I go into WinXP repair console and fixmbr and fixboot? or Fdisk/mbr?

I heard they'll mess up my linux partitions?

my linux parition isn't important to me, so should i just go with it???


more detail:
1 Fat32 (winxp)
3 NTFS (data)
and whatever linux partitions

I need help!!!!
 
Old 07-22-2004, 12:14 AM   #2
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Don't panic, this is absolutely recoverable.

You shouldn't need anything other than your redhat install cd #1 to fix this. We do need to know what bootloader you use (I'm guessing grub) and if it's you primary bootloader (you weren't using an xp bootmenu were you.) Basically you need to boot off rh cd#1 into rescue mode and reinstall grub. If you are able to use cd #1 to get into rescue and run:

fdisk -l

post the results. A description of all your drives and where they are attached (primary master, slave etc.) will be usefull too.
 
Old 07-22-2004, 12:15 AM   #3
godzilla_roar20
Member
 
Registered: Jul 2004
Location: PA
Distribution: Fedora Core 1, Knoppix
Posts: 74

Rep: Reputation: 15
or just put in your windows disk, then fix mbr
 
Old 07-22-2004, 12:31 AM   #4
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
tried the rescue mode, but couldn't find linux partitions, so i retried and skipped the search, it went to prompt, and i tried fdisk -l and it displayed 4 partitions.

....er....now what??

im lost.

all my partitions are on one 1xx GB hd
 
Old 07-22-2004, 12:43 AM   #5
Superme
Member
 
Registered: Jul 2004
Location: Smiths Falls Ontario (near ottawa [our capital])
Distribution: slackware 9.1, redhat 9.0, PHLAK, SuSE 9.0Pro windows XP (HEAVILY MODIFIED)
Posts: 111

Rep: Reputation: 15
this will help

Hello i am also a newbie...but on my old computer, linux would not work at all because of its speed (i found my self installing linux and windows again and again and using things like fdisk is easy now)

if you have multiple partitions or even separate hard drives a windows 98 boot up disk or something to run fdisk should help

1 if you have lilo or grub (linux versions of duel boot) then use fdisk to set your active partition to what ever your linux os is on and while in lilo or grub select your windows, fat, fat32, or ntfs partition and open windows

2 if windows is not installed on your non linux partition then use fdisk to make the nonlinux partition active then install windows to it by

A) boot the windows installation directly from cd if your computer supports it (most do)
or B) using the windows 98 boot up disk to type D:\setup (where d is the drive letter
of your cd drive)

if from what I understood in your forum your linux partition didnt matter to you and you want windows back, then maybe you have doughts on wether linux is for you, Linux is the best os out there and its completely free so before converting back to windows think about this...would you rather have an os from a money hungry corporation that is just trying to make money or a os from people around the world who are trying to make the best os for the users benefit, not for them, they do this for fun and they enjoy it. stick with linux!

I hope this helps because I also am a newbie and am only 14 no lie
 
Old 07-22-2004, 12:50 AM   #6
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
There weren't any linux or linux swap partitions? (type 82 and 83 iirc) Uh oh! Not good.

I take it you only have the one hd. Not sure but windoze may have eaten your linux. fdisk -l should have shown up your linux partitions if they still exist.
 
Old 07-22-2004, 12:57 AM   #7
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
okey, i havent used linux recently and have forgot everything. i need step by step instructions what to do.

i can't get grub/lilo back.
i forgot which one im using, it had a blue screen...thats all i remember.
 
Old 07-22-2004, 01:12 AM   #8
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Sounds like grub to me. That is the default for rh. Trouble is you need to know where (what partitons) your linux was installed at. Then it's simple to reinstall grub to the mbr and everything should work just like before. Provided of course that linux didn't get wiped by xp. I know it's a pain but seeing the result of fdisk -l would really help, even if you have to write it down by hand.
 
Old 07-22-2004, 01:22 AM   #9
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
this is what i get from fdisk -l
device boot start end blocks id system
/dev/hda1 * 116388 126089 84344761 69 unknown partition 1 does not end on cylinder boundry

/dev/hda2 105915 222310 93490732+ 73 unknown partition 1 does not end on cylinder boundry

/dev/hda3 1 1 0 74 unknown partition 1 does not end on cylinder boundry

/dev/hda4 1 213826 1717556736 0 empty partition 1 does not end on cylinder boundry
 
Old 07-22-2004, 01:24 AM   #10
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
i dont want my linux partitions anymore, i just want my 3 ntfs partitions and an empty one to install windows back!!! help!!!!
 
Old 07-22-2004, 01:41 AM   #11
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Hmm. Something went very badly wrong. Your partition tables appear to be a mess. You've got overlapping partitions and the partition ordering is all screwed up. If there was any important data on the ntfs partitions you've got a problem. You need someone with much more experience with xp than I. If however there is nothing on your computer you want to rescue then I would suggest deleting all partitions and starting over. Better yet download the disk utils from the hd manufacturer and llf the sucker. (write zeros to drive) Whatever xp did to the drive it _really_ messed up. Thankyou Mr. Gates, may I have another.

Like I said, I don't know enough about xp to know if there is anything worth saving, but my best guess is no.
 
Old 07-22-2004, 01:47 AM   #12
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
anyone w/ better ideas?
 
Old 07-22-2004, 02:08 AM   #13
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Sorry I couldn't be more help. Never seen a fdisk listing that weird.

Good luck.

Anyone who wants to jump in here won't hurt my feelings.

Short bump.

Last edited by kevinalm; 07-22-2004 at 02:09 AM.
 
Old 07-22-2004, 03:37 AM   #14
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
TestDisk from http://www.cgsecurity.org/ works pretty good, I found my partitions, but I'm having problems accessing them... I'll write what ends up happening
 
Old 07-22-2004, 04:19 AM   #15
101010
LQ Newbie
 
Registered: Jul 2004
Posts: 10

Original Poster
Rep: Reputation: 0
okey i fixed my mbr a bit. i can use fdisk -l and see all my partitions now.


now what?????
 
  


Reply


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
fc2, duel boot, mbr, and other stuff ferreter Fedora 4 09-16-2004 01:53 PM
How I screwed my mbr...FC2 & W2k, windows unable to boot even after reinstallation! shamael Linux - Newbie 3 05-24-2004 11:26 PM
really screwed MBR jimmywithtorch Linux - Software 4 03-15-2004 04:34 AM
Mandrake Install Screwed up MBR; Need to Make Boot Loader CD paul_m_d Linux - Newbie 5 12-09-2003 04:36 AM
screwed up mbr hooligan Linux - Software 5 10-17-2001 01:59 AM


All times are GMT -5. The time now is 05:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration