Jump to content

Load grub4dos from CDShell


janandababu

Recommended Posts


Try simply:

chain \grldr

(of course you need grldr in root)

BUT:

http://www.cdshell.org/doc/cmdref.html#chain

chain <filename>

chain <filename> <address> [start]

The chain command is used to chain-load a boot sector or other such boot image file. One of the more common uses of this command is to load a Windows CD-ROM boot sector image file to make a bootable Windows installation disk. This command is not for booting images that require hardware emulation (eg. floppy or hard disk images).

The filename parameter specifies the boot image file to chain-load. The image file size is limited to 64kb.

It probably won't work, :(

Then you can try:

chain \grldr.mbr

(of course you need BOTH grldr.mbr grldr in root)

OR try chainloading a standard 2K/XP no.emulation boot record (Arnes Boot Record or Microsoft Corporation.img) 2048 bytes in size.

chain \XPBOOT.BIN

The XPBOOT.BIN needs to be hexedited, as an example, from (see here for reference):

http://flyakite.msfn.org/xpprosp1.htm

from:

SETUPLDR.BINBOOTFIX.BINI386

to something like:

SETUPLDR.BINBOOTFIX.BING4D1

and grldr put in \G4D1\, renamed to BOOTFIX.BIN

Compare with:

http://www.911cd.net/forums//index.php?showtopic=19124

http://www.boot-land.net/forums/index.php?showtopic=12292

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

Hi jaclaz,

Very very thanks to given the solution. As per your information my assumption is mentioned in below. correct me if i did wrong assumption:

1. I will create XPBOOT.BIN file from XP CD.

2. In cdshell script, i will write to call for grub4dos menu.

i.e. chain \XPBOOT.BIN

3. Open the XPBOOT.BIN with hexeditor and find the I386 and replace with G4D1(i think only one time we have to replace)

4. Create a folder called G4D1 in the root.

5. Copy the grldr file and place into G4D1 folder.

6. Now go to G4D1 folder and select the grldr file and rename to BOOTFIX.BIN

7. Finally we have to place the grldr.mbr and grldr into root.

That's it.

Please correct me my assumption

Edited by janandababu
Link to comment
Share on other sites

  • 3 months later...

Maybe for janandababu is late, but if someone else need it ......

As jaclaz said in this one :

...

BTW, just for the record, grub4dos is CaSe SeNsItIvE on CDFS.

jaclaz

we must hexedit the grldr if our cd/dvd/iso is UPPERED !

Open grldr with your preferred hexeditor, find menu.lst and replace with MENU.LST . You can change the path too, if you need it .

And i can confirm this one :

... you do not need grldr.mbr in root (as it is not called by anything.

jaclaz

Once again jaclaz thank you for your endless support and help ! God bless you !

Edited by cmos
Link to comment
Share on other sites

Open grldr with your preferred hexeditor, find menu.lst and replace with MENU.LST . You can change the path too, if you need it .

AFAIK NOT needed anymore.

Embedded menu.lst in grub4dos 0.4.4 10-16-2009 "current release":

http://reboot.pro/14/

http://nufans.net/grub4dos/current_release/

configfile

default 0

timeout 1

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst

errorcheck off

configfile /menu.lst

configfile /boot/grub/menu.lst

configfile /grub/menu.lst

find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst

find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst

find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst

errorcheck on

commandline

title commandline

commandline

title reboot

reboot

title halt

halt

BUT newer versions (experimental) like latest here:

http://code.google.com/p/grub4dos-chenall/downloads/list

configfile

default 0

timeout 1

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst

errorcheck off

configfile /menu.lst || configfile /MENU.LST

configfile /boot/grub/menu.lst || configfile /BOOT/GRUB/MENU.LST

configfile /grub/menu.lst || configfile /GRUB/MENU.LST

find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst

find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst

find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst

errorcheck on

commandline

title commandline

commandline

title reboot

reboot

title halt

halt

And you can avoid the hexediting, there is a tool for it, grubmenu.exe ;):

http://reboot.pro/12591/

inside good ol' grubutils:

http://nufans.net/grub4dos/grubutil/grubutil-1.1-bin-w32-2007-07-24.zip

jaclaz

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...