Dual boot windows 7 and kali linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Once I had windows 7 on a internal HDD and wanted to install backtrack 5 on another internal HDD on the same PC. When installation completed, I rebooted and found only backtrack 5. I booted a live iso of backtrack 5 operating system and executed the following commands:



sudo apt-get install software-properties-common
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


And that solved the problem. boot-repair was installed and ran successfully and I was able to chose which operating system to launch at power up.



A few days ago, I decided to upgrade to the successor kali Linux, so I downloaded the iso, burned it to a disc and installed it to the HDD that was hosting backtrack 5. Similarly, when I rebooted I was only presented with kali without windows 7. I tried to follow the method as earlier to dual boot, but I ran into an error message:



Unable to find package boot-repair. (I don't remember it literally)


I have searched a lot, and found a boot-repair iso, which is lubuntu with boot-repair, gparted and other programs. I burned it to disk, and launched it, and the boot-repair was up. It ran and displayed that it has repaired and the pc is ready after reboot.



When I rebooted, I was presented with black screen with error message:



No operating system found.


Please help.










share|improve this question
























  • "I don't remember much" is as helpful as "It didn't work" - i.e. not helpful at all. If I understand you correctly, you didn't actually use the OS for too long; therefore the easiest way is to install your Kali once again and then search in the Internet on how to find Windows 7.

    – MatthewRock
    Oct 21 '16 at 12:02

















1















Once I had windows 7 on a internal HDD and wanted to install backtrack 5 on another internal HDD on the same PC. When installation completed, I rebooted and found only backtrack 5. I booted a live iso of backtrack 5 operating system and executed the following commands:



sudo apt-get install software-properties-common
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


And that solved the problem. boot-repair was installed and ran successfully and I was able to chose which operating system to launch at power up.



A few days ago, I decided to upgrade to the successor kali Linux, so I downloaded the iso, burned it to a disc and installed it to the HDD that was hosting backtrack 5. Similarly, when I rebooted I was only presented with kali without windows 7. I tried to follow the method as earlier to dual boot, but I ran into an error message:



Unable to find package boot-repair. (I don't remember it literally)


I have searched a lot, and found a boot-repair iso, which is lubuntu with boot-repair, gparted and other programs. I burned it to disk, and launched it, and the boot-repair was up. It ran and displayed that it has repaired and the pc is ready after reboot.



When I rebooted, I was presented with black screen with error message:



No operating system found.


Please help.










share|improve this question
























  • "I don't remember much" is as helpful as "It didn't work" - i.e. not helpful at all. If I understand you correctly, you didn't actually use the OS for too long; therefore the easiest way is to install your Kali once again and then search in the Internet on how to find Windows 7.

    – MatthewRock
    Oct 21 '16 at 12:02













1












1








1








Once I had windows 7 on a internal HDD and wanted to install backtrack 5 on another internal HDD on the same PC. When installation completed, I rebooted and found only backtrack 5. I booted a live iso of backtrack 5 operating system and executed the following commands:



sudo apt-get install software-properties-common
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


And that solved the problem. boot-repair was installed and ran successfully and I was able to chose which operating system to launch at power up.



A few days ago, I decided to upgrade to the successor kali Linux, so I downloaded the iso, burned it to a disc and installed it to the HDD that was hosting backtrack 5. Similarly, when I rebooted I was only presented with kali without windows 7. I tried to follow the method as earlier to dual boot, but I ran into an error message:



Unable to find package boot-repair. (I don't remember it literally)


I have searched a lot, and found a boot-repair iso, which is lubuntu with boot-repair, gparted and other programs. I burned it to disk, and launched it, and the boot-repair was up. It ran and displayed that it has repaired and the pc is ready after reboot.



When I rebooted, I was presented with black screen with error message:



No operating system found.


Please help.










share|improve this question
















Once I had windows 7 on a internal HDD and wanted to install backtrack 5 on another internal HDD on the same PC. When installation completed, I rebooted and found only backtrack 5. I booted a live iso of backtrack 5 operating system and executed the following commands:



sudo apt-get install software-properties-common
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair


And that solved the problem. boot-repair was installed and ran successfully and I was able to chose which operating system to launch at power up.



A few days ago, I decided to upgrade to the successor kali Linux, so I downloaded the iso, burned it to a disc and installed it to the HDD that was hosting backtrack 5. Similarly, when I rebooted I was only presented with kali without windows 7. I tried to follow the method as earlier to dual boot, but I ran into an error message:



Unable to find package boot-repair. (I don't remember it literally)


I have searched a lot, and found a boot-repair iso, which is lubuntu with boot-repair, gparted and other programs. I burned it to disk, and launched it, and the boot-repair was up. It ran and displayed that it has repaired and the pc is ready after reboot.



When I rebooted, I was presented with black screen with error message:



No operating system found.


Please help.







linux windows kali-linux dual-boot boot-loader






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 23 '16 at 10:13







layzak

















asked Oct 21 '16 at 9:51









layzaklayzak

63




63












  • "I don't remember much" is as helpful as "It didn't work" - i.e. not helpful at all. If I understand you correctly, you didn't actually use the OS for too long; therefore the easiest way is to install your Kali once again and then search in the Internet on how to find Windows 7.

    – MatthewRock
    Oct 21 '16 at 12:02

















  • "I don't remember much" is as helpful as "It didn't work" - i.e. not helpful at all. If I understand you correctly, you didn't actually use the OS for too long; therefore the easiest way is to install your Kali once again and then search in the Internet on how to find Windows 7.

    – MatthewRock
    Oct 21 '16 at 12:02
















"I don't remember much" is as helpful as "It didn't work" - i.e. not helpful at all. If I understand you correctly, you didn't actually use the OS for too long; therefore the easiest way is to install your Kali once again and then search in the Internet on how to find Windows 7.

– MatthewRock
Oct 21 '16 at 12:02





"I don't remember much" is as helpful as "It didn't work" - i.e. not helpful at all. If I understand you correctly, you didn't actually use the OS for too long; therefore the easiest way is to install your Kali once again and then search in the Internet on how to find Windows 7.

– MatthewRock
Oct 21 '16 at 12:02










5 Answers
5






active

oldest

votes


















0














Backtrack now called Kali is made from Ubuntu which is made from Debian... any way most Linux on x86 will use the GRUB boot loader.

Following the GRUB repair instructions from Ubuntu is a good start.



  • The first thing to do is know what should happen (Bios->GRUB->OS)

  • The second thing is to know what's working (Is the Bios loading GRUB?) if it's not you need to re-install grub, if it is you need to edit the GRUB config so it knows what OSs you have and how to load them.
    You can install and configure GRUB from most any Linux live ISO.





share|improve this answer
































    0















    Similarly, when I rebooted I was only presented with kali without windows 7




    have you attempted to simply boot kali, then run;



    sudo update-grub2


    You don't need a live iso to fix boot, as you can use the valid linux install to do this, update-grub2 will detect any windows partitions and add them to the grub list.



    If you still don't see windows from the boot menu, you can run;



    sudo grub-install /dev/sd?


    Only if you are unable to boot any partition, even with grub-rescue do you need a live cd to fix boot.






    share|improve this answer






























      0














      Try this Solution chroot without installing the Kernel-image and Kernel-headers.






      share|improve this answer
































        0














        Boot the Kali Live CD in live mode. Open a terminal and run fdisk -lu



        SAMPLE OUTPUT



        Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
        Units: sectors of 1 * 512 = 512 bytes
        Sector size (logical/physical): 512 bytes / 4096 bytes
        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
        Disklabel type: dos
        Disk identifier: 0xd9fa2484

        Device Boot Start End Sectors Size Id Type
        /dev/sda1 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
        /dev/sda2 206848 204802047 204595200 97.6G 7 HPFS/NTFS/exFAT
        /dev/sda3 204802048 1023999999 819197952 390.6G 7 HPFS/NTFS/exFAT
        /dev/sda4 1024004094 1953523711 929519618 443.2G 5 Extended
        /dev/sda5 1024004096 1663361023 639356928 304.9G 7 HPFS/NTFS/exFAT
        /dev/sda6 1663363072 1711697919 48334848 23G 83 Linux
        /dev/sda7 1711699968 1774604287 62904320 30G 83 Linux
        /dev/sda8 * 1774616576 1932972031 158355456 75.5G 83 Linux
        /dev/sda9 1932986368 1953523711 20537344 9.8G 82 Linux swap / Solaris

        Partition 4 does not start on physical sector boundary.


        Note the last column (type). The drive you have installed Linux will show up as Linux. In my case, there are 3. Note the number dev/sdaX. Replace X with your partition number.



        Run



        mount /dev/sdaX /mnt
        grub-install --root-directory=/mnt /dev/sda


        If you get command not found error, try installing GRUB using apt



        After GRUB is successfully installed, run



        mount -o bind /dev /mnt/dev
        mount -o bind /proc /mnt/proc
        mount -o bind /sys /mnt/sys
        chroot /mnt
        update-grub


        If you get a command not found error in update-grub run grub-mkconfig -o /boot/grub/grub.cfg



        After it says done type exit and get out of the chroot. Then reboot.



        These are the steps I used in a script to install my Linux From Scratch from Live CD. Try and see if it works.






        share|improve this answer
































          -1














          You can use the old Backtrack 5 iso and perform the same commands as you had used earlier. This is just a solutions for your problem so that you get your computer back to usable condition but not an answer to why.






          share|improve this answer

























            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%2f317914%2fdual-boot-windows-7-and-kali-linux%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Backtrack now called Kali is made from Ubuntu which is made from Debian... any way most Linux on x86 will use the GRUB boot loader.

            Following the GRUB repair instructions from Ubuntu is a good start.



            • The first thing to do is know what should happen (Bios->GRUB->OS)

            • The second thing is to know what's working (Is the Bios loading GRUB?) if it's not you need to re-install grub, if it is you need to edit the GRUB config so it knows what OSs you have and how to load them.
              You can install and configure GRUB from most any Linux live ISO.





            share|improve this answer





























              0














              Backtrack now called Kali is made from Ubuntu which is made from Debian... any way most Linux on x86 will use the GRUB boot loader.

              Following the GRUB repair instructions from Ubuntu is a good start.



              • The first thing to do is know what should happen (Bios->GRUB->OS)

              • The second thing is to know what's working (Is the Bios loading GRUB?) if it's not you need to re-install grub, if it is you need to edit the GRUB config so it knows what OSs you have and how to load them.
                You can install and configure GRUB from most any Linux live ISO.





              share|improve this answer



























                0












                0








                0







                Backtrack now called Kali is made from Ubuntu which is made from Debian... any way most Linux on x86 will use the GRUB boot loader.

                Following the GRUB repair instructions from Ubuntu is a good start.



                • The first thing to do is know what should happen (Bios->GRUB->OS)

                • The second thing is to know what's working (Is the Bios loading GRUB?) if it's not you need to re-install grub, if it is you need to edit the GRUB config so it knows what OSs you have and how to load them.
                  You can install and configure GRUB from most any Linux live ISO.





                share|improve this answer















                Backtrack now called Kali is made from Ubuntu which is made from Debian... any way most Linux on x86 will use the GRUB boot loader.

                Following the GRUB repair instructions from Ubuntu is a good start.



                • The first thing to do is know what should happen (Bios->GRUB->OS)

                • The second thing is to know what's working (Is the Bios loading GRUB?) if it's not you need to re-install grub, if it is you need to edit the GRUB config so it knows what OSs you have and how to load them.
                  You can install and configure GRUB from most any Linux live ISO.






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Oct 24 '16 at 2:19

























                answered Oct 24 '16 at 2:11









                user1133275user1133275

                3,7641924




                3,7641924























                    0















                    Similarly, when I rebooted I was only presented with kali without windows 7




                    have you attempted to simply boot kali, then run;



                    sudo update-grub2


                    You don't need a live iso to fix boot, as you can use the valid linux install to do this, update-grub2 will detect any windows partitions and add them to the grub list.



                    If you still don't see windows from the boot menu, you can run;



                    sudo grub-install /dev/sd?


                    Only if you are unable to boot any partition, even with grub-rescue do you need a live cd to fix boot.






                    share|improve this answer



























                      0















                      Similarly, when I rebooted I was only presented with kali without windows 7




                      have you attempted to simply boot kali, then run;



                      sudo update-grub2


                      You don't need a live iso to fix boot, as you can use the valid linux install to do this, update-grub2 will detect any windows partitions and add them to the grub list.



                      If you still don't see windows from the boot menu, you can run;



                      sudo grub-install /dev/sd?


                      Only if you are unable to boot any partition, even with grub-rescue do you need a live cd to fix boot.






                      share|improve this answer

























                        0












                        0








                        0








                        Similarly, when I rebooted I was only presented with kali without windows 7




                        have you attempted to simply boot kali, then run;



                        sudo update-grub2


                        You don't need a live iso to fix boot, as you can use the valid linux install to do this, update-grub2 will detect any windows partitions and add them to the grub list.



                        If you still don't see windows from the boot menu, you can run;



                        sudo grub-install /dev/sd?


                        Only if you are unable to boot any partition, even with grub-rescue do you need a live cd to fix boot.






                        share|improve this answer














                        Similarly, when I rebooted I was only presented with kali without windows 7




                        have you attempted to simply boot kali, then run;



                        sudo update-grub2


                        You don't need a live iso to fix boot, as you can use the valid linux install to do this, update-grub2 will detect any windows partitions and add them to the grub list.



                        If you still don't see windows from the boot menu, you can run;



                        sudo grub-install /dev/sd?


                        Only if you are unable to boot any partition, even with grub-rescue do you need a live cd to fix boot.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Oct 25 '16 at 3:10









                        mikejoneseymikejonesey

                        1,400415




                        1,400415





















                            0














                            Try this Solution chroot without installing the Kernel-image and Kernel-headers.






                            share|improve this answer





























                              0














                              Try this Solution chroot without installing the Kernel-image and Kernel-headers.






                              share|improve this answer



























                                0












                                0








                                0







                                Try this Solution chroot without installing the Kernel-image and Kernel-headers.






                                share|improve this answer















                                Try this Solution chroot without installing the Kernel-image and Kernel-headers.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Apr 13 '17 at 12:36









                                Community

                                1




                                1










                                answered Oct 29 '16 at 11:13







                                user192526




























                                    0














                                    Boot the Kali Live CD in live mode. Open a terminal and run fdisk -lu



                                    SAMPLE OUTPUT



                                    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
                                    Units: sectors of 1 * 512 = 512 bytes
                                    Sector size (logical/physical): 512 bytes / 4096 bytes
                                    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                                    Disklabel type: dos
                                    Disk identifier: 0xd9fa2484

                                    Device Boot Start End Sectors Size Id Type
                                    /dev/sda1 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                                    /dev/sda2 206848 204802047 204595200 97.6G 7 HPFS/NTFS/exFAT
                                    /dev/sda3 204802048 1023999999 819197952 390.6G 7 HPFS/NTFS/exFAT
                                    /dev/sda4 1024004094 1953523711 929519618 443.2G 5 Extended
                                    /dev/sda5 1024004096 1663361023 639356928 304.9G 7 HPFS/NTFS/exFAT
                                    /dev/sda6 1663363072 1711697919 48334848 23G 83 Linux
                                    /dev/sda7 1711699968 1774604287 62904320 30G 83 Linux
                                    /dev/sda8 * 1774616576 1932972031 158355456 75.5G 83 Linux
                                    /dev/sda9 1932986368 1953523711 20537344 9.8G 82 Linux swap / Solaris

                                    Partition 4 does not start on physical sector boundary.


                                    Note the last column (type). The drive you have installed Linux will show up as Linux. In my case, there are 3. Note the number dev/sdaX. Replace X with your partition number.



                                    Run



                                    mount /dev/sdaX /mnt
                                    grub-install --root-directory=/mnt /dev/sda


                                    If you get command not found error, try installing GRUB using apt



                                    After GRUB is successfully installed, run



                                    mount -o bind /dev /mnt/dev
                                    mount -o bind /proc /mnt/proc
                                    mount -o bind /sys /mnt/sys
                                    chroot /mnt
                                    update-grub


                                    If you get a command not found error in update-grub run grub-mkconfig -o /boot/grub/grub.cfg



                                    After it says done type exit and get out of the chroot. Then reboot.



                                    These are the steps I used in a script to install my Linux From Scratch from Live CD. Try and see if it works.






                                    share|improve this answer





























                                      0














                                      Boot the Kali Live CD in live mode. Open a terminal and run fdisk -lu



                                      SAMPLE OUTPUT



                                      Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
                                      Units: sectors of 1 * 512 = 512 bytes
                                      Sector size (logical/physical): 512 bytes / 4096 bytes
                                      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                                      Disklabel type: dos
                                      Disk identifier: 0xd9fa2484

                                      Device Boot Start End Sectors Size Id Type
                                      /dev/sda1 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                                      /dev/sda2 206848 204802047 204595200 97.6G 7 HPFS/NTFS/exFAT
                                      /dev/sda3 204802048 1023999999 819197952 390.6G 7 HPFS/NTFS/exFAT
                                      /dev/sda4 1024004094 1953523711 929519618 443.2G 5 Extended
                                      /dev/sda5 1024004096 1663361023 639356928 304.9G 7 HPFS/NTFS/exFAT
                                      /dev/sda6 1663363072 1711697919 48334848 23G 83 Linux
                                      /dev/sda7 1711699968 1774604287 62904320 30G 83 Linux
                                      /dev/sda8 * 1774616576 1932972031 158355456 75.5G 83 Linux
                                      /dev/sda9 1932986368 1953523711 20537344 9.8G 82 Linux swap / Solaris

                                      Partition 4 does not start on physical sector boundary.


                                      Note the last column (type). The drive you have installed Linux will show up as Linux. In my case, there are 3. Note the number dev/sdaX. Replace X with your partition number.



                                      Run



                                      mount /dev/sdaX /mnt
                                      grub-install --root-directory=/mnt /dev/sda


                                      If you get command not found error, try installing GRUB using apt



                                      After GRUB is successfully installed, run



                                      mount -o bind /dev /mnt/dev
                                      mount -o bind /proc /mnt/proc
                                      mount -o bind /sys /mnt/sys
                                      chroot /mnt
                                      update-grub


                                      If you get a command not found error in update-grub run grub-mkconfig -o /boot/grub/grub.cfg



                                      After it says done type exit and get out of the chroot. Then reboot.



                                      These are the steps I used in a script to install my Linux From Scratch from Live CD. Try and see if it works.






                                      share|improve this answer



























                                        0












                                        0








                                        0







                                        Boot the Kali Live CD in live mode. Open a terminal and run fdisk -lu



                                        SAMPLE OUTPUT



                                        Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
                                        Units: sectors of 1 * 512 = 512 bytes
                                        Sector size (logical/physical): 512 bytes / 4096 bytes
                                        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                                        Disklabel type: dos
                                        Disk identifier: 0xd9fa2484

                                        Device Boot Start End Sectors Size Id Type
                                        /dev/sda1 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                                        /dev/sda2 206848 204802047 204595200 97.6G 7 HPFS/NTFS/exFAT
                                        /dev/sda3 204802048 1023999999 819197952 390.6G 7 HPFS/NTFS/exFAT
                                        /dev/sda4 1024004094 1953523711 929519618 443.2G 5 Extended
                                        /dev/sda5 1024004096 1663361023 639356928 304.9G 7 HPFS/NTFS/exFAT
                                        /dev/sda6 1663363072 1711697919 48334848 23G 83 Linux
                                        /dev/sda7 1711699968 1774604287 62904320 30G 83 Linux
                                        /dev/sda8 * 1774616576 1932972031 158355456 75.5G 83 Linux
                                        /dev/sda9 1932986368 1953523711 20537344 9.8G 82 Linux swap / Solaris

                                        Partition 4 does not start on physical sector boundary.


                                        Note the last column (type). The drive you have installed Linux will show up as Linux. In my case, there are 3. Note the number dev/sdaX. Replace X with your partition number.



                                        Run



                                        mount /dev/sdaX /mnt
                                        grub-install --root-directory=/mnt /dev/sda


                                        If you get command not found error, try installing GRUB using apt



                                        After GRUB is successfully installed, run



                                        mount -o bind /dev /mnt/dev
                                        mount -o bind /proc /mnt/proc
                                        mount -o bind /sys /mnt/sys
                                        chroot /mnt
                                        update-grub


                                        If you get a command not found error in update-grub run grub-mkconfig -o /boot/grub/grub.cfg



                                        After it says done type exit and get out of the chroot. Then reboot.



                                        These are the steps I used in a script to install my Linux From Scratch from Live CD. Try and see if it works.






                                        share|improve this answer















                                        Boot the Kali Live CD in live mode. Open a terminal and run fdisk -lu



                                        SAMPLE OUTPUT



                                        Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
                                        Units: sectors of 1 * 512 = 512 bytes
                                        Sector size (logical/physical): 512 bytes / 4096 bytes
                                        I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                                        Disklabel type: dos
                                        Disk identifier: 0xd9fa2484

                                        Device Boot Start End Sectors Size Id Type
                                        /dev/sda1 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
                                        /dev/sda2 206848 204802047 204595200 97.6G 7 HPFS/NTFS/exFAT
                                        /dev/sda3 204802048 1023999999 819197952 390.6G 7 HPFS/NTFS/exFAT
                                        /dev/sda4 1024004094 1953523711 929519618 443.2G 5 Extended
                                        /dev/sda5 1024004096 1663361023 639356928 304.9G 7 HPFS/NTFS/exFAT
                                        /dev/sda6 1663363072 1711697919 48334848 23G 83 Linux
                                        /dev/sda7 1711699968 1774604287 62904320 30G 83 Linux
                                        /dev/sda8 * 1774616576 1932972031 158355456 75.5G 83 Linux
                                        /dev/sda9 1932986368 1953523711 20537344 9.8G 82 Linux swap / Solaris

                                        Partition 4 does not start on physical sector boundary.


                                        Note the last column (type). The drive you have installed Linux will show up as Linux. In my case, there are 3. Note the number dev/sdaX. Replace X with your partition number.



                                        Run



                                        mount /dev/sdaX /mnt
                                        grub-install --root-directory=/mnt /dev/sda


                                        If you get command not found error, try installing GRUB using apt



                                        After GRUB is successfully installed, run



                                        mount -o bind /dev /mnt/dev
                                        mount -o bind /proc /mnt/proc
                                        mount -o bind /sys /mnt/sys
                                        chroot /mnt
                                        update-grub


                                        If you get a command not found error in update-grub run grub-mkconfig -o /boot/grub/grub.cfg



                                        After it says done type exit and get out of the chroot. Then reboot.



                                        These are the steps I used in a script to install my Linux From Scratch from Live CD. Try and see if it works.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Oct 29 '16 at 16:04

























                                        answered Oct 29 '16 at 14:06









                                        Aniket BhattacharyeaAniket Bhattacharyea

                                        4301417




                                        4301417





















                                            -1














                                            You can use the old Backtrack 5 iso and perform the same commands as you had used earlier. This is just a solutions for your problem so that you get your computer back to usable condition but not an answer to why.






                                            share|improve this answer





























                                              -1














                                              You can use the old Backtrack 5 iso and perform the same commands as you had used earlier. This is just a solutions for your problem so that you get your computer back to usable condition but not an answer to why.






                                              share|improve this answer



























                                                -1












                                                -1








                                                -1







                                                You can use the old Backtrack 5 iso and perform the same commands as you had used earlier. This is just a solutions for your problem so that you get your computer back to usable condition but not an answer to why.






                                                share|improve this answer















                                                You can use the old Backtrack 5 iso and perform the same commands as you had used earlier. This is just a solutions for your problem so that you get your computer back to usable condition but not an answer to why.







                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Oct 29 '16 at 10:21

























                                                answered Oct 29 '16 at 8:32









                                                PSPPSP

                                                357




                                                357



























                                                    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%2f317914%2fdual-boot-windows-7-and-kali-linux%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

                                                    Peggy Mitchell

                                                    Palaiologos

                                                    The Forum (Inglewood, California)