2 Pages V   1 2 >  
Reply to this topic
 Launching from GRUB, I hope a very Basic Question
post Aug 5 2009, 04:58 PM
Post #1
Hernandito
Newbie   *
Group: Members

  Joined: 23-April 09
Posts: 25
Thank(s): 1


United States


Sorry for how basic this question may be....

I am booting to a USB drive with multiple partitions. One of the partitions (hd0,6) has regular GRUB on its partition boot record. Once I boot to the GRUB partition on its (hd0,6)/boot/grub/menu.lst file I have the following entry:

CODE
rootnoverify (hd0,6)
kernel (hd0,6)/grub.exe --configfile=(hd0,6)/mymenu.lst


I want to start Grub4Dos and have it use the (hd0,6)/mymenu.lst. Instead what the entry does is boot to a G4D menu that is stored in another partition of my drive. How can I make G4D use the proper menu file by launching it from Grub?

Thanks,

Hernando


+Quote Post
post Aug 5 2009, 05:07 PM
Post #2
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,230
Thank(s): 564


Italy


QUOTE (Hernandito @ Aug 5 2009, 06:58 PM) *
Sorry for how basic this question may be....

I am booting to a USB drive with multiple partitions. One of the partitions (hd0,6) has regular GRUB on its partition boot record. Once I boot to the GRUB partition on its (hd0,6)/boot/grub/menu.lst file I have the following entry:

CODE
rootnoverify (hd0,6)
kernel (hd0,6)/grub.exe --configfile=(hd0,6)/mymenu.lst


I want to start Grub4Dos and have it use the (hd0,6)/mymenu.lst. Instead what the entry does is boot to a G4D menu that is stored in another partition of my drive. How can I make G4D use the proper menu file by launching it from Grub?

Thanks,

Hernando


I don't get it. dubbio.gif

Why do you want to run another instance of grub4dos? w00t.gif

Wherever is the "main" "grub", all you need to do is to add to it's corresponding "main" menu.lst and entry like:
CODE
Another menu.lst
configfile (hd0,6)/mymenu.lst

or, maybe better:
CODE
Another menu.lst
find --set-root /mymenu.lst
configfile /mymenu.lst


Or am I missing something? unsure.gif

jaclaz


--------------------
+Quote Post
post Aug 5 2009, 05:25 PM
Post #3
Icecube
Silver Member   ****
Group: Advanced user

  Joined: 7-September 08
Posts: 641
Thank(s): 172


Belgium


QUOTE (jaclaz @ Aug 5 2009, 07:07 PM) *
Or am I missing something? unsure.gif

Yes. He is running GRUB 0.97 (not GRUB4DOS).

@ Hernandito
Try this:
CODE
rootnoverify (hd0,6)
kernel (hd0,6)/grub.exe --config-file=(hd0,6)/mymenu.lst

You forgot a '-' between config and file rolleyes.gif .


--------------------
+Quote Post
post Aug 5 2009, 05:37 PM
Post #4
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,230
Thank(s): 564


Italy


QUOTE (Icecube @ Aug 5 2009, 07:25 PM) *
Yes. He is running GRUB 0.97 (not GRUB4DOS).


I see. smile.gif

I hadn't translated "regular Grub" as "Grub 0.97" blush.gif, I thought it meant "regularly installed Grub(4dos)" my bad.

cheers.gif

jaclaz


--------------------
+Quote Post
post Aug 5 2009, 05:39 PM
Post #5
Hernandito
Newbie   *
Group: Members

  Joined: 23-April 09
Posts: 25
Thank(s): 1


United States


Thank you Jaclaz,

This line was what I needed.... What you are saying is true... my setup is way more complicated that what it probably should be. This is the danger of not being a newbie and NOT being a pro.

Let me try a few things and see if I can simplify it... you gave me the incentive (and an error 18: cylinder not supported by bios).

Thanks again,

Hernando
+Quote Post
post Aug 5 2009, 09:26 PM
Post #6
Hernandito
Newbie   *
Group: Members

  Joined: 23-April 09
Posts: 25
Thank(s): 1


United States


Thanks again guys....

I think I was able to simplify things considerably. One last question though.... and probably this is not the place for it... but here it goes.

In Grub .097 is there an equivalent to Grub4DOS' "find --set-root" command?

I am trying to have my multiboot where I do the typical XP "find --set-root /ntldr" routine. Because I have so many partitions on my boot stick drive, G4D does not boot those, but grub .097 does... I even tried loading grub4dos from .097, but I get an "Error 18: Selected cylinder exceeds max. supported by Bios".

Thanks again,

Hernando
+Quote Post
post Aug 5 2009, 09:35 PM
Post #7
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,230
Thank(s): 564


Italy


QUOTE (Hernandito @ Aug 5 2009, 11:26 PM) *
I am trying to have my multiboot where I do the typical XP "find --set-root /ntldr" routine. Because I have so many partitions on my boot stick drive, G4D does not boot those, but grub .097 does... I even tried loading grub4dos from .097, but I get an "Error 18: Selected cylinder exceeds max. supported by Bios".


Try comparing "so many" and "tried loading grub4dos from .097" with "common sense advice" attached to Rules:
http://www.boot-land.net/forums/index.php?act=boardrules
particularly with point #d.
happy22.gif


