LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-12-2011, 05:40 AM   #1
linuxwhacko
Member
 
Registered: Dec 2010
Posts: 61

Rep: Reputation: 0
grub2 unable to detect iso files


I want to install distro directly from iso
and came to know that this can be done using grub2
so ,i installed grub2 in fedora 14 and
In /etc/grub.d
pasted the following lines in

40_custom

------------------------------

#!/bin/sh
echo "Install" >&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 "Install" {
set isofile=/casper/linuxmint-10-gnome-dvd-i386.iso
loopback loop(hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}

--------------------------

then ,i typed :
update-grub2
at terminal
then i rebooted and got INSTALL at grub2(1.98) menu,then

error:
file name required
no such device
kernel should be loaded first



what shall i do ?


system information

Fedora
Release 14(laughlin)
Kernel linux 2.6.35.10-74.fc14.i686
Gnome 2.32.0

Last edited by linuxwhacko; 02-12-2011 at 06:08 AM.
 
Old 02-12-2011, 06:32 AM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
For reference here is my grub.cfg for booting a ubuntu iso(s)


Code:
menuentry "Natty 11.04" {
	insmod ext2
	set root=(hd0,4)
	search --no-floppy --fs-uuid --set 72612744-7f39-486c-8ec0-f9078ab1bb41
        loopback loop (hd0,4)/Natty/natty-desktop-i386.iso
        linux (loop)/casper/vmlinuz boot=casper noprompt noeject preseed=/cdrom/preseed/xubuntu.seed iso-scan/filename=/Natty/natty-desktop-i386.iso
        initrd (loop)/casper/initrd.lz
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone tried grub2 to boot of an iso? niravshah Linux - Newbie 12 08-03-2010 09:53 AM
adding files extracted from an ISO to GRUB2 bootloader OverKll Linux - Software 3 02-22-2010 07:35 AM
Mount ISO as specific device (ie: /dev/sda1) with GRUB2 to boot KNOPPIX live cd iso BLuFeNiX Linux - General 2 12-23-2009 01:31 AM
Grub2 and iso boot ---- Again niravshah Linux - Newbie 6 09-18-2009 03:32 PM
Unable to get jigdo to download iso files tlcoons Debian 2 02-19-2007 02:55 AM


All times are GMT -5. The time now is 03:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration