Skip to contentSkip to conversation

Documentation bug?

DISCUSSION Chris Jones 5 participants 11 messages Jan 25, 2011 – Jan 28, 2011

lore
Share & tools
lore
#0 lore raw

Sorry for the catchy ’Subject:’ above, I am not sure at this point whether it is appropriate.

I plan to make extensive changes to a multi-boot environment and I looked in ‘GNU GRUB Manual 1.99~beta0’ for a way to create a CD/DVD that would reflect the state of my grub environment, (including my /boot/grub/menu.cfg) that would let me boot the system as if I was booting from the HD.

My understanding is that the correct procedure is described in section 3.2 of the above manual: Making a GRUB bootable CD-ROM.

The first step specifies the following:

| Copy the file stage2_eltorito:
| 
|  $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub

I looked on the ubuntu 10.10 system where my grub environment happens to live and was unable to find any file named ‘stage2_eltorito’ anywhere on the system and definitely not in the above directory.

I have just downloaded a tarball of grub-1.99~rc1, and a ‘find’ command on the untarred tree did not return any positives either.

Is this file part of another package that complements grub?

Is the documentation in the process of being updated?

Am I missing something?

If the above procedure is not longer current, please let me know how I could create a bootable copy of my current grub environment, preferably on a CD or DVD, so that I could use it as a simple backup solution in the event I am no longer able to boot my systems from the hard drive.

Thanks,

cj

#1 lore raw
Quoted 8 lines · Chris Jones

Sorry for the catchy ’Subject:’ above, I am not sure at this point whether it is appropriate.

I plan to make extensive changes to a multi-boot environment and I looked in ‘GNU GRUB Manual 1.99~beta0’ for a way to create a CD/DVD that would reflect the state of my grub environment, (including my /boot/grub/menu.cfg) that would let me boot the system as if I was booting from the HD.

I don't know where you looked, but the information you refer to is for GRUB Legacy. The configuration file for GRUB 2 is /boot/grub/grub.cfg

Try http://grub.enbug.org/Manual

Quoted 38 lines

My understanding is that the correct procedure is described in section 3.2 of the above manual: Making a GRUB bootable CD-ROM.

The first step specifies the following:

| Copy the file stage2_eltorito:
| | $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub

I looked on the ubuntu 10.10 system where my grub environment happens to live and was unable to find any file named ‘stage2_eltorito’ anywhere on the system and definitely not in the above directory.

I have just downloaded a tarball of grub-1.99~rc1, and a ‘find’ command on the untarred tree did not return any positives either.

Is this file part of another package that complements grub?

Is the documentation in the process of being updated?

Am I missing something?

If the above procedure is not longer current, please let me know how I could create a bootable copy of my current grub environment, preferably on a CD or DVD, so that I could use it as a simple backup solution in the event I am no longer able to boot my systems from the hard drive.

Thanks,

cj

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw
Quoted 10 lines · Bruce Dubbs
Quoted 5 lines · Chris Jones

I plan to make extensive changes to a multi-boot environment and I looked in ‘GNU GRUB Manual 1.99~beta0’ for a way to create a CD/DVD that would reflect the state of my grub environment, (including my /boot/grub/menu.cfg) that would let me boot the system as if I was booting from the HD.

I don't know where you looked, but the information you refer to is for GRUB Legacy. The configuration file for GRUB 2 is /boot/grub/grub.cfg

Same place as usual :-)

http://www.gnu.org/software/grub/manual/grub.html#Making-a-GRUB-bootable-CD_002dROM

OK wise guy.. I meant ‘grub.cfg’ ..

The file referred to in the _grub 1.99_ manual (grub 1.99.. that should be grub2 right?) and that is missing from _both_ the ubuntu 10.10 system _and_ the tarball, is *stage2_eltorito*.

Quoted 1 line

Try http://grub.enbug.org/Manual

Never heard of this site..

Anybody?

Thanks,

cj

#3 lore raw
Quoted 12 lines · Chris Jones
Quoted 8 lines · Bruce Dubbs
Quoted 5 lines · Chris Jones

