LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-09-2009, 02:28 PM   #1
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Rep: Reputation: 16
Modifying distros iso images to boot with grub2


Greetings,

Lately I have been looking around about a new feature of grub2 which allows grub2 to boot iso images directly.

It's simple and actually it works from grub2 point of view which is loading the kernel and running the init script.

But the catch is that the init script should know what to do with the iso image. It should somehow be able to mount the iso file passed by grub2.

I have been running on it for like 3 days now looking everywhere on google and irc. Now I think init script needs to be modified but I am not a script guru to go solo on that. I was looking to see if anyone interested to help on any distro.

So far grml could boot. Some other posts mentioned that ubuntu could boot that way too.

I have inspected grml init and found that they are mounting the image passed from grub2 by isofrom/fromiso parameter.

I was inspecting Sabayon and did not find a match for what's in grml. And that's why booting it, fails. It reads the kernel and part of init script runs but it fails at the point where it's expecting the cd.

I think if I could modify the init to parse the isofrom/fromiso parameter of grub2 to mount it. We could get any distro to boot that way.

If anyone with some knowledge or experience interested on the subject, pls post so we can work on it.

Thanks everyone.
 
Old 10-12-2009, 05:44 AM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,283

Rep: Reputation: Disabled
http://sidux.com/index.php?module=Wi...g=Grub2isofrom
 
Old 10-12-2009, 04:06 PM   #3
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Hey aus9,

I see we are coming from same place. :-) Am silentnights

I thought I would see if anyone else interested here. I always had help over here.

I am still working on my kernel issue. Hope to get it done today so I can continue testing the iso stuff. It's really exciting. It's very great to be able to test live CDs from hard disk. I am keeping ubuntu and grml isos linked on my grub2 for anytime I need them.

Anyway, Am glad to meet you here too. You have an interesting grub post.
 
Old 10-12-2009, 06:46 PM   #4
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,283

Rep: Reputation: Disabled
NightHorse

I am not sure if you are aware my signature also refers to smxi...so pls don't mention it at sidux. I am not trying to get you to use it either.....grins sheepishly

nice to meet you here too.

I have asked a guru what those init things are and they appear to be UNIX like scripting so I may have to buy a book to learn how its done....with a huge wait before I could mod any init.
Therefore, I am leaving my sidux forum and wiki still underconstruction.

I am not trying to advertise but the name of the book I am thinking of getting is Mastering Unix Shell Scripting

regards


EDIT

I gather you also tried command mode and used the tab key to autocomplete to resolve your ide and sata drives?

Last edited by aus9; 10-12-2009 at 07:36 PM.
 
  


Reply

Tags
grub2


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
PXE boot CD/DVD ISO images... BillyGalbreath Linux - General 28 10-07-2013 03:50 PM
Anyone tried grub2 to boot of an iso? niravshah Linux - Newbie 12 08-03-2010 09:53 AM
Grub2 and iso boot ---- Again niravshah Linux - Newbie 6 09-18-2009 03:32 PM
modifying RedHat ISO images walterw Linux - General 5 01-14-2003 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration