Fedora Linux Support Community & Resources Center
  #1  
Old 26th May 2011, 11:34 AM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxiceweasel
Post Fedora 15 Livecd ISO boot from harddisk..help needed

Hi,
I am trying to boot Fedora 15 livecd iso in a seperate ext4 partition using grub2 menu entries as below but it fails.
Code:
menuentry "Fedora 15 Live" {
 insmod ext2
 set root=(hd0,msdos2)
 loopback loop (hd0,msdos2)/Fedora-15-x86_64-Live-Desktop.iso
 linux (loop)/isolinux/vmlinuz0 boot=isolinux root=CDLABEL=Fedora-15-x86_64-Live-Desktop.is rootfstype=auto ro quiet liveimg  noeject noprompt --
 initrd (loop)/isolinux/initrd0.img
}
during booting process, it falls into a # terminal and am clueless.

I knew of this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=650672

Is it not possible to boot Fedora 15 iso through grub2 ?

If extracting whole content of ISO to a directory, can grub2 be able to boot?

TIA+

Last edited by deepclutch; 26th May 2011 at 11:37 AM.
Reply With Quote
  #2  
Old 28th May 2011, 06:26 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,162
linuxredhatmozilla
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

I was able to do this with the DVD (I guess it is the same for the livecd).
I have 2 partitions on my disk: the first is the system, and the second contains the iso.
Unfortunately, I have not saved my grub2 configuration before the installation but I think it was the following (using the logs from anaconda and my memory)

Code:
menuentry "Fedora 15 (DVD)" {
 insmod loopback
 insmod iso9660
 set isofile="/Fedora-15-x86_64-DVD.iso"
 loopback loop (hd0,2)$isofile
 linux (loop)/isolinux/vmlinuz rootfstype=auto  root=live:UUID=<Partition UUID>:$isofile ro quiet
 initrd (loop)/isolinux/initrd.img
}
Adapt the bold terms to your case.
Remark: anaconda taked a _very_ long time to start, and I had a black sreen with a blinking cursor for more than one minute (subjective time ). And the hardware probing also taked a long time, but after everything was fine.
__________________
:confused:
Reply With Quote
  #3  
Old 30th May 2011, 06:36 AM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxiceweasel
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

@Skull One: it errors out : "you have to load kernel first" or something similar.
Reply With Quote
  #4  
Old 30th May 2011, 01:39 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,162
linuxredhatmozilla
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

Quote:
Originally Posted by deepclutch View Post
@Skull One: it errors out : "you have to load kernel first" or something similar.
I have checked on a livecd, and the files have a '0' in suffix.
Here the correction:
Code:
menuentry "Fedora 15 (LiveCD)" {
 insmod loopback
 insmod iso9660
 set isofile="/Fedora-15-x86_64-Live-Desktop.iso"
 loopback loop (hd0,2)$isofile
 linux (loop)/isolinux/vmlinuz0 rootfstype=auto  root=live:UUID=<Partition UUID>:$isofile ro quiet
 initrd (loop)/isolinux/initrd0.img
}
with the bold terms to be adpted to your case.
__________________
:confused:
Reply With Quote
  #5  
Old 30th May 2011, 07:57 PM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxiceweasel
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

I tried that also. but "dracut warning: no root is found root:live:/dev/disk/by-uuid:/Fedora15**"
BTW, Fedora iso is placed in / of /dev/sda2 and it's uuid is correct.
PS: I use a ext4 fs on this partition. is this an issue?
Reply With Quote
  #6  
Old 30th May 2011, 08:19 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,162
linuxredhatmozilla
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

Quote:
Originally Posted by deepclutch View Post
I tried that also. but "dracut warning: no root is found root:live:/dev/disk/by-uuid:/Fedora15**"
BTW, Fedora iso is placed in / of /dev/sda2 and it's uuid is correct.
PS: I use a ext4 fs on this partition. is this an issue?
Since it is a dracut message, it means that the initrd is launched.
So, it is a problem with the kernel options.
If your UUID is correct, I have no other idea for the moment...
__________________
:confused:
Reply With Quote
  #7  
