nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How Do I restore mbr in Linux?

This is a discussion on How Do I restore mbr in Linux? within the Linux software forums, part of the Linux Getting Started category; In old good MS-DOS/Windows days, I used the command fdisk /mbr to restore Win/DOS MBR. How do I restore mbr ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 06-07-2005, 11:25 PM
Member
User
 
Join Date: Jun 2005
Posts: 78
Rep Power: 0
jerry
Default How Do I restore mbr in Linux?

In old good MS-DOS/Windows days, I used the command fdisk /mbr to
restore Win/DOS MBR. How do I restore mbr in Red Hat Linux? I would like to restore MBR of Linux i.e. default GRUB boot loader
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-08-2005, 11:44 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

You can use grub-install command to install it. Debain has one more good command called install-mbr. Read the man page of both to see example it is quite easy to use both of them...
Reply With Quote
  #3 (permalink)  
Old 06-16-2005, 03:48 PM
Junior Member
User
 
Join Date: Jan 2005
Posts: 19
Rep Power: 0
sonaikar
Default

You can restore MBR if you have taken Backup before.

You maust take back up of mbr on floppy or any suitable storage device by using follo command:-

dd if=/dev/hdx of=/dev/fd0 bs=512 count=1

Where hdx is your 1st Harddisk partition where you have loaded boot
sector(MBR).

Then install grub, and restore MBR again using:-

dd if=/dev/fd0 of=/dev/hdx bs=512 count=1

So you have restored your MBR and recovered the system .

If you have any query pleasd revert it.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
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

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to Create auto restore CD/DVD for linux ppnair Linux software 0 02-22-2008 11:42 AM
How to Create auto restore CD/DVD for linux ppnair Mail Servers 0 02-21-2008 03:46 PM
Shell script to change folder directory owner after restore marinm Shell scripting 5 01-23-2007 01:53 PM
Howto backup and restore Outlook/Outlook Express Datafiles? Windows Xp/2000/2003 server administration 6 07-31-2006 01:31 PM
ERRORS: Sun to Linux GNU tar tape restore on a 64 bit box tnicks Linux software 3 06-09-2005 03:59 PM


All times are GMT +5.5. The time now is 01:06 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36