Iso booting with grub2
up vote
4
down vote
favorite
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
add a comment |
up vote
4
down vote
favorite
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
Related: Installing Grub (2) on a USB flash drive
– phunehehe
Feb 25 '11 at 14:28
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
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
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
linux boot grub2 iso
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
add a comment |
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
add a comment |
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.
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
add a comment |
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.
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 28 '11 at 10:11
Mat
38.6k8117125
38.6k8117125
answered Nov 28 '11 at 9:06
tiger2wander
1281211
1281211
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Related: Installing Grub (2) on a USB flash drive
– phunehehe
Feb 25 '11 at 14:28