Creating ISO with grub2

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
opengeek
Posts: 5
Joined: Mon Oct 25, 2010 3:02 pm

Creating ISO with grub2

Post by opengeek »

I've finished to copy the Bare Bone kernel in C from the wiki.
Now I'm trying to create an .iso file with grub2 bootloader on it to boot my the Bare Bone kernel in VirtualBox.
I've read some wiki pages but everything that I've tried doesn't work.
Someone knows how to do it?

Thank you.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Creating ISO with grub2

Post by JamesM »

Code: Select all

man mkisofs
opengeek
Posts: 5
Joined: Mon Oct 25, 2010 3:02 pm

Re: Creating ISO with grub2

Post by opengeek »

=D> I've read this 3 or 4 times tonight, I'm not the typical guy that starts asking without trying all his weapons first.
opengeek
Posts: 5
Joined: Mon Oct 25, 2010 3:02 pm

Re: Creating ISO with grub2

Post by opengeek »

[com]buster and reavengrey pointed me in the right direction in the IRC.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Creating ISO with grub2

Post by JamesM »

opengeek wrote:=D> I've read this 3 or 4 times tonight, I'm not the typical guy that starts asking without trying all his weapons first.
That's fine, but I wasn't to know that from your initial post! :)
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Creating ISO with grub2

Post by egos »

Creating ISO with grub2 is not problem if kernel module answers multiboot specification.
If you have seen bad English in my words, tell me what's wrong, please.
User avatar
KotuxGuy
Member
Member
Posts: 96
Joined: Wed Nov 25, 2009 1:28 pm
Location: Somewhere within 10ft of my favorite chubby penguin!

Re: Creating ISO with grub2

Post by KotuxGuy »

Easy: GRUB_2

I wrote most of that page, and tested the instructions.
Then again, I wrote it over 6 months ago, but still..

Anyway, try the "ISO Instructions" section. I boot my OS with those instructions.

EDIT: I just broke 80 posts! Yipee! :lol:
Give a man Linux, you feed the nearest optician ( Been staring at the PC too long again? ).
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory :D )
HiGuys
Posts: 6
Joined: Sun Oct 24, 2010 7:54 pm

Re: Creating ISO with grub2

Post by HiGuys »

You can't use stage1 and stage2, you need to use stage2_eltorito, a file used specifically for CDs and CD images(iso).

You can get it here:

ftp://ftp.linuxforum.hu/mirrors/frugalw ... 2_eltorito

This one should work, haven't made sure this is the right one.
User avatar
KotuxGuy
Member
Member
Posts: 96
Joined: Wed Nov 25, 2009 1:28 pm
Location: Somewhere within 10ft of my favorite chubby penguin!

Re: Creating ISO with grub2

Post by KotuxGuy »

He never said anything about stage1 or stage2.
Besides, those, IIRC, are for GRUB Legacy, not GRUB2!

Use the generated eltorito.img from the "ISO Instructions" section in the GRUB 2 wiki page, instead.
That image is for GRUB2. stage1 and stage2/stage2_eltorito are for GRUB Legacy.
Give a man Linux, you feed the nearest optician ( Been staring at the PC too long again? ).
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory :D )
Post Reply