Jump to content

Converting CDShell to Grub4Dos


mobiusonline

Recommended Posts

So I decided to take the plunge and convert my CDShell loader and scripts to Grub4Dos. Easier than I thought (dont know what I was afraid of), but I have run into a snag.

On a couple of my floppy images, I call a floppy image, and then a batch file. How can I do this in Grub4Dos

My current/old CDShell script:

bcdw \images\freedos.img \dosapps\editbini\startup.bat

Here is an example of what I am using for just regular floppy images in my Grub4Dos config:

title Easy Recovery Pro - Trial

find --set-root --ignore-floppies /images/ezrec.ima

map --mem /images/ezrec.ima (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

Thanks in advance,

M

Link to comment
Share on other sites


I've never seen this kind of usage. :unsure:

Why don't you simply add "startup.bat" as a command in autoexec.bat?

Read this seemingly unrelated (and longish) thread (dedicated to the translation and fixes made to convert UBCD isolinux/syslinux syntax to grub4dos):

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

It is possible to pre-assign a parameter via grub4dos.

Maybe you can use a similar method as the one used in UBCD.

jaclaz

Link to comment
Share on other sites

I would add it, but I have other utilities that use the freedos.img file to boot from using their own bat script. Just looking for an easy way to get them all moved, and not have to create a whole bunch of floppy images (did this to save space).

Link to comment
Share on other sites

I would add it, but I have other utilities that use the freedos.img file to boot from using their own bat script. Just looking for an easy way to get them all moved, and not have to create a whole bunch of floppy images (did this to save space).

I expected as much ;), that's why I gave you a possible alternative too.

I am however curious on how it's your current setup working.

Is it a derivative of this? :unsure::

http://bootcd.narod.ru/bcdw_e.htm#ini_menu_bc_parameters

http://bootcd.narod.ru/bcdw_e.htm#dos4bcdw

The UBCD getargs works in a similar way to BCDW_CL.COM ....

jaclaz

Link to comment
Share on other sites

Yes, it is a lot like the parameters for bcdw. Just looking to see what command layout I would need to use within Grub4Dos to make that work easily.

Or is there a module out there that will allow me to use bcdw within Grub4Dos as a kernel? Just a thought, really, and would make my converting the commands even easier.

Just sometimes I feel daft as to what I am trying to do here.

Edited by mobiusonline
Link to comment
Share on other sites

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...