MSFN Forum: Converting CDShell to Grub4Dos - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Converting CDShell to Grub4Dos Rate Topic: -----

#1 User is offline   mobiusonline 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 23-October 07

Posted 27 April 2009 - 09:38 AM

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:

Quote

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:

Quote

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


#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,108
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 27 April 2009 - 10:31 AM

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

#3 User is offline   mobiusonline 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 23-October 07

Posted 27 April 2009 - 10:35 AM

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

#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,108
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 27 April 2009 - 11:34 AM

View Postmobiusonline, on Apr 27 2009, 06:35 PM, said:

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....u_bc_parameters
http://bootcd.narod...._e.htm#dos4bcdw

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

jaclaz

#5 User is offline   mobiusonline 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 23-October 07

Posted 27 April 2009 - 12:55 PM

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.

This post has been edited by mobiusonline: 27 April 2009 - 01:19 PM


#6 User is offline   mobiusonline 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 23-October 07

Posted 27 April 2009 - 04:22 PM

K, thought I figured it out, but I didnt. Daft as a doornail I tell ya.

This post has been edited by mobiusonline: 27 April 2009 - 04:54 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy