Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
can i reset the MBR whithout Lost my Data ?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    amr
    amr is offline
    Just Joined! amr's Avatar
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    32

    Question Mbr


    can i reset the MBR whithout Lost my Data ?

  2. #2
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    yes you can....just reinstal your bootloader
    you can also boot in windows install disk>repair mode>type fixmbr

    i hope that helps

  3. #3
    Just Joined! buteman's Avatar
    Join Date
    Jul 2006
    Location
    Isle of Bute, Scotland
    Posts
    75
    yes you can....just reinstal your bootloader
    you can also boot in windows install disk>repair mode>type fixmbr
    I haven't used the windows fixmbr. Not used WIndows for a long time.
    When I did you used fdisk /mbr to fix it but that simply overwrote it.
    Does fixmbr actually repair it and so still leave you access to your linux?

  4. #4
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    To install GRUB in the MBR (access to linux and windows)

    # grub-install /dev/hda

    And the you can configure the bootloader in /boot/grub/menu.lst
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by amr
    can i reset the MBR whithout Lost my Data ?
    resetting MBR means writing new boot up option in master boot record. you are not changing anything in other partes of hard disk... no chance for data loss.




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

  6. #6
    Linux Enthusiast
    Join Date
    Dec 2004
    Posts
    637
    I wouldn't say no chance! If you hose the partition table there is always a chance.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by gtmtnbiker98
    I wouldn't say no chance! If you hose the partition table there is always a chance.
    MBR re-write has nothing to do with partition table......




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

  8. #8
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris
    Posts
    1,286
    Hi, devils_casper.
    Quote Originally Posted by devils_casper
    MBR re-write has nothing to do with partition table
    I think it might, at least indirectly. It's possible that Linux does things differently, but many references suggest that in addition to the boot code, the MBR also contains the partition table.

    Scott Mueller, Upgrading and Repairing PCs (13th), seems to say essentially the same thing as the Wikipedia article.

    I can imagine MS FDISK (and others) reading in the entire existing MBR, replacing the executable code, leaving the partition table entries alone, and re-writing the 512 byte MBR. So it seems a short stretch that a partition table could get screwed up by, say, an FDISK re-write of the MBR. For safety's sake, Mueller suggests saving a copy of the partition table.

    Elsewhere:
    People often recommend the undocumented DOS command FDISK /MBR to solve problems with the MBR. This command however does not rewrite the entire MBR - it just rewrites the boot code, the first 446 bytes of the MBR, but leaves the 64-byte partition information alone.

    http://www.win.tue.nl/~aeb/partition...n_types-2.html
    Are we talking about the same thing here? ... cheers, drl
    Where a data storage device has been partitioned with (what Microsoft terms) the MBR Partition Table scheme (i.e. the conventional IBM PC partitioning scheme), the master boot record contains the primary entries in the partition table.

    http://en.wikipedia.org/wiki/Mbr
    ( edit 1: addition )
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by drl
    Are we talking about the same thing here? ... cheers, drl
    yes ! although MBR have all partitions details but FDISK /mbr not do anything with that part.




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

  10. #10
    amr
    amr is offline
    Just Joined! amr's Avatar
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    32

    Post

    the fdisk /mbr re_writ the boot code ?

    is it mean repair the mpr ?

    and if i need to change the OS , say ,an HDD contains Linux -->and want to install MS windows , what is the correct Instructions ?

    and what its effect to the partition table ?


Page 1 of 2 1 2 LastLast

Posting Permissions

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