I plan to make extensive changes to a multi-boot environment and
I looked in ‘GNU GRUB Manual 1.99~beta0’ for a way to create a CD/DVD that would reflect the state of my grub environment, (including my /boot/grub/menu.cfg) that would let me boot the system as if I was booting from the HD.

I don't know where you looked, but the information you refer to is for GRUB Legacy. The configuration file for GRUB 2 is /boot/grub/grub.cfg

Same place as usual :-)

Quoted 7 lines

http://www.gnu.org/software/grub/manual/grub.html#Making-a-GRUB-bootable-CD_002dROM

OK wise guy.. I meant ‘grub.cfg’ ..

The file referred to in the _grub 1.99_ manual (grub 1.99.. that should be grub2 right?) and that is missing from _both_ the ubuntu 10.10 system _and_ the tarball, is *stage2_eltorito*.

You referred to grub.cfg and stage2*. AFAIK those are GRUB Legacy and not GRUB 2.

There does indeed seem to be a problem with the GRUB 2 documentation. Most of the files in /usr/lib/grub/i386-pc/ are of type .mod and .img. I think the file you want is cdboot.img, but I'm not sure how to use it.

Quoted 3 lines
Quoted 1 line

Try http://grub.enbug.org/Manual

Never heard of this site..

That's the GRUB Wiki.

-- Bruce

#4 lore raw
Quoted 1 line · Bruce Dubbs

Chris Jones wrote:

[..]

Quoted 8 lines

You referred to grub.cfg and stage2*. AFAIK those are GRUB Legacy and not GRUB 2.

There does indeed seem to be a problem with the GRUB 2 documentation. Most of the files in /usr/lib/grub/i386-pc/ are of type .mod and .img. I think the file you want is cdboot.img, but I'm not sure how to use it.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Try http://grub.enbug.org/Manual

Never heard of this site..

That's the GRUB Wiki.

Thanks Bruce, and apologies for being a bit tetchy about this.

I was sort of thinking to myself that the doc on gnu.org was a mix of old grub 0.9x and the new 1.9x.. and I should have said so in the first place.

What made the whole thing even more frustrating is that my grub setup is on a different partition than my email.. and I found out that since it is ext4, I'm not even able to mount that partition from my debian lenny system where my mail lives.. hence the wrong file name.. ‘menu.cfg’ is neither grub1 not grub2.. it never existed in the first place.

This said, I really believe having the wrong doc on the gnu.org web site is an accident waiting to happen..

I have very briefly checked the manual at http://grub.enbug.org/Manual¹
and there does not seem to be a description of a similar procedure to what I saw section 3.2 of the ‘other’ manual.

I am pretty sure I would be able to fix just about any problem I might run into when rearranging my system.. but I was hoping that having a ready-to-go solution in the form of a CD/DVD with a copy of my hard disk's grub environment might save me the headaches..

I'm not even sure now that what I had in mind is at all feasible with grub2, save using a floppy, which would mean purchasing an external drive.. I guess they still make them.

Anyway, unless you can point me to an equivalent of that section 3.2 of the other manual that would work with the grub I'm currently running -- I believe it is version 1.99 -- I'll take another look at ubuntu's live CD creation procedure.. It uses isolinux naturally, but I have vague memories that it also lets you do some things using grub instead..

But first I need to read the ‘new’ manual.

cj

#5 lore raw
In reply to Chris Jones
Quoted 5 lines

I have just downloaded a tarball of grub-1.99~rc1, and a ‘find’ command on the untarred tree did not return any positives either.

What tarball have you downloaded? Source code, probably. stage2_eltorito is machine code that has to be compiled for the particular architecture.

#6 lore raw
Quoted 7 lines · On Mon, Jan 24, 2011 at 10:07:24PM EST, [email protected] wrote:
Quoted 5 lines

I have just downloaded a tarball of grub-1.99~rc1, and a ‘find’ command on the untarred tree did not return any positives either.

What tarball have you downloaded? Source code, probably.

Good question. I followed the links from the http://www.gnu.org site and found a large number of tarballs at <ftp://alpha.gnu.org/gnu/grub>.

