Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Load grub4dos from CDShell

- - - - -

  • Please log in to reply
6 replies to this topic

#1
janandababu

janandababu

    Newbie

  • Member
  • 29 posts
  • Joined 17-February 06
In my cdshell script i have to call grldr. Because it is having the separate menu with grub4dos.
please provide me process.
Thanks in advance.
sorry for my bad english


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,593 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
Try simply:
chain \grldr
(of course you need grldr in root)

BUT:

http://www.cdshell.o...dref.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...showtopic=19124
http://www.boot-land...showtopic=12292

jaclaz

Edited by jaclaz, 25 November 2010 - 06:54 AM.


#3
janandababu

janandababu

    Newbie

  • Member
  • 29 posts
  • Joined 17-February 06
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, 26 November 2010 - 01:52 AM.


#4
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,593 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
Those were only various suggestions, meant as a base for you to experiment..

You have everything right, only in point #7 you do not need grldr.mbr in root (as it is not called by anything.

jaclaz

#5
cmos

cmos

    Newbie

  • Member
  • 10 posts
  • Joined 22-September 06
Maybe for janandababu is late, but if someone else need it ......

As jaclaz said in this one http://www.msfn.org/...s-from-cdshell/ :

...
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, 08 March 2011 - 10:37 AM.


#6
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,593 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

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/gr...urrent_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.c.../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/gr...-2007-07-24.zip

jaclaz

#7
janandababu

janandababu

    Newbie

  • Member
  • 29 posts
  • Joined 17-February 06
It is working fine as expected after long time.

Thanks & Regards,
Anand




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users