Iso booting with grub2











up vote
4
down vote

favorite
1












I am using Linux Mint 10, and it is installed on sda8.



I edited /etc/grub.d/40_custom:



#!/bin/sh
echo "Adding 40_custom.">&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "fedora ISO" {
loopback loop (hd0,8)/boot/iso/Fedora-14-i386-DVD.iso
linux (loop)/isolinux/vmlinuz boot=isolinux iso-scan/filename=/boot/iso/Fedora$
initrd (loop)/isolinux/initrd.img
}


Then I ran sudo update-grub2. After rebooting, I chose “Fedora ISO”. The computer restarted.



I tried following this guide, but it didn't work.



Do I need to change the file permissions of the boot and casper folders
or there is some other problem?










share|improve this question
























  • Related: Installing Grub (2) on a USB flash drive
    – phunehehe
    Feb 25 '11 at 14:28















up vote
4
down vote

favorite
1












I am using Linux Mint 10, and it is installed on sda8.



I edited /etc/grub.d/40_custom:



#!/bin/sh
echo "Adding 40_custom.">&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "fedora ISO" {
loopback loop (hd0,8)/boot/iso/Fedora-14-i386-DVD.iso
linux (loop)/isolinux/vmlinuz boot=isolinux iso-scan/filename=/boot/iso/Fedora$
initrd (loop)/isolinux/initrd.img
}


Then I ran sudo update-grub2. After rebooting, I chose “Fedora ISO”. The computer restarted.



I tried following this guide, but it didn't work.



Do I need to change the file permissions of the boot and casper folders
or there is some other problem?










share|improve this question
























  • Related: Installing Grub (2) on a USB flash drive
    – phunehehe
    Feb 25 '11 at 14:28













up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I am using Linux Mint 10, and it is installed on sda8.



I edited /etc/grub.d/40_custom:



#!/bin/sh
echo "Adding 40_custom.">&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "fedora ISO" {
loopback loop (hd0,8)/boot/iso/Fedora-14-i386-DVD.iso
linux (loop)/isolinux/vmlinuz boot=isolinux iso-scan/filename=/boot/iso/Fedora$
initrd (loop)/isolinux/initrd.img
}


Then I ran sudo update-grub2. After rebooting, I chose “Fedora ISO”. The computer restarted.



I tried following this guide, but it didn't work.



Do I need to change the file permissions of the boot and casper folders
or there is some other problem?










share|improve this question















I am using Linux Mint 10, and it is installed on sda8.



I edited /etc/grub.d/40_custom:



#!/bin/sh
echo "Adding 40_custom.">&2
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "fedora ISO" {
loopback loop (hd0,8)/boot/iso/Fedora-14-i386-DVD.iso
linux (loop)/isolinux/vmlinuz boot=isolinux iso-scan/filename=/boot/iso/Fedora$
initrd (loop)/isolinux/initrd.img
}


Then I ran sudo update-grub2. After rebooting, I chose “Fedora ISO”. The computer restarted.



I tried following this guide, but it didn't work.



Do I need to change the file permissions of the boot and casper folders
or there is some other problem?







linux boot grub2 iso






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 21:37









Rui F Ribeiro

38.2k1475125




38.2k1475125










asked Feb 25 '11 at 14:06









user4391

12113




12113












  • Related: Installing Grub (2) on a USB flash drive
    – phunehehe
    Feb 25 '11 at 14:28


















  • Related: Installing Grub (2) on a USB flash drive
    – phunehehe
    Feb 25 '11 at 14:28
















Related: Installing Grub (2) on a USB flash drive
– phunehehe
Feb 25 '11 at 14:28




Related: Installing Grub (2) on a USB flash drive
– phunehehe
Feb 25 '11 at 14:28










2 Answers
2






active

oldest

votes

















up vote
1
down vote













You have to make sure that the lines point to correct file locations. For example, I have a Fedora ISO with me, but I cannot find the file /boot/vmlinuz or /boot/initrd.img in it. At the very least you should have:



