System intact, grub broken












1














I updated from wheezy to Jessie, everything went smoothly, until I restarted. When it booted back up, all I got was grub rescue (error: file '/boot/grub/i386-pc/normal.mod') not found. ls gives me (hd0) (hd0,msdos1). ls (hd0,msdos1) is a blank line. Nothing in it. I booted from a live CD and tried running boot repair, but that failed at "grub-pc purge cancelled". I mounted the drive. Everything seems to be there. I chrooted in, purged grub, and reinstalled grub. No change. I have the exact same issue. I completely purged grub, without reinstalling. Still no change. I am at a loss, I do not know how to fix this, or even how to continue troubleshooting. Any help would be appreciated. (I know this is highly specific but I have searched everywhere.)



As requested grub-install /dev/sda from chroot yields:



Installing for i386-pc platform.
Installation finished. No error reported.


update-grub yields:



Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-4-686-pae
Found initrd image: /boot/initrd.img-3.16.0-4-686-pae
Found linux image: /boot/vmlinuz-3.16.0-4-586
Found initrd image: /boot/initrd.img-3.16.0-4-586
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done


/dev/sdb seems to be my live CD.



Edit:



I used the super grub livecd, and now I can boot into Debian. From the operating system, I removed my livecd, then tried running grub-install /dev/sda and update-grub. When I reboot, I end up at the same grub rescue screen.










share|improve this question
























  • Is your /boot is on a separated partition?
    – Ipor Sircer
    Nov 30 '17 at 0:08










  • Not as far as I can tell
    – Academiphile
    Nov 30 '17 at 0:09










  • Does /boot/grub/i386-pc/normal.mod exist? Is there only one hdd?
    – Ipor Sircer
    Nov 30 '17 at 0:11










  • From within the os yes, and yes.
    – Academiphile
    Nov 30 '17 at 0:13










  • please add the full output of grub-install /dev/sda to your queston.
    – Ipor Sircer
    Nov 30 '17 at 0:17
















1














I updated from wheezy to Jessie, everything went smoothly, until I restarted. When it booted back up, all I got was grub rescue (error: file '/boot/grub/i386-pc/normal.mod') not found. ls gives me (hd0) (hd0,msdos1). ls (hd0,msdos1) is a blank line. Nothing in it. I booted from a live CD and tried running boot repair, but that failed at "grub-pc purge cancelled". I mounted the drive. Everything seems to be there. I chrooted in, purged grub, and reinstalled grub. No change. I have the exact same issue. I completely purged grub, without reinstalling. Still no change. I am at a loss, I do not know how to fix this, or even how to continue troubleshooting. Any help would be appreciated. (I know this is highly specific but I have searched everywhere.)



As requested grub-install /dev/sda from chroot yields:



Installing for i386-pc platform.
Installation finished. No error reported.


update-grub yields:



Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-4-686-pae
Found initrd image: /boot/initrd.img-3.16.0-4-686-pae
Found linux image: /boot/vmlinuz-3.16.0-4-586
Found initrd image: /boot/initrd.img-3.16.0-4-586
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done


/dev/sdb seems to be my live CD.



Edit:



I used the super grub livecd, and now I can boot into Debian. From the operating system, I removed my livecd, then tried running grub-install /dev/sda and update-grub. When I reboot, I end up at the same grub rescue screen.










share|improve this question
























  • Is your /boot is on a separated partition?
    – Ipor Sircer
    Nov 30 '17 at 0:08










  • Not as far as I can tell
    – Academiphile
    Nov 30 '17 at 0:09










  • Does /boot/grub/i386-pc/normal.mod exist? Is there only one hdd?
    – Ipor Sircer
    Nov 30 '17 at 0:11










  • From within the os yes, and yes.
    – Academiphile
    Nov 30 '17 at 0:13










  • please add the full output of grub-install /dev/sda to your queston.
    – Ipor Sircer
    Nov 30 '17 at 0:17














1












1








1


1





