Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-01-2005, 06:20 PM   #1 (permalink)
CCIE# 20863
 
Join Date: Dec 2004
Location: Outside the Matrix
Posts: 166
Default Playing around with MBR


Hi all.... Have u ever played with MBR?

Once I installed Red Hat Enterprise on my system where NTLDR was on MBR. GRUB replaced it with itself so I decided to manually restore NTLDR w/o/ XP's recovery CD. I launched Red Hat, logged in as root and mounted C drive on /c.
In terminal, I typed following:
dd if=/c/ntldr of=/dev/hda bs=512 count=1

When rebooted, my PC showed the good ol' NTLDR's boot menu.

I turned off the PC, but when I reboooooted, It started to say Invalid system disk.... All partitions on my hard disk were corrupted, no drive was in proper condition. launching FDISK asked me that MBR is corrupted, and repairing it will result in Loss of all data. I searced the net for 2 days for any goos data recovery software.... I couldn't find one. So I decided to try something on my HDD. I borrowed my friend's HDD and installed it as a slave. Launched Linux rescue, then typed following:

dd if=/dev/hdb of=/dev/hda bs=512 count=1

This copied my friend's MBR to my hard disk. Now my C drive came into existance, and at least data on C was in proper condition. Then I remembered that GRUB keeps copy of existing MBR on C drive in bootsect.dos file. I again mounted C drive in Linux rescue in /c and typed this:

dd if=/c/bootsect.dos of=/dev/hda bs=512 count=1

After reboot, everything was in proper condition,all data was available and NTLDR was installed as a boot loader.


Now, I want to ask, has anyone played with MBR like this? I just wanted to share my experince coz, if someone has screwed MBR, maybe This can help.
__________________
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
theKonqueror is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-01-2005, 06:52 PM   #2 (permalink)
In The Zone
 
busyanuj's Avatar
 
Join Date: Dec 2003
Posts: 488
Default

see this:
Code:
http://thinkdigit.com/forum/viewtopic.php?t=7606&highlight=mbr
__________________
You are a living magnet. What you attract into your life is in harmony with your dominant thoughts.
busyanuj is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Tenida
- by Charan
- by abhidev
- by Sujeet
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2