code to recover when the partition is accidently formatted??

imnitsy

imnitsy

@imnitsy-VRNV82 Oct 21, 2024
hello..
some days before I accidently formatted a partition in my hard disk in which i had installed UBUNTU.
after doing this when I retsart, my system failed to reboot, although i had windows installed on other separate partition, then to recover from this i had reinstalled windows!!!

i want to know, why all this happened??
and also is there any code or any other procedure to recover from such things, without reinstalling the operating system ???😕

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • optimystix

    optimystix

    @optimystix-4yMPKC Jan 29, 2010

    u have deleted ur master boot record[MBR] it seems and therefore it was unable to read MBR and understand from where to load the operating system[in this case, windows].fixing it with recovery console would have solved the prob.
    u need to type fixmbr in recovery console. no data loss(though there is one bug here about the partition)
  • imnitsy

    imnitsy

    @imnitsy-VRNV82 Jan 29, 2010

    optimystix
    u need to type fixmbr in recovery console
    ok thanx,
    well why the bootmgr was unable to boot windows ??
  • optimystix

    optimystix

    @optimystix-4yMPKC Jan 29, 2010

    imnitsy
    ok thanx,
    well why the bootmgr was unable to boot windows ??
    this is a common problem with people tryin to dual boot with ubuntu and wndows. not that there is a problem but unless done in proper way it can cause the mbr to become corrupt.

    in ur case , when u installed unbuntu, the MBR was over written by the GRUB bootloader to include ubuntu along with windows. now when u deleted ubuntu, the grub was gone too and it had earlier modified mbr so the mbr left got corrupt and did not know where the windows installation was(this info was with GRUB bootloader)
    fixing mbr with recovery console will install the default mbr and let it know the location of the windows too boot.
    but since the mbr set now is the default one therefore when you go to format with a windows xp disc, on the screen where it shows the diff partitions, u will notice theres only a single partition C with windows on it. Even though u mite be having other partitions such as d,e,f but it wont show them. thus a person wanting to modify his partitions will have a problem.that was the bug i was talking about

    tell me if am confusing
    correct me if am wrong:smile:
  • imnitsy

    imnitsy

    @imnitsy-VRNV82 Jan 29, 2010

    thanks a lot!!!!😁
  • optimystix

    optimystix

    @optimystix-4yMPKC Jan 29, 2010

    u are welcome 😀
    its a problem many people commit. its better to shed a light on it and help people avoid it