HowTo repair GRUB in triple boot with two encrypted LVM?












2















I setup Win7/DebianTesting/Ubuntu 12.04 as triple boot, Debian and Ubuntu each on an encrypted volume (with separate root and swap partitions).



Installation order: Win7 --> Debian --> Ubuntu, Grub was installed on /dev/sda, everything went fine, all 3 OS showing up in Grub UI and able to boot.



After an update with 12.04 (probably new kernel), Debian disappeared in Grub and so far I am only able to get Win/Debian or Win/Ubuntu showing up in Grub, according to these instructions:
Ubuntu forums
blog post: restoring GRUB for an encrypted LVM



my partitions:

sda1 NTFS (100Mb)

sda2 NTFS (210Gb) Win7

sda3 extended partition where both Linux distros are installed into to LVMs:

sda5 boot (250Mb) for Debian

sda6 encrypted LVM (with separate Debian swap and root partitions)

sda7 boot (300Mb) for Ubuntu

sda8 encrypted LVM (with separate Ubuntu swap and root partitions)



with Ubuntu 12.04 liveCD I am able to decrypt and mount all partitions,
however neither Debian or Ubuntu boot partitions are recognized/useable to use chroot and to reinstall GRUB into /dev/sda










share|improve this question

























  • Did you try Boot-Repair?

    – TuKsn
    May 11 '14 at 10:47













  • yes, but only the option to fix MBR are active there. Options to fix GRUB are greyed out and fixing MBR ends with the result, that the laptop boots into windows immediately (which is ok), but booting with ubuntu-live cd will later result again in the same result as described above (either Win7/Debian or Win7/Ubuntu are in GRUB menu, but not all three). I suspect it has to do with initramfs (what I have read also in forums) but i am not that advanced

    – user280392
    May 12 '14 at 11:48


















2















I setup Win7/DebianTesting/Ubuntu 12.04 as triple boot, Debian and Ubuntu each on an encrypted volume (with separate root and swap partitions).



Installation order: Win7 --> Debian --> Ubuntu, Grub was installed on /dev/sda, everything went fine, all 3 OS showing up in Grub UI and able to boot.



After an update with 12.04 (probably new kernel), Debian disappeared in Grub and so far I am only able to get Win/Debian or Win/Ubuntu showing up in Grub, according to these instructions:
Ubuntu forums
blog post: restoring GRUB for an encrypted LVM



my partitions:

sda1 NTFS (100Mb)

sda2 NTFS (210Gb) Win7

sda3 extended partition where both Linux distros are installed into to LVMs:

sda5 boot (250Mb) for Debian

sda6 encrypted LVM (with separate Debian swap and root partitions)

sda7 boot (300Mb) for Ubuntu

sda8 encrypted LVM (with separate Ubuntu swap and root partitions)



with Ubuntu 12.04 liveCD I am able to decrypt and mount all partitions,
however neither Debian or Ubuntu boot partitions are recognized/useable to use chroot and to reinstall GRUB into /dev/sda










share|improve this question

























  • Did you try Boot-Repair?

    – TuKsn
    May 11 '14 at 10:47













  • yes, but only the option to fix MBR are active there. Options to fix GRUB are greyed out and fixing MBR ends with the result, that the laptop boots into windows immediately (which is ok), but booting with ubuntu-live cd will later result again in the same result as described above (either Win7/Debian or Win7/Ubuntu are in GRUB menu, but not all three). I suspect it has to do with initramfs (what I have read also in forums) but i am not that advanced

    – user280392
    May 12 '14 at 11:48
















2












2








2








I setup Win7/DebianTesting/Ubuntu 12.04 as triple boot, Debian and Ubuntu each on an encrypted volume (with separate root and swap partitions).



Installation order: Win7 --> Debian --> Ubuntu, Grub was installed on /dev/sda, everything went fine, all 3 OS showing up in Grub UI and able to boot.



After an update with 12.04 (probably new kernel), Debian disappeared in Grub and so far I am only able to get Win/Debian or Win/Ubuntu showing up in Grub, according to these instructions:
Ubuntu forums
blog post: restoring GRUB for an encrypted LVM



my partitions:

sda1 NTFS (100Mb)

sda2 NTFS (210Gb) Win7

sda3 extended partition where both Linux distros are installed into to LVMs:

sda5 boot (250Mb) for Debian

sda6 encrypted LVM (with separate Debian swap and root partitions)

sda7 boot (300Mb) for Ubuntu

sda8 encrypted LVM (with separate Ubuntu swap and root partitions)



with Ubuntu 12.04 liveCD I am able to decrypt and mount all partitions,
however neither Debian or Ubuntu boot partitions are recognized/useable to use chroot and to reinstall GRUB into /dev/sda










share|improve this question
















I setup Win7/DebianTesting/Ubuntu 12.04 as triple boot, Debian and Ubuntu each on an encrypted volume (with separate root and swap partitions).



Installation order: Win7 --> Debian --> Ubuntu, Grub was installed on /dev/sda, everything went fine, all 3 OS showing up in Grub UI and able to boot.



After an update with 12.04 (probably new kernel), Debian disappeared in Grub and so far I am only able to get Win/Debian or Win/Ubuntu showing up in Grub, according to these instructions:
Ubuntu forums
blog post: restoring GRUB for an encrypted LVM



my partitions:

sda1 NTFS (100Mb)

sda2 NTFS (210Gb) Win7

sda3 extended partition where both Linux distros are installed into to LVMs:

sda5 boot (250Mb) for Debian

sda6 encrypted LVM (with separate Debian swap and root partitions)

sda7 boot (300Mb) for Ubuntu

sda8 encrypted LVM (with separate Ubuntu swap and root partitions)



with Ubuntu 12.04 liveCD I am able to decrypt and mount all partitions,
however neither Debian or Ubuntu boot partitions are recognized/useable to use chroot and to reinstall GRUB into /dev/sda







grub2 encryption lvm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago









Carolus

183113




183113










asked May 11 '14 at 10:05









user280392user280392

313




313













  • Did you try Boot-Repair?

    – TuKsn
    May 11 '14 at 10:47













  • yes, but only the option to fix MBR are active there. Options to fix GRUB are greyed out and fixing MBR ends with the result, that the laptop boots into windows immediately (which is ok), but booting with ubuntu-live cd will later result again in the same result as described above (either Win7/Debian or Win7/Ubuntu are in GRUB menu, but not all three). I suspect it has to do with initramfs (what I have read also in forums) but i am not that advanced

    – user280392
    May 12 '14 at 11:48





















  • Did you try Boot-Repair?

    – TuKsn
    May 11 '14 at 10:47













  • yes, but only the option to fix MBR are active there. Options to fix GRUB are greyed out and fixing MBR ends with the result, that the laptop boots into windows immediately (which is ok), but booting with ubuntu-live cd will later result again in the same result as described above (either Win7/Debian or Win7/Ubuntu are in GRUB menu, but not all three). I suspect it has to do with initramfs (what I have read also in forums) but i am not that advanced

    – user280392
    May 12 '14 at 11:48



















Did you try Boot-Repair?

– TuKsn
May 11 '14 at 10:47







Did you try Boot-Repair?

– TuKsn
May 11 '14 at 10:47















yes, but only the option to fix MBR are active there. Options to fix GRUB are greyed out and fixing MBR ends with the result, that the laptop boots into windows immediately (which is ok), but booting with ubuntu-live cd will later result again in the same result as described above (either Win7/Debian or Win7/Ubuntu are in GRUB menu, but not all three). I suspect it has to do with initramfs (what I have read also in forums) but i am not that advanced

– user280392
May 12 '14 at 11:48







yes, but only the option to fix MBR are active there. Options to fix GRUB are greyed out and fixing MBR ends with the result, that the laptop boots into windows immediately (which is ok), but booting with ubuntu-live cd will later result again in the same result as described above (either Win7/Debian or Win7/Ubuntu are in GRUB menu, but not all three). I suspect it has to do with initramfs (what I have read also in forums) but i am not that advanced

– user280392
May 12 '14 at 11:48












1 Answer
1






active

oldest

votes


















2














I have found the solution:
1) reinstallation of Ubuntu followed by Debian

sda2 NTFS (210Gb) Win7

sda3 extended partition where both Linux distros are installed into to LVMs:

sda5 boot (250Mb) for Ubuntu

sda6 encrypted LVM (with separate Ubuntu swap and root partitions)

sda7 boot (300Mb) for Debian

sda8 encrypted LVM (with separate Debian swap and root partitions)



Debian testing has newer GRUB version 2.x than Ubuntu 12.04 (1.98) so this installation brought up Debian GRUB loader with all 3 OS recognized.



Before updating in Debian I decrypted and activated the Ubuntu LVM (but without mounting) and Debian again recognized all 3 OS.



Booting in Ubuntu: before updating the system the Debian LVM was decrypted and the volume group activated (same as before with Ubuntu during Debian update) and Ubuntu recognized again all 3 OS (such a relieve).