I updated from wheezy to Jessie, everything went smoothly, until I restarted. When it booted back up, all I got was grub rescue (error: file '/boot/grub/i386-pc/normal.mod') not found. ls gives me (hd0) (hd0,msdos1). ls (hd0,msdos1) is a blank line. Nothing in it. I booted from a live CD and tried running boot repair, but that failed at "grub-pc purge cancelled". I mounted the drive. Everything seems to be there. I chrooted in, purged grub, and reinstalled grub. No change. I have the exact same issue. I completely purged grub, without reinstalling. Still no change. I am at a loss, I do not know how to fix this, or even how to continue troubleshooting. Any help would be appreciated. (I know this is highly specific but I have searched everywhere.)



As requested grub-install /dev/sda from chroot yields:



Installing for i386-pc platform.
Installation finished. No error reported.


update-grub yields:



Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-4-686-pae
Found initrd image: /boot/initrd.img-3.16.0-4-686-pae
Found linux image: /boot/vmlinuz-3.16.0-4-586
Found initrd image: /boot/initrd.img-3.16.0-4-586
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done


/dev/sdb seems to be my live CD.



Edit:



I used the super grub livecd, and now I can boot into Debian. From the operating system, I removed my livecd, then tried running grub-install /dev/sda and update-grub. When I reboot, I end up at the same grub rescue screen.










share|improve this question















I updated from wheezy to Jessie, everything went smoothly, until I restarted. When it booted back up, all I got was grub rescue (error: file '/boot/grub/i386-pc/normal.mod') not found. ls gives me (hd0) (hd0,msdos1). ls (hd0,msdos1) is a blank line. Nothing in it. I booted from a live CD and tried running boot repair, but that failed at "grub-pc purge cancelled". I mounted the drive. Everything seems to be there. I chrooted in, purged grub, and reinstalled grub. No change. I have the exact same issue. I completely purged grub, without reinstalling. Still no change. I am at a loss, I do not know how to fix this, or even how to continue troubleshooting. Any help would be appreciated. (I know this is highly specific but I have searched everywhere.)



As requested grub-install /dev/sda from chroot yields:



Installing for i386-pc platform.
Installation finished. No error reported.


update-grub yields:



Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-4-686-pae
Found initrd image: /boot/initrd.img-3.16.0-4-686-pae
Found linux image: /boot/vmlinuz-3.16.0-4-586
Found initrd image: /boot/initrd.img-3.16.0-4-586
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done


/dev/sdb seems to be my live CD.



Edit:



I used the super grub livecd, and now I can boot into Debian. From the operating system, I removed my livecd, then tried running grub-install /dev/sda and update-grub. When I reboot, I end up at the same grub rescue screen.







debian boot grub2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 5 '17 at 17:30

























asked Nov 29 '17 at 23:17









Academiphile

113113




113113












  • Is your /boot is on a separated partition?
    – Ipor Sircer
    Nov 30 '17 at 0:08










  • Not as far as I can tell
    – Academiphile
    Nov 30 '17 at 0:09










  • Does /boot/grub/i386-pc/normal.mod exist? Is there only one hdd?
    – Ipor Sircer
    Nov 30 '17 at 0:11










  • From within the os yes, and yes.
    – Academiphile
    Nov 30 '17 at 0:13










  • please add the full output of grub-install /dev/sda to your queston.
    – Ipor Sircer
    Nov 30 '17 at 0:17


















  • Is your /boot is on a separated partition?
    – Ipor Sircer
    Nov 30 '17 at 0:08










  • Not as far as I can tell
    – Academiphile
    Nov 30 '17 at 0:09










  • Does /boot/grub/i386-pc/normal.mod exist? Is there only one hdd?
    – Ipor Sircer
    Nov 30 '17 at 0:11










  • From within the os yes, and yes.
    – Academiphile
    Nov 30 '17 at 0:13










  • please add the full output of grub-install /dev/sda to your queston.
    – Ipor Sircer
    Nov 30 '17 at 0:17
















Is your /boot is on a separated partition?
– Ipor Sircer
Nov 30 '17 at 0:08




Is your /boot is on a separated partition?
– Ipor Sircer
Nov 30 '17 at 0:08












Not as far as I can tell
– Academiphile
Nov 30 '17 at 0:09




Not as far as I can tell
– Academiphile
Nov 30 '17 at 0:09












Does /boot/grub/i386-pc/normal.mod exist? Is there only one hdd?
– Ipor Sircer
Nov 30 '17 at 0:11




Does /boot/grub/i386-pc/normal.mod exist? Is there only one hdd?
– Ipor Sircer
Nov 30 '17 at 0:11












From within the os yes, and yes.
– Academiphile
Nov 30 '17 at 0:13




From within the os yes, and yes.
– Academiphile
Nov 30 '17 at 0:13












please add the full output of grub-install /dev/sda to your queston.
– Ipor Sircer
Nov 30 '17 at 0:17




please add the full output of grub-install /dev/sda to your queston.
– Ipor Sircer
Nov 30 '17 at 0:17










2 Answers
2






active

oldest

votes


















1














A simply and effective way to reinstall grub in your PC without complications is with the Boot-Repair-Disk utility (here is the download page: https://sourceforge.net/projects/boot-repair-cd/files/latest/download), this is a live system that have tools for reinstalling the grub bootloader.



Steps: just download, burn in a USB with unetbootin or etcher and boot in your PC, when the system start you will see a windows with two options, select the one that says "recommended repair", now connect to internet (it will download the grub packages that corresponds to your system, Debian in your case), let the program analyse your partitions and just follow the steps, you will solve the problem in less than 5 minutes.
When you finish, reboot and make a "sudo grub-update" in a terminal on Debian, voila! Grub fully installed and configured again.



Another tool that can help you is Super Grub2 Rescue (here is the link: https://www.supergrubdisk.org/), weighs less than 20MB, this will help you to boot directly in Debian without installing grub.






share|improve this answer































    0














    Try running: echo "(hd0) /dev/sda" > /boot/grub/device.map






    share|improve this answer





















    • From grub, from the live CD, or from the live CD in chroot?
      – Academiphile
      Dec 1 '17 at 19:27










    • Ran it from within chroot, since that's the only thing that made sense. Still the same error.
      – Academiphile
      Dec 1 '17 at 20:00











    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%2f407867%2fsystem-intact-grub-broken%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    A simply and effective way to reinstall grub in your PC without complications is with the Boot-Repair-Disk utility (here is the download page: https://sourceforge.net/projects/boot-repair-cd/files/latest/download), this is a live system that have tools for reinstalling the grub bootloader.



    Steps: just download, burn in a USB with unetbootin or etcher and boot in your PC, when the system start you will see a windows with two options, select the one that says "recommended repair", now connect to internet (it will download the grub packages that corresponds to your system, Debian in your case), let the program analyse your partitions and just follow the steps, you will solve the problem in less than 5 minutes.
    When you finish, reboot and make a "sudo grub-update" in a terminal on Debian, voila! Grub fully installed and configured again.



    Another tool that can help you is Super Grub2 Rescue (here is the link: https://www.supergrubdisk.org/), weighs less than 20MB, this will help you to boot directly in Debian without installing grub.






    share|improve this answer




























      1














      A simply and effective way to reinstall grub in your PC without complications is with the Boot-Repair-Disk utility (here is the download page: https://sourceforge.net/projects/boot-repair-cd/files/latest/download), this is a live system that have tools for reinstalling the grub bootloader.



      Steps: just download, burn in a USB with unetbootin or etcher and boot in your PC, when the system start you will see a windows with two options, select the one that says "recommended repair", now connect to internet (it will download the grub packages that corresponds to your system, Debian in your case), let the program analyse your partitions and just follow the steps, you will solve the problem in less than 5 minutes.
      When you finish, reboot and make a "sudo grub-update" in a terminal on Debian, voila! Grub fully installed and configured again.



      Another tool that can help you is Super Grub2 Rescue (here is the link: https://www.supergrubdisk.org/), weighs less than 20MB, this will help you to boot directly in Debian without installing grub.






      share|improve this answer


























        1












        1








        1






        A simply and effective way to reinstall grub in your PC without complications is with the Boot-Repair-Disk utility (here is the download page: https://sourceforge.net/projects/boot-repair-cd/files/latest/download), this is a live system that have tools for reinstalling the grub bootloader.



        Steps: just download, burn in a USB with unetbootin or etcher and boot in your PC, when the system start you will see a windows with two options, select the one that says "recommended repair", now connect to internet (it will download the grub packages that corresponds to your system, Debian in your case), let the program analyse your partitions and just follow the steps, you will solve the problem in less than 5 minutes.
        When you finish, reboot and make a "sudo grub-update" in a terminal on Debian, voila! Grub fully installed and configured again.



        Another tool that can help you is Super Grub2 Rescue (here is the link: https://www.supergrubdisk.org/), weighs less than 20MB, this will help you to boot directly in Debian without installing grub.






        share|improve this answer














        A simply and effective way to reinstall grub in your PC without complications is with the Boot-Repair-Disk utility (here is the download page: https://sourceforge.net/projects/boot-repair-cd/files/latest/download), this is a live system that have tools for reinstalling the grub bootloader.



        Steps: just download, burn in a USB with unetbootin or etcher and boot in your PC, when the system start you will see a windows with two options, select the one that says "recommended repair", now connect to internet (it will download the grub packages that corresponds to your system, Debian in your case), let the program analyse your partitions and just follow the steps, you will solve the problem in less than 5 minutes.
        When you finish, reboot and make a "sudo grub-update" in a terminal on Debian, voila! Grub fully installed and configured again.



        Another tool that can help you is Super Grub2 Rescue (here is the link: https://www.supergrubdisk.org/), weighs less than 20MB, this will help you to boot directly in Debian without installing grub.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 16 at 12:02









        Rui F Ribeiro

        38.9k1479129




        38.9k1479129










        answered Aug 14 at 22:49









        Jamil Gomez

        235




        235

























            0














            Try running: echo "(hd0) /dev/sda" > /boot/grub/device.map






            share|improve this answer





















            • From grub, from the live CD, or from the live CD in chroot?
              – Academiphile
              Dec 1 '17 at 19:27










            • Ran it from within chroot, since that's the only thing that made sense. Still the same error.
              – Academiphile
              Dec 1 '17 at 20:00
















            0














            Try running: echo "(hd0) /dev/sda" > /boot/grub/device.map






            share|improve this answer





















            • From grub, from the live CD, or from the live CD in chroot?
              – Academiphile
              Dec 1 '17 at 19:27










            • Ran it from within chroot, since that's the only thing that made sense. Still the same error.
              – Academiphile
              Dec 1 '17 at 20:00














            0












            0








            0






            Try running: echo "(hd0) /dev/sda" > /boot/grub/device.map






            share|improve this answer












            Try running: echo "(hd0) /dev/sda" > /boot/grub/device.map







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 1 '17 at 19:16









            Artem S. Tashkinov

            547




            547












            • From grub, from the live CD, or from the live CD in chroot?
              – Academiphile
              Dec 1 '17 at 19:27










            • Ran it from within chroot, since that's the only thing that made sense. Still the same error.
              – Academiphile
              Dec 1 '17 at 20:00


















            • From grub, from the live CD, or from the live CD in chroot?
              – Academiphile
              Dec 1 '17 at 19:27










            • Ran it from within chroot, since that's the only thing that made sense. Still the same error.
              – Academiphile
              Dec 1 '17 at 20:00
















            From grub, from the live CD, or from the live CD in chroot?
            – Academiphile
            Dec 1 '17 at 19:27




            From grub, from the live CD, or from the live CD in chroot?
            – Academiphile
            Dec 1 '17 at 19:27












            Ran it from within chroot, since that's the only thing that made sense. Still the same error.
            – Academiphile
            Dec 1 '17 at 20:00




            Ran it from within chroot, since that's the only thing that made sense. Still the same error.
            – Academiphile
            Dec 1 '17 at 20:00


















            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f407867%2fsystem-intact-grub-broken%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

            Morgemoulin

            Scott Moir

            Souastre