Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th April 2012, 08:01 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
How-to boot Fedora ISO from HD with GRUB v. 2

Now that we're approaching the release of Fedora 17, a convenient way to test the live-CDs is to boot them directly from the HD.
For that, its initrd image must be patched and it can be done easily with the script at https://gist.github.com/2132076
It's usage is on its headers. But for the latest KDE ISO I tried, there was a change that had to be made. I don't know if it was particular to that ISO or if all F17 ISOs now are like that.
Where we read "boot" in the script must be changed to "BOOT" (e.g., /EFI/boot → /EFI/BOOT).

So let's say we downloaded fedora.iso to /dev/sda3 (adapt the instructions to the actual ISO name or rename it).
We put the script in the same directory and patch the ISO's initrd:
Code:
./fedora-fromiso fedora.iso initrd-fromiso
Now we need to have a GRUB2 entry for it.
We can, for instance, create /etc/grub.d/35_fromiso with
Code:
#!/bin/sh
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 Live" {
	loopback loop (hd0,3)/fedora.iso
	linux (loop)/EFI/BOOT/vmlinuz0 root=live:/fedora.iso rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0
	initrd (hd0,3)/initrd-fromiso
}
Note that I have (hd0,3) because the ISO is on /dev/sda3 but I don't put it after "root=live:" (but you need to change "fedora.iso" to its actual name, if it's the case).
Then make it executable, run '# grub2-mkconfig -o /boot/grub2/grub.cfg' and that should be it.
Reply With Quote
  #2  
Old 17th April 2012, 07:06 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: How-to boot Fedora ISO from HD with GRUB v. 2

In the F17-beta Xfce spin it's being used /EFI/boot again (not /EFI/BOOT) so that's what should be used in the script and the grub entry file.
Reply With Quote
  #3  
Old 30th May 2012, 11:44 AM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: How-to boot Fedora ISO from HD with GRUB v. 2

Now for F17 Xfce final we must use /isolinux/ instead of /EFI/boot/.
So we replace that in the script and also in the grub entry.
Suppose we rename the iso to simply 'fedora.iso' and put it in sda3/ISO/ together with the created initrd-fromiso. Then the grub entry (/etc/grub.d/35_fromiso; don't forget to make it executable) would be:
Code:
#!/bin/sh
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 Live" {
	loopback loop (hd0,3)/ISO/fedora.iso
	linux (loop)/isolinux/vmlinuz0 root=live:/ISO/fedora.iso rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0
	initrd (hd0,3)/ISO/initrd-fromiso
}
Reply With Quote
  #4  
Old 18th October 2012, 09:12 PM
redtux Offline
Registered User
 
Join Date: Apr 2005
Posts: 7
linuxfirefox
Re: How-to boot Fedora ISO from HD with GRUB v. 2

just a point in the script I had to change all instances of30dmsquash-liveiso-genrules.sh to
30-dmsquash-liveiso-genrules.sh
Reply With Quote
  #5  
Old 7th November 2012, 11:33 AM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: How-to boot Fedora ISO from HD with GRUB v. 2

And did you manage to boot an F18 live-CD? Because I never did.
At least the GRUB menu entry that works with F17 doesn't work with F18.
It fails with 'can't find root=live:/ISO/...' or the like.
Reply With Quote
  #6  
Old 27th February 2013, 03:31 PM
Valent Offline
Registered User
 
Join Date: May 2004
Age: 36
Posts: 340
linuxchrome
Re: How-to boot Fedora ISO from HD with GRUB v. 2

I have finally found a script that actually works booting Fedora 18 iso from usb:
http://git.marmotte.net/git/glim/plain/fedora18-fromiso

Details are here:
http://git.marmotte.net/git/glim/plain/README

Cheers,
Valent.

Last edited by Valent; 27th February 2013 at 04:07 PM.
Reply With Quote
Reply

Tags
boot, fedora, grub, howto, iso

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub problem: After installing Fedora 15, I can't boot win xp from grub oliveryty Using Fedora 12 21st July 2011 11:21 AM
Rebuilding the Grub Boot Loader on Master Boot Record (MBR) w Fedora Linux Vector Guides & Solutions (No Questions) 6 1st August 2009 08:39 AM
Grub cannot boot fedora Savdnc Systems Using Fedora 9 16th July 2008 02:02 AM
A Solution for how to boot Fedora FC3 from a CD without using GRUB or a boot loader erap Guides & Solutions (No Questions) 35 17th May 2007 07:23 PM
GRUB only...Fedora 2 does not boot. darrinps Installation, Upgrades and Live Media 3 23rd August 2004 09:04 PM


Current GMT-time: 15:14 (Saturday, 20-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Creek Side - Stockholm-Arlanda Airport (ARN) Travel Photos on Instagram - Marina of Koper Travel Photos - Te Whiti Park Instagram Photos - Texas State Fair Photos on Instagram