menuentry "Fedora ISO" {
loopback loop (hd0,8)/path/to/Fedora-14-i386-DVD.iso
linux (loop)/isolinux/vmlinuz0 boot=isolinux iso-scan/filename=/Fedora13.iso splash --
initrd (loop)/isolinux/initrd0.img
}


Maybe you misunderstood that, but linux and initrd above point to the entries inside the ISO, not on your hard drive.






share|improve this answer





















  • phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
    – user4391
    Feb 25 '11 at 14:53










  • Can you help me at unix.stackexchange.com/q/249049/66803 ?
    – Pandya
    Dec 17 '15 at 5:02


















up vote
0
down vote













I tried Grub2 to boot directly to a .iso`` file with Fedora, CentOS live CD but failed. I think it is because they are using the CD's label to detect the root device. I have extracted Fedora's ISO content to a folder and hook it with this:



menuentry "Fedora 16 [GNOME] (x86_64)" --class fedora --class os {
linux /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/vmlinuz0 root=UUID=DB92-7E14 rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
initrd /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/initrd0.img
}


You can find your boot partition UUID by using this command line:



ls -lh /dev/disk/by-uuid/


Remember to change your boot partition type to your.






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',
    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%2f8131%2fiso-booting-with-grub2%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








    up vote
    1
    down vote













    You have to make sure that the lines point to correct file locations. For example, I have a Fedora ISO with me, but I cannot find the file /boot/vmlinuz or /boot/initrd.img in it. At the very least you should have:



    menuentry "Fedora ISO" {
    loopback loop (hd0,8)/path/to/Fedora-14-i386-DVD.iso
    linux (loop)/isolinux/vmlinuz0 boot=isolinux iso-scan/filename=/Fedora13.iso splash --
    initrd (loop)/isolinux/initrd0.img
    }


    Maybe you misunderstood that, but linux and initrd above point to the entries inside the ISO, not on your hard drive.






    share|improve this answer





















    • phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
      – user4391
      Feb 25 '11 at 14:53










    • Can you help me at unix.stackexchange.com/q/249049/66803 ?
      – Pandya
      Dec 17 '15 at 5:02















    up vote
    1
    down vote













    You have to make sure that the lines point to correct file locations. For example, I have a Fedora ISO with me, but I cannot find the file /boot/vmlinuz or /boot/initrd.img in it. At the very least you should have:



    menuentry "Fedora ISO" {
    loopback loop (hd0,8)/path/to/Fedora-14-i386-DVD.iso
    linux (loop)/isolinux/vmlinuz0 boot=isolinux iso-scan/filename=/Fedora13.iso splash --
    initrd (loop)/isolinux/initrd0.img
    }


    Maybe you misunderstood that, but linux and initrd above point to the entries inside the ISO, not on your hard drive.






    share|improve this answer





















    • phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
      – user4391
      Feb 25 '11 at 14:53










    • Can you help me at unix.stackexchange.com/q/249049/66803 ?
      – Pandya
      Dec 17 '15 at 5:02













    up vote
    1
    down vote










    up vote
    1
    down vote









    You have to make sure that the lines point to correct file locations. For example, I have a Fedora ISO with me, but I cannot find the file /boot/vmlinuz or /boot/initrd.img in it. At the very least you should have:



    menuentry "Fedora ISO" {
    loopback loop (hd0,8)/path/to/Fedora-14-i386-DVD.iso
    linux (loop)/isolinux/vmlinuz0 boot=isolinux iso-scan/filename=/Fedora13.iso splash --
    initrd (loop)/isolinux/initrd0.img
    }


    Maybe you misunderstood that, but linux and initrd above point to the entries inside the ISO, not on your hard drive.






    share|improve this answer












    You have to make sure that the lines point to correct file locations. For example, I have a Fedora ISO with me, but I cannot find the file /boot/vmlinuz or /boot/initrd.img in it. At the very least you should have:



    menuentry "Fedora ISO" {
    loopback loop (hd0,8)/path/to/Fedora-14-i386-DVD.iso
    linux (loop)/isolinux/vmlinuz0 boot=isolinux iso-scan/filename=/Fedora13.iso splash --
    initrd (loop)/isolinux/initrd0.img
    }


    Maybe you misunderstood that, but linux and initrd above point to the entries inside the ISO, not on your hard drive.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 25 '11 at 14:37









    phunehehe

    12.1k1782138




    12.1k1782138












    • phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
      – user4391
      Feb 25 '11 at 14:53










    • Can you help me at unix.stackexchange.com/q/249049/66803 ?
      – Pandya
      Dec 17 '15 at 5:02


















    • phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
      – user4391
      Feb 25 '11 at 14:53










    • Can you help me at unix.stackexchange.com/q/249049/66803 ?
      – Pandya
      Dec 17 '15 at 5:02
















    phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
    – user4391
    Feb 25 '11 at 14:53




    phunehehe,i have changed the code as u said still when i choose fedora Iso at grub,the pc restarts
    – user4391
    Feb 25 '11 at 14:53












    Can you help me at unix.stackexchange.com/q/249049/66803 ?
    – Pandya
    Dec 17 '15 at 5:02




    Can you help me at unix.stackexchange.com/q/249049/66803 ?
    – Pandya
    Dec 17 '15 at 5:02












    up vote
    0
    down vote













    I tried Grub2 to boot directly to a .iso`` file with Fedora, CentOS live CD but failed. I think it is because they are using the CD's label to detect the root device. I have extracted Fedora's ISO content to a folder and hook it with this:



    menuentry "Fedora 16 [GNOME] (x86_64)" --class fedora --class os {
    linux /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/vmlinuz0 root=UUID=DB92-7E14 rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
    initrd /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/initrd0.img
    }


    You can find your boot partition UUID by using this command line:



    ls -lh /dev/disk/by-uuid/


    Remember to change your boot partition type to your.






    share|improve this answer



























      up vote
      0
      down vote













      I tried Grub2 to boot directly to a .iso`` file with Fedora, CentOS live CD but failed. I think it is because they are using the CD's label to detect the root device. I have extracted Fedora's ISO content to a folder and hook it with this:



      menuentry "Fedora 16 [GNOME] (x86_64)" --class fedora --class os {
      linux /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/vmlinuz0 root=UUID=DB92-7E14 rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
      initrd /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/initrd0.img
      }


      You can find your boot partition UUID by using this command line:



      ls -lh /dev/disk/by-uuid/


      Remember to change your boot partition type to your.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        I tried Grub2 to boot directly to a .iso`` file with Fedora, CentOS live CD but failed. I think it is because they are using the CD's label to detect the root device. I have extracted Fedora's ISO content to a folder and hook it with this:



        menuentry "Fedora 16 [GNOME] (x86_64)" --class fedora --class os {
        linux /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/vmlinuz0 root=UUID=DB92-7E14 rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
        initrd /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/initrd0.img
        }


        You can find your boot partition UUID by using this command line:



        ls -lh /dev/disk/by-uuid/


        Remember to change your boot partition type to your.






        share|improve this answer














        I tried Grub2 to boot directly to a .iso`` file with Fedora, CentOS live CD but failed. I think it is because they are using the CD's label to detect the root device. I have extracted Fedora's ISO content to a folder and hook it with this:



        menuentry "Fedora 16 [GNOME] (x86_64)" --class fedora --class os {
        linux /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/vmlinuz0 root=UUID=DB92-7E14 rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
        initrd /boot/iso/Fedora-16-x86_64-Live-GNOME/isolinux/initrd0.img
        }


        You can find your boot partition UUID by using this command line:



        ls -lh /dev/disk/by-uuid/


        Remember to change your boot partition type to your.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 28 '11 at 10:11









        Mat

        38.6k8117125




        38.6k8117125










        answered Nov 28 '11 at 9:06









        tiger2wander

        1281211




        1281211






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f8131%2fiso-booting-with-grub2%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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt