How come my Grub isn't initialised at the boot?












1















I dual booted Kali next to Windows7 and after a succesfull install I rebooted to not find an option to use Kali instead of Win7 in the BIOS.



After having done some research I found out that Win7 has a tendency to uninstall GRUB.
So looking into that I rebooted using my live usb with kali on it and tried to solve my problem by trying to reinstall GRUB using the explanation here ,and adjusted the sda3 to sda6 since this is where I have kali installed on my harddrive:
https://forums.kali.org/showthread.php?20559-How-To-Repair-Kali-Linux-Grub-With-Kali-Linux-Live-Cd-Dual-Boot-With-Windows-7



root@kali:~# mount /dev/sda6 /mnt
root@kali:~# mount --bind /dev /mnt/dev
root@kali:~# mount --bind /dev/pts /mnt/dev/pts
root@kali:~# mount --bind /proc /mnt/proc
root@kali:~# mount --bind /sys /mnt/sys
root@kali:~# chroot /mnt
root@kali:/# grub-install /dev/sda
Installation finished. No error reported.
root@kali:/# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.18.0-kali3-amd64
Found initrd image: /boot/initrd.img-3.18.0-kali3-amd64
No volume groups found
Found Windows 7 (loader) on /dev/sda3
Found Windows Recovery Environment (loader) on /dev/sda4
done
root@kali:/# exit
exit
root@kali:~# umount /mnt/dev/pts
root@kali:~# umount /mnt/dev
root@kali:~# umount /mnt/proc
root@kali:~# umount /mnt/sys
root@kali:~# umount /mnt


I remove the live usb and reboot my computer while holding shift but it goes back to the windows bootloader.



Any idea on what I am doing wrong?










share|improve this question

























  • After reboot you need to update the grub to add WIndows partition (per your link): os-prober update-grubHave you done this already?

    – ryekayo
    May 18 '15 at 13:08











  • No I hadn't . I tried it now but I got this: bash: os-prober: command not found

    – BURNS
    May 18 '15 at 13:13











  • Try sudo apt-get install os-prober

    – ryekayo
    May 18 '15 at 13:15











  • Ok ,that worked. Now I got this after having to sudo apt-get install grub: root@kali:~# update-grub Searching for GRUB installation directory ... No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

    – BURNS
    May 18 '15 at 13:22











  • Just create the directory. That seems more painless than doing a grub-install...

    – ryekayo
    May 18 '15 at 13:23
















1















I dual booted Kali next to Windows7 and after a succesfull install I rebooted to not find an option to use Kali instead of Win7 in the BIOS.



After having done some research I found out that Win7 has a tendency to uninstall GRUB.
So looking into that I rebooted using my live usb with kali on it and tried to solve my problem by trying to reinstall GRUB using the explanation here ,and adjusted the sda3 to sda6 since this is where I have kali installed on my harddrive:
https://forums.kali.org/showthread.php?20559-How-To-Repair-Kali-Linux-Grub-With-Kali-Linux-Live-Cd-Dual-Boot-With-Windows-7



root@kali:~# mount /dev/sda6 /mnt
root@kali:~# mount --bind /dev /mnt/dev
root@kali:~# mount --bind /dev/pts /mnt/dev/pts
root@kali:~# mount --bind /proc /mnt/proc
root@kali:~# mount --bind /sys /mnt/sys
root@kali:~# chroot /mnt
root@kali:/# grub-install /dev/sda
Installation finished. No error reported.
root@kali:/# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.18.0-kali3-amd64
Found initrd image: /boot/initrd.img-3.18.0-kali3-amd64
No volume groups found
Found Windows 7 (loader) on /dev/sda3
Found Windows Recovery Environment (loader) on /dev/sda4
done
root@kali:/# exit
exit
root@kali:~# umount /mnt/dev/pts
root@kali:~# umount /mnt/dev
root@kali:~# umount /mnt/proc
root@kali:~# umount /mnt/sys
root@kali:~# umount /mnt


I remove the live usb and reboot my computer while holding shift but it goes back to the windows bootloader.



Any idea on what I am doing wrong?










share|improve this question

























  • After reboot you need to update the grub to add WIndows partition (per your link): os-prober update-grubHave you done this already?

    – ryekayo
    May 18 '15 at 13:08











  • No I hadn't . I tried it now but I got this: bash: os-prober: command not found

    – BURNS
    May 18 '15 at 13:13











  • Try sudo apt-get install os-prober

    – ryekayo
    May 18 '15 at 13:15











  • Ok ,that worked. Now I got this after having to sudo apt-get install grub: root@kali:~# update-grub Searching for GRUB installation directory ... No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

    – BURNS
    May 18 '15 at 13:22











  • Just create the directory. That seems more painless than doing a grub-install...

    – ryekayo
    May 18 '15 at 13:23














1












1








1








I dual booted Kali next to Windows7 and after a succesfull install I rebooted to not find an option to use Kali instead of Win7 in the BIOS.



After having done some research I found out that Win7 has a tendency to uninstall GRUB.
So looking into that I rebooted using my live usb with kali on it and tried to solve my problem by trying to reinstall GRUB using the explanation here ,and adjusted the sda3 to sda6 since this is where I have kali installed on my harddrive:
https://forums.kali.org/showthread.php?20559-How-To-Repair-Kali-Linux-Grub-With-Kali-Linux-Live-Cd-Dual-Boot-With-Windows-7



root@kali:~# mount /dev/sda6 /mnt
root@kali:~# mount --bind /dev /mnt/dev
root@kali:~# mount --bind /dev/pts /mnt/dev/pts
root@kali:~# mount --bind /proc /mnt/proc
root@kali:~# mount --bind /sys /mnt/sys
root@kali:~# chroot /mnt
root@kali:/# grub-install /dev/sda
Installation finished. No error reported.
root@kali:/# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.18.0-kali3-amd64
Found initrd image: /boot/initrd.img-3.18.0-kali3-amd64
No volume groups found
Found Windows 7 (loader) on /dev/sda3
Found Windows Recovery Environment (loader) on /dev/sda4
done
root@kali:/# exit
exit
root@kali:~# umount /mnt/dev/pts
root@kali:~# umount /mnt/dev
root@kali:~# umount /mnt/proc
root@kali:~# umount /mnt/sys
root@kali:~# umount /mnt


I remove the live usb and reboot my computer while holding shift but it goes back to the windows bootloader.



Any idea on what I am doing wrong?










share|improve this question
















I dual booted Kali next to Windows7 and after a succesfull install I rebooted to not find an option to use Kali instead of Win7 in the BIOS.



After having done some research I found out that Win7 has a tendency to uninstall GRUB.
So looking into that I rebooted using my live usb with kali on it and tried to solve my problem by trying to reinstall GRUB using the explanation here ,and adjusted the sda3 to sda6 since this is where I have kali installed on my harddrive:
https://forums.kali.org/showthread.php?20559-How-To-Repair-Kali-Linux-Grub-With-Kali-Linux-Live-Cd-Dual-Boot-With-Windows-7



root@kali:~# mount /dev/sda6 /mnt
root@kali:~# mount --bind /dev /mnt/dev
root@kali:~# mount --bind /dev/pts /mnt/dev/pts
root@kali:~# mount --bind /proc /mnt/proc
root@kali:~# mount --bind /sys /mnt/sys
root@kali:~# chroot /mnt
root@kali:/# grub-install /dev/sda
Installation finished. No error reported.
root@kali:/# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.18.0-kali3-amd64
Found initrd image: /boot/initrd.img-3.18.0-kali3-amd64
No volume groups found
Found Windows 7 (loader) on /dev/sda3
Found Windows Recovery Environment (loader) on /dev/sda4
done
root@kali:/# exit
exit
root@kali:~# umount /mnt/dev/pts
root@kali:~# umount /mnt/dev
root@kali:~# umount /mnt/proc
root@kali:~# umount /mnt/sys
root@kali:~# umount /mnt


I remove the live usb and reboot my computer while holding shift but it goes back to the windows bootloader.



Any idea on what I am doing wrong?







windows dual-boot grub kali-linux boot-loader






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago









Rui F Ribeiro

39.6k1479132




39.6k1479132










asked May 18 '15 at 12:33









BURNSBURNS

1042




1042













  • After reboot you need to update the grub to add WIndows partition (per your link): os-prober update-grubHave you done this already?

    – ryekayo
    May 18 '15 at 13:08











  • No I hadn't . I tried it now but I got this: bash: os-prober: command not found

    – BURNS
    May 18 '15 at 13:13











  • Try sudo apt-get install os-prober

    – ryekayo
    May 18 '15 at 13:15











  • Ok ,that worked. Now I got this after having to sudo apt-get install grub: root@kali:~# update-grub Searching for GRUB installation directory ... No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

    – BURNS
    May 18 '15 at 13:22











  • Just create the directory. That seems more painless than doing a grub-install...

    – ryekayo
    May 18 '15 at 13:23



















  • After reboot you need to update the grub to add WIndows partition (per your link): os-prober update-grubHave you done this already?

    – ryekayo
    May 18 '15 at 13:08











  • No I hadn't . I tried it now but I got this: bash: os-prober: command not found

    – BURNS
    May 18 '15 at 13:13











  • Try sudo apt-get install os-prober

    – ryekayo
    May 18 '15 at 13:15











  • Ok ,that worked. Now I got this after having to sudo apt-get install grub: root@kali:~# update-grub Searching for GRUB installation directory ... No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

    – BURNS
    May 18 '15 at 13:22











  • Just create the directory. That seems more painless than doing a grub-install...

    – ryekayo
    May 18 '15 at 13:23

















After reboot you need to update the grub to add WIndows partition (per your link): os-prober update-grubHave you done this already?

– ryekayo
May 18 '15 at 13:08





After reboot you need to update the grub to add WIndows partition (per your link): os-prober update-grubHave you done this already?

– ryekayo
May 18 '15 at 13:08













No I hadn't . I tried it now but I got this: bash: os-prober: command not found

– BURNS
May 18 '15 at 13:13





No I hadn't . I tried it now but I got this: bash: os-prober: command not found

– BURNS
May 18 '15 at 13:13













Try sudo apt-get install os-prober

– ryekayo
May 18 '15 at 13:15





Try sudo apt-get install os-prober

– ryekayo
May 18 '15 at 13:15













Ok ,that worked. Now I got this after having to sudo apt-get install grub: root@kali:~# update-grub Searching for GRUB installation directory ... No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

– BURNS
May 18 '15 at 13:22





Ok ,that worked. Now I got this after having to sudo apt-get install grub: root@kali:~# update-grub Searching for GRUB installation directory ... No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

– BURNS
May 18 '15 at 13:22













Just create the directory. That seems more painless than doing a grub-install...

– ryekayo
May 18 '15 at 13:23





Just create the directory. That seems more painless than doing a grub-install...

– ryekayo
May 18 '15 at 13:23










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f204074%2fhow-come-my-grub-isnt-initialised-at-the-boot%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f204074%2fhow-come-my-grub-isnt-initialised-at-the-boot%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Loup dans la culture

How to solve the problem of ntp “Unable to contact time server” from KDE?

Connection limited (no internet access)