I chose the one with the highest verstion right at the bottom of the page. It didn't matter much, since I was only downloading it to take a look at the contents of the tarball.. I was not planning to install
it: since I run debian or ubuntu.. I do not normally install anything off of tarballs.

Quoted 2 lines

stage2_eltorito is machine code that has to be compiled for the particular architecture.

Right, but like Bruce said, this file is not part of grub-pc alias grub2. But come to think of it, I can't recall creating a bootable CD or DVD on that ubuntu system where I have grub2 setup.

I guess I need to take a (much) closer look..

Thanks,

cj

#7 lore raw
In reply to Chris Jones
Quoted 12 lines · Chris Jones

Sorry for the catchy ’Subject:’ above, I am not sure at this point whether it is appropriate.

I plan to make extensive changes to a multi-boot environment and I looked in ‘GNU GRUB Manual 1.99~beta0’ for a way to create a CD/DVD that would reflect the state of my grub environment, (including my /boot/grub/menu.cfg) that would let me boot the system as if I was booting from the HD.

My understanding is that the correct procedure is described in section 3.2 of the above manual: Making a GRUB bootable CD-ROM.

You can take a look at grub-mkrescue shell script in utils dir to find out how to create a bootable grub2 cd.

Quoted 36 lines

The first step specifies the following:

| Copy the file stage2_eltorito:
|
|  $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub

I looked on the ubuntu 10.10 system where my grub environment happens to live and was unable to find any file named ‘stage2_eltorito’ anywhere on the system and definitely not in the above directory.

I have just downloaded a tarball of grub-1.99~rc1, and a ‘find’ command on the untarred tree did not return any positives either.

Is this file part of another package that complements grub?

Is the documentation in the process of being updated?

Am I missing something?

If the above procedure is not longer current, please let me know how I could create a bootable copy of my current grub environment, preferably on a CD or DVD, so that I could use it as a simple backup solution in the event I am no longer able to boot my systems from the hard drive.

Thanks,

cj

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#8 lore raw
Quoted 2 lines · KESHAV P.R.

You can take a look at grub-mkrescue shell script in utils dir to find out how to create a bootable grub2 cd.

Yes, it was as simple as:

| $ mkdir /tmp/iso
| $ grub-mkrescue -o grub.iso /boot/grub
| $ growisofs.... etc.

I booted from the DVD but only got a ‘grub > ’ and it took me a good bit of googling to figure out that I needed issue the following command to make the grub menu appear:

| grub > configfile /boot.cfg

Of course, my setup is very basic, with a flat multi-boot menu, but all the same, I feel that both the procedure to create the boot disk and how to use it when recovering really need to be documented in the new
manual: In the event of a mishap, I can just slip in my custom grub rescue disk instead of having to hunt for an install or live CD/DVD and waste time fumbling for the correct grub command syntax to get the machine to boot.. Priceless!

Thanks,

cj

#9 lore raw
In reply to Chris Jones
Quoted 8 lines · Chris Jones

My understanding is that the correct procedure is described in section 3.2 of the above manual: Making a GRUB bootable CD-ROM.

The first step specifies the following:

| Copy the file stage2_eltorito:
| 
|  $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub

Thanks for your report. This is clearly out of date; my apologies. I've updated it to describe the grub-mkrescue program in GRUB 2, and updated the web-viewable copy of the documentation:

http://www.gnu.org/software/grub/manual/grub.html#Making-a-GRUB-bootable-CD_002dROM

Regards,

Signature · 1 line
Colin Watson                                       [[email protected]]
#10 lore raw
Quoted 11 lines · Colin Watson
Quoted 8 lines · Chris Jones

My understanding is that the correct procedure is described in section 3.2 of the above manual: Making a GRUB bootable CD-ROM.

The first step specifies the following:

| Copy the file stage2_eltorito:
| 
|  $ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub
Quoted 5 lines

Thanks for your report. This is clearly out of date; my apologies. I've updated it to describe the grub-mkrescue program in GRUB 2, and updated the web-viewable copy of the documentation:

http://www.gnu.org/software/grub/manual/grub.html#Making-a-GRUB-bootable-CD_002dROM

Thanks.

cj