For the moment, you can enjoy my standard reply #32 wink.gif:
http://www.boot-land.net/forums/index.php?showtopic=2587

w00t.gif


cheers.gif

jaclaz


--------------------
+Quote Post
post Aug 6 2009, 12:36 AM
Post #8
Hernandito
Newbie   *
Group: Members

  Joined: 23-April 09
Posts: 25
Thank(s): 1


United States


Thanks Jaclaz,

I guess I didn't want to bore everyone with my details. Here they are.

I have a USB pen drive that I want to use as a default boot device. The device will have various partitions:

1) Primary - Share partition (fat 32)- this also will show up on any Win machine (XP, Vista, Win7) use simply t oexchange files between OSs.

2) Primary - Chameleon RC1 bootloader (hfs+) format want to get bootloader to load all (this will be the first thing that boots.

3) Logical - Boot XP (ext3) - very small partition, 20MB or so. Chameleon will see this partition. I have installed grub 0.97 to partition boot record. If partition is selected in Chameleon, I am loading grub 0.97. I want to be able to use the "find --set-root /ntldr" command in 0.97 to search for XP drive and do the swap mapping. I have tried loading Grub4DOS from 0.97 and I get the "Error 18: Cylinders...." message. This is why I am hoping there is an equivalent to the "find --set-root" in Grub 0.97. I can easily map the physical NT drive number, but this is likely to change as various drives go in hhot-swappable racks.

4) Logical - Ubuntu Persistent(ext3) - very small partition, 20MB or so. Chameleon will see this partition. I have installed grub 0.97 to partition boot record. If partition is selected in Chameleon, I am loading grub 0.97 and with it I can actually boot Ubuntu stored n USB drive. Ubuntu files are actually stored in the next partition.

5) Logical - Utilities (ext3) - Big partition. Same deal with Chameleon seeing and booting this. This will be a Grub 0.97 to Grub4DOS sequence. Once booted into this partition, a bunch of Live CD stuff, and various ISOs will be loaded via Grub4DOS. I have tested all utilities here, but not yet tried seeing and booting to it from Chameleon.

My goal is for all these partitions to be visible and actually boot to the desired OS. Chameleon does not boot to XP. Thus the trick I am trying t perform.

I hope this helps.... thanks again!!

Hernando

+Quote Post
post Aug 6 2009, 03:28 PM
Post #9
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,230
Thank(s): 564


Italy


But still I fail to see your "obsession" with grub 0.97.

Grub4dos is currently the evolution of grub 0.97, i.e. if you want a better 0.97 or a 0.98 while the "real thing" will be grub 2.

Why cannot you install grub4dos directly to partition bootrecord of partition 3) ?

About the error you are getting when trying loading grub4dos from grub 0.97, try with command line, post both the single commands you use AND the feedback grub gives.

jaclaz


--------------------
+Quote Post
post Aug 6 2009, 05:20 PM
Post #10
Hernandito
Newbie   *
Group: Members

  Joined: 23-April 09
Posts: 25
Thank(s): 1


United States


UPDATE:

I think I have narrowed ALL my problems to the fact that GRUB 0.97 is not activating the right mymenu.lst command.

I have tried the following in Grub 0.97 without luck

CODE
root (hd0,6)
kernel (hd0,6)/grub.exe --config-file=(hd0,6)/mymenu.lst


When I do this, G4D flashes a 1 second menu where it sets out to look for the menu.lst file which it could not find in the root of (hd0,6). It then finds a menu.lst file in another partition and launches that one. If I rename the mymenu.lst file to menu.lst in the root of (hd0,6), it still launches the quick menu and finds the other menu.lst first.

I also tried this in Grub 0.97:

CODE
root (hd0,6)
kernel (hd0,6)/grub.exe
configfile (hd0,6)/mymenu.lst


But this only launches mymenu.lst inside Grub 0.97 and none of the "find --set-root's" work.

I also tried the hide command:

CODE
hide (hd0,4)    {where the other menu.lst is}
unhide (hd0,6)
root (hd0,6)
kernel (hd0,6)/grub.exe    {menu file is called menu.lst in this partition}


While I guess this hides the partition in Grub 0.97, it does not hide it in Grub4DOS, because it boots to the wrong menu.lst file again.

Any help is greatly appreciated.....

Thanks,

Hernando

+Quote Post

2 Pages V   1 2 >
Reply to this topic
2 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts Grub4dos iso Size Limit?
1 sara - pmedia 106 Yesterday, 08:31 AM
Last post by: Wonko the Sane
No New Posts Grub2 Manual
7 Icecube 289 31st August 2010 - 05:00 PM
Last post by: Wonko the Sane
No new grub4dos booting ubuntu iso
29 mipstien 12,435 27th August 2010 - 10:27 AM
Last post by: Wonko the Sane
No new Topic has attachmentsGRUB4DOS + WinVBlock
47 Sha0 2,744 25th August 2010 - 01:12 PM
Last post by: Wonko the Sane
No New Posts Grub4Dos savedefault does not work
4 davidwolf 1,507 17th August 2010 - 09:13 PM
Last post by: tinybit