There were Windows and Linux Mint on the laptop. It took to remove Linux.

I went into partition management in windows, and simply deleted two partitions (99 GB and 230 MB). Reboot the computer. The message appears:

error: no such partition.
Entering rescue mode ...

grub rescue>

On the Internet, it is recommended to download a disk with Windows 7, but I do not have such a disk, since Windows was originally on a laptop.

  • 2
    All right said. Look for the disk with Windows of the appropriate version and restore the bootloader from it. You can try to boot from a flash drive instead of a disk. - user194374 4:19 pm
  • Pirate version will go? - Anton
  • A pirate will do as well. - user194374 pm

1 answer 1

in fact, you need to copy the standard mbr into the first sector of your hard drive.

This can be done, for example, using almost any live-cd / dvd / usb with the gnu / linux operating system.

The 440-byte file itself is most likely directly on live-cd / dvd / usb.

  1. After downloading from this media, check the availability of:

    $ find /usr -name mbr.bin -ls 682571 4 -rw-r--r-- 1 root root 440 Dec 10 2012 /usr/lib/syslinux/mbr.bin 

    an example of output is shown, from which it is clear that the file is located at /usr/lib/syslinux/mbr.bin and its size is just 440 bytes.

    if you do not find the file, but the Internet is available, you can download this file, for example, from a Yandex mirror:

     $ wget http://mirror.yandex.ru/mirrors/magos/netlive/2014red/boot/syslinux/mbr.bin 

    this command will mbr.bin it to the current directory as mbr.bin .

  2. The next step is to find out the name of your hard drive.

    this can be done, for example, with the command:

     $ sudo fdisk -l | grep ^Disk Disk /dev/sda: 1000.2 GB, 1000204886016 bytes ... 

    An example of the output. if you have several hard drives connected, you can identify the desired size (or, in extreme cases, simply physically disable everything except the “main” one). The key line (in this case) is /dev/sda . This is the name of your hard drive.


All necessary information is collected.

and now the “magic” command to copy the same 440-byte file into the first sector of the hard drive:

 $ sudo dd if=файл of=диск 

instead of the файл specify the path to the файл found / downloaded in the first step. this will either be /usr/lib/syslinux/mbr.bin (from the example), or just mbr.bin if you downloaded / copied it into the current directory.

Instead of a диск specify the name obtained in the second step.

the result should be the following, for example, the command:

 $ sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda 0+1 records in 0+1 records out 440 bytes (440 B) copied, 0.0146916 s, 29.9 kB/s 

An example of its output is shown, from which it can be seen that exactly 440 bytes were copied.


instruction in English