So each time before any update the other encrypted LVM needs to be decrypted and activated to avoid problems.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f464245%2fhowto-repair-grub-in-triple-boot-with-two-encrypted-lvm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    I have found the solution:
    1) reinstallation of Ubuntu followed by Debian

    sda2 NTFS (210Gb) Win7

    sda3 extended partition where both Linux distros are installed into to LVMs:

    sda5 boot (250Mb) for Ubuntu

    sda6 encrypted LVM (with separate Ubuntu swap and root partitions)

    sda7 boot (300Mb) for Debian

    sda8 encrypted LVM (with separate Debian swap and root partitions)



    Debian testing has newer GRUB version 2.x than Ubuntu 12.04 (1.98) so this installation brought up Debian GRUB loader with all 3 OS recognized.



    Before updating in Debian I decrypted and activated the Ubuntu LVM (but without mounting) and Debian again recognized all 3 OS.



    Booting in Ubuntu: before updating the system the Debian LVM was decrypted and the volume group activated (same as before with Ubuntu during Debian update) and Ubuntu recognized again all 3 OS (such a relieve).



    So each time before any update the other encrypted LVM needs to be decrypted and activated to avoid problems.






    share|improve this answer






























      2














      I have found the solution:
      1) reinstallation of Ubuntu followed by Debian

      sda2 NTFS (210Gb) Win7

      sda3 extended partition where both Linux distros are installed into to LVMs:

      sda5 boot (250Mb) for Ubuntu

      sda6 encrypted LVM (with separate Ubuntu swap and root partitions)

      sda7 boot (300Mb) for Debian

      sda8 encrypted LVM (with separate Debian swap and root partitions)



      Debian testing has newer GRUB version 2.x than Ubuntu 12.04 (1.98) so this installation brought up Debian GRUB loader with all 3 OS recognized.



      Before updating in Debian I decrypted and activated the Ubuntu LVM (but without mounting) and Debian again recognized all 3 OS.



      Booting in Ubuntu: before updating the system the Debian LVM was decrypted and the volume group activated (same as before with Ubuntu during Debian update) and Ubuntu recognized again all 3 OS (such a relieve).



      So each time before any update the other encrypted LVM needs to be decrypted and activated to avoid problems.






      share|improve this answer




























        2












        2








        2







        I have found the solution:
        1) reinstallation of Ubuntu followed by Debian

        sda2 NTFS (210Gb) Win7

        sda3 extended partition where both Linux distros are installed into to LVMs:

        sda5 boot (250Mb) for Ubuntu

        sda6 encrypted LVM (with separate Ubuntu swap and root partitions)

        sda7 boot (300Mb) for Debian

        sda8 encrypted LVM (with separate Debian swap and root partitions)



        Debian testing has newer GRUB version 2.x than Ubuntu 12.04 (1.98) so this installation brought up Debian GRUB loader with all 3 OS recognized.



        Before updating in Debian I decrypted and activated the Ubuntu LVM (but without mounting) and Debian again recognized all 3 OS.



        Booting in Ubuntu: before updating the system the Debian LVM was decrypted and the volume group activated (same as before with Ubuntu during Debian update) and Ubuntu recognized again all 3 OS (such a relieve).



        So each time before any update the other encrypted LVM needs to be decrypted and activated to avoid problems.






        share|improve this answer















        I have found the solution:
        1) reinstallation of Ubuntu followed by Debian

        sda2 NTFS (210Gb) Win7

        sda3 extended partition where both Linux distros are installed into to LVMs:

        sda5 boot (250Mb) for Ubuntu

        sda6 encrypted LVM (with separate Ubuntu swap and root partitions)

        sda7 boot (300Mb) for Debian

        sda8 encrypted LVM (with separate Debian swap and root partitions)



        Debian testing has newer GRUB version 2.x than Ubuntu 12.04 (1.98) so this installation brought up Debian GRUB loader with all 3 OS recognized.



        Before updating in Debian I decrypted and activated the Ubuntu LVM (but without mounting) and Debian again recognized all 3 OS.



        Booting in Ubuntu: before updating the system the Debian LVM was decrypted and the volume group activated (same as before with Ubuntu during Debian update) and Ubuntu recognized again all 3 OS (such a relieve).



        So each time before any update the other encrypted LVM needs to be decrypted and activated to avoid problems.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 7 '17 at 9:32









        Anwar

        57.1k22148255




        57.1k22148255










        answered May 21 '14 at 11:24









        user280392user280392

        313




        313






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f464245%2fhowto-repair-grub-in-triple-boot-with-two-encrypted-lvm%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

            香粉寮

            GameSpot