On the laptop are 2 OS. Ubuntu 13.04 and Windows 7. I crashed a hard disk through GParted and installed Windows 7 under ubuntu. When booting, Windows 7 boots by default. And can you do something like this when ubuntu reboots to boot ubuntu and windows reboots accordingly?

    2 answers 2

    By the subsequent installation of Windows, you killed the Ubuntu bootloader - yes, all systems from Microsoft behave insolently.
    If you want to have Linux + Windows on your computer, first install Windows, and then Linux. In this case, Linux itself will ruin everything and correctly prescribe.
    But in your case all is not lost: 1) you need to find the LiveCD with your version of Ubunt; 2) read about the restoration of the grub bootloader in the internet; 3) use the recommendations for recovery by booting from the Live.

    • If Windows to uninstall, then the hornbeam will be a standard bootloader? - Jeremen1
    • one
      Why uninstall it? - after all, there is a reason why you installed Windu. There is. So ask to restore grub. Moreover, after removing Windu, do not automatically restore the grub :). Or, if you now have nothing serious in both operating systems, you can format partitions (completely clear the computer), and then put in the order I specified. - Justicet

    I can offer only one convenient option (I am sure that it is not the only one) option is to install the system and the bootloader in the BOOT SECTOR of my disk, and not in the MBR .te. default option for ubunt:

    |[MBR] GRUB\ | UBUNTU /dev/sda1 | [BR] WIN /dev/sda2 

    should be changed to:

     |[MBR]\- [BR] GRUB UBUNTU /dev/sda1 |-[BR] WIN /dev/sda2 

    in this case, the system whose partition is marked as BOOT will be loaded. Those. when rebooting, the same, and if you need to reboot into another, you will need to change the active partition and reboot. I hope everything is clear explained)

    • did not understand anything)) but still thanks for the response) - Jeremen1
    • if absolutely nothing, then it will be hard for me to explain. Maybe something is still clear? from this and will dance - ArcherGodson
    • What did you mean by the word system (OS?) And where is the boot sector of the disk? What is the active partition? - Jeremen1
    • system - OSbut sector (given a link to the wiki) - this is a place in each disk partition, where there can be its (this section) own bootloader section (also given a link, read, there is not a lot) - this is the section that is labeled in a special way in the MBR , to which the boot control is transferred in the absence of this bootloader in this very MBR. In Linux, you can see the command (the active section is marked with an asterisk) fdisk -l; you can also use fdisk, cfdisk, gparted, or whatever is convenient for you to control. - ArcherGodson