LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-09-2011, 07:28 AM   #1
Stranger420
LQ Newbie
 
Registered: Jun 2011
Distribution: Zorin OS 3 Core,Windows XP SP3
Posts: 25

Rep: Reputation: 11
How can i get my mbr back?


hi guys,i have somehow managed to screw my mbr, here is what happened.

I had windows xp and pclinuxos 2011 kde with grub installed on mbr.
my hard drive has 5 partitions,(c)which is fat32 and xp is installed on it,(d)which is ntfs and is used for documents,music etc.(e)was fat32 and primarily used for games installation and downloads.next partition is linux swap.the last one is the ext4 pclinuxos one.
i wanted to convert the (e) to ntfs to use ntfs native compression.
i successfully converted (e) to ntfs by using convert e: /fs:ntfs.which went flawlessly, but when i restarted my computer the grub was GONE.so i booted from dos cd and restored windows boot-loader through fdisk /mbr.and windows was back.now i wanted to get the grub back so i booted from livecd and tried to reinstall grub through grub prompt but it gave me a error (something about stage1 can't be written).so i decided to use super grub disk.i have parted magic on my usb which has super grub disk(by the way pclinuxos uses grub lagacy)and successfully booted into pclinuxos.i tried to re install grub through the option in control center (with usb drive still plugged in) and the installation went smoothly,but when i rebooted there was no grub and the system booted from usb drive (instead of hd)and there was my grub on my USB. apparently since pclinuxos was booted from usb through supergrub disk which took usb as sda and the hard disk as sdb (and i selected sda when i installed grub back)now between all this something has happened to my mbr and bios doesn't detect an partition om my hd at all.but i have access to all of my partition if i boot from a live cd.
so how can i get my mbr back so that i can get my windows back and then i can install grub again or simply install another distro over pclinuxos (i was thinking of backtrack 5 or opensuse 11).
thanks in advance.
 
Old 12-09-2011, 10:43 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Usually the GUI way works. But sometimes you just gotta do it manually.

The PCLinuxOS forum has the commands.
 
Old 12-09-2011, 11:32 AM   #3
Stranger420
LQ Newbie
 
Registered: Jun 2011
Distribution: Zorin OS 3 Core,Windows XP SP3
Posts: 25

Original Poster
Rep: Reputation: 11
i have installed grub back using mepis 8 lice cd.but windows boot loader is still missing, so i am gonna reboot from a dos disk and copy io.sys and msdos.sys files from that to my c partition and hope that the problem is solved.
 
  


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
How do you get back into Ubuntu if you don't put Grub on the MBR? Marrea Ubuntu 7 07-21-2005 07:27 AM
Lilo back into MBR theonebeyond Linux - General 2 11-11-2004 12:34 AM
Installing winXP on other partition wipes my MBR....i want my lilo back!! theMonkeY Slackware 2 09-22-2004 07:30 AM
[SOLVED] reinstalling grub or reconfiguring it to be put back on the mbr pintooo15 Red Hat 7 06-06-2004 11:49 AM
WinXP cleared my MBR! How can I get Lilo back? SoSlack Slackware 15 11-24-2003 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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