Old 31st May 2011, 01:25 PM
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 1,162
linuxredhatmozilla
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

OK, I did some tests. In summary:
- no problem with the DVD;
- with the livecd, dracut cannot read the iso file (bug https://bugzilla.redhat.com/show_bug.cgi?id=650672)

So, the workaround is to extract the iso, for instance into the directory 'LiveCD', and the grub2 entry is then:
Code:
menuentry "Fedora 15 (LiveCD - extracted)" {
 insmod ext2
 set root='(hd0,2)'
 search --no-floppy --fs-uuid --set <Partition UUID>
 linux /LiveCD/isolinux/vmlinuz0 rootfstype=auto  root=UUID=<Partition UUID> liveimg live_dir=/LiveCD/LiveOS/ ro quiet rhgb
 initrd /LiveCD/isolinux/initrd0.img
}
with the bold terms to be adapted to your case, and the red term being the directory where the iso is extracted.
I am not sure that the 'search' line is really relevant, but I have not tested without it.
Enjoy !


Edit: of course there is no problem with the DVD, since we just launch the installer and there is no need to mount the filesystem, which is where dracut hangs. The terms root=... is irrelevant for the DVD.
__________________
:confused:

Last edited by Skull One; 31st May 2011 at 03:20 PM.
Reply With Quote
  #8  
Old 31st May 2011, 05:19 PM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxfirefox
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

@Skull One: Yes! it worked. after extracting Fedora Iso, it booted fine. I am posting from the live Fedora session. Thanks for the help.

While Booting, grub2 showed some error which I cannot recollect. but, after that error message, grub transfers to Fedora boot sequence.. may be the line starting with "search --no-floppy" may not be needed.

Thanks!

edit: the error was caused by the line " search --no-floppy --fs-uuid --set <Partition UUID>" which is not needed.

Thanks Again

Last edited by deepclutch; 31st May 2011 at 07:53 PM. Reason: update
Reply With Quote
  #9  
Old 20th March 2012, 08:10 AM
oxplot Offline
Registered User
 
Join Date: Mar 2012
Location: Sydney Australia
Posts: 3
linuxchrome
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

Despite being a year old issue, there still isn't an official solution to it from Fedora.

For benefit of others looking for a temporary solution besides extracting files, I have written a shell script which patches the initrd of the ISO image in order to allow using live:/*.iso boot parameter for the Live CD:

https://gist.github.com/2132076

Example of usage is in the comments.

Enjoy!
Reply With Quote
  #10  
Old 20th March 2012, 05:30 PM
intelx86 Offline
Registered User
 
Join Date: May 2011
Posts: 1
linuxubuntuchrome
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

MultiBootUSB supports the booting of the latest Fedora (16) using a USB Flash Disk Drive.
http://sourceforge.net/projects/multibootusb/
Reply With Quote
  #11  
Old 27th February 2013, 02:31 PM
Valent Offline
Registered User
 
Join Date: May 2004
Age: 36
Posts: 340
linuxchrome
Re: Fedora 15 Livecd ISO boot from harddisk..help needed

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 03:07 PM.
Reply With Quote
Reply

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
Fedora 9 – how to boot external usb harddisk using Notebook or Desktop ezsurf Hardware & Laptops 1 8th October 2008 09:26 AM
Ideas needed for livecd AutoC Using Fedora 6 7th April 2008 11:15 AM
5 STARS! Fedora 7 i386 livecd - how to boot from livecd - need SERIOUS help please! newfedorahat Installation, Upgrades and Live Media 14 25th June 2007 07:37 AM
HardDisk Partitioning-Help needed CNR Installation, Upgrades and Live Media 17 26th February 2006 03:53 AM
Fedora doesn't boot after cloning it to new Harddisk creiter Using Fedora 8 25th November 2005 09:55 PM


Current GMT-time: 07:45 (Saturday, 01-11-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
La Guaira Photos on Instagram - Loma de Gato Travel Photos - Plymouth