Find the answer to your Linux question:
Results 1 to 2 of 2
This probally has a simple answer but I need that answer ... In RH9 I backed up my MBR I backed up like: Code: dd if=/dev/sda of=/mnt/nfs/mbr.img bs=512 count=1 This ...
  1. #1
    Banned joewee's Avatar
    Join Date
    Sep 2006
    Posts
    113

    dd MBR restore?

    This probally has a simple answer but I need that answer...
    In RH9 I backed up my MBR

    I backed up like:

    Code:
    dd if=/dev/sda of=/mnt/nfs/mbr.img bs=512 count=1
    This should work in SuSE I just need to know how to restore it.

    Thanx
    jw...

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi joewee !!

    command is same in all Linux distros.
    Code:
    dd if=/dev/sda of=/mnt/nfs/mbr.img bs=512 count=1
    this command copy contents of disk 'sda' from sector 1 to 512 and saves in file /mnt/nfs/mbr.img.

    Code:
    dd if=/mnt/nfs/mbr.img of=/dev/sda bs=512 count=1
    this will do the same...... copy from file and saves it to disk.....




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...