Jump to content











Photo
- - - - -

How do i add DOS to "Other OS's" section?


  • Please log in to reply
12 replies to this topic

#1 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 18 September 2009 - 08:23 PM

I am using Winbuilder 078 on a Vista machine and can make Multiboot CD's and USB pen drives. But i also need to add DOS and some other files that i need. I can do this manually on the USB pen drive and all works great, but i have to make each one individually. How can i add DOS to the "Other OS's" section and have it all built automatically with the rest? Is there a Script already made that i could modify to add it? I looked but could not find one. The DOS i add is Win98 DOS.
Thanks.

#2 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 21 September 2009 - 05:36 PM

Maybe a better question is how would i make a script to boot to a dos image and add it to the Grub multiboot menu? I have a dos image file named win98.ima and it works on my usb pendrive when i physically add it to the menu.lst. I am having trouble doing that thru a script.

#3 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 21 September 2009 - 08:20 PM

OK, i have gotten a little further. I now have Win98-DOS showing up in the Grub Multiboot menu. I used 7-zip to zip all of the files and directories i need into one file named Win98-DOS.7z. I can not seem to get it to unpack into the \boot directory. I am attaching the text portin of my script. Can someone tell me how to get Win98-DOS.7z to unzip into the boot directory? Right now it unzips into the Programs Directory.

[main]
Title=My Win98 DOS
Description=Win98 DOS
Selected=True
Level=5
Version=1

[variables]
%ProgramTitle%=Win98 DOS
%ProgramEXE%=Command.com
%ProgramFolder%=Win98-DOS
%MenuFile_GRUB%=%TargetDir%\menu.lst

[process]
Echo,"Processing Win98-DOS..."
ReadEnv,BuildModel
If,%BuildModel%,NotEqual,MultiBoot,Exit,"Win98-DOS requires MultiBoot..."
Echo,"Processing Grub4Dos boot manager..."
DirMake,"%targetdir%\boot"
DirMake,"%targetdir%\boot\Win98-DOS"
Unpack,"%targetdir%\boot\Win98-DOS"
unpack,folder,Win98-DOS.7z
TXTAddLine,"%MenuFile_GRUB%","title Win98-DOS","Append"
TXTAddLine,"%MenuFile_GRUB%","kernel /Programs/Win98-DOS/Win98-DOS/win98.ima","Append"
TXTAddLine,"%MenuFile_GRUB%","lock","Append"
TXTAddLine,"%MenuFile_GRUB%"," ","Append"

[EncodedFolders]
Folder

#4 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 22 September 2009 - 09:34 AM

Hi Terry_Dodson,

Check unpack syntax,
http://www.boot-land...?showtopic=8191

#5 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 22 September 2009 - 12:27 PM

Thanks, after looking at that i got it unzipping where i wanted ot to go.

#6 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 22 September 2009 - 04:00 PM

OK, everything seems to be working great for USB pen drive now.
Thanks Lancelot.

Just so you know, here is the text part of the script. Hope it can help someone else.

[main]
Title=My Win98 DOS
Description=Win98 DOS
Selected=True
Level=5
Version=1

[variables]
%ProgramTitle%=Win98 DOS
%ProgramEXE%=Command.com
%ProgramFolder%=
%MenuFile_GRUB%=%TargetDir%\menu.lst

[process]
Echo,"Processing Win98-DOS..."
ReadEnv,BuildModel
If,%BuildModel%,NotEqual,MultiBoot,Exit,"Win98-DOS requires MultiBoot..."
Echo,"Processing Grub4Dos boot manager..."
Unpack,Folder,"Win98-DOS.7z",,"%TargetDir%"
TXTAddLine,"%MenuFile_GRUB%","title Win98-DOS","Append"
TXTAddLine,"%MenuFile_GRUB%","map (hd0,0)/win98-boot-only-ironlake.ima (fd0)","Append"
TXTAddLine,"%MenuFile_GRUB%","map --hook","Append"
TXTAddLine,"%MenuFile_GRUB%","chainloader (fd0)+1","Append"
TXTAddLine,"%MenuFile_GRUB%","rootnoverify (fd0)","Append"
TXTAddLine,"%MenuFile_GRUB%"," ","Append"

[EncodedFolders]
Folder

[Folder]
Win98-DOS.7z=7884426,10512568

[EncodedFile-Folder-Win98-DOS.7z]

#7 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 22 September 2009 - 04:34 PM

Thanks for sharing Terry_Dodson,

btw, this is vistape topic, but same script would work with LiveXP too :loleverybody:

#8 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 22 September 2009 - 05:04 PM

I have not tried it booting from a cd yet. Would i need to change anything for that to work?

#9 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 23 September 2009 - 03:20 PM

I burned it to a cd and tried it, but the dos part did not run. It said
"map (hd0,0)/win98-boot-only-ironlake.ima (fd0)"
"Error 21: Selected disk does not exist"

Is there a way to load that file in both USB and CD generically?

#10 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 23 September 2009 - 05:51 PM

Is there a way to load that file in both USB and CD generically?


find --set-root /win98-boot-only-ironlake.ima

map  /win98-boot-only-ironlake.ima (fd0)

map --hook

root (fd0)

chainloader +1

or:
find --set-root /win98-boot-only-ironlake.ima

map  /win98-boot-only-ironlake.ima (fd0)

map --hook

root (fd0)

chainloader /io.sys

Be VERY aware that on CDFS filenames/paths are CaSe SeNsItIvE.

:loleverybody:


jaclaz

#11 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 24 September 2009 - 03:27 PM

I tried both ways and burned them to cd's. I get this:

Booting Win98-DOS
(cd)
FAT12 BPB found with 0xEB (jmp) leading the boot sector.
probed C/H/S = 80/2/18, probed total sectors=2880
floppies_orig=0, harddrives_orig=0, floppies_curr=1, harddrives_curr=0
root (fd0)
Error 21: Selected disk does not exist
Press any key to continue

The only difference between the 2 ways is the floppies_orig=0 line does not show up on one of them.

#12 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 24 September 2009 - 03:35 PM

My bad. :)

I forgot the line that hooks the mapping:
map --hook

I corrected my previous post, try again.


More generally, before writing a menu.lst entry, it is advised to test in Command Line, as it provides more/better feedback, i.e. you see which command actually causes the output.
http://diddy.boot-la...iles/basics.htm
http://diddy.boot-la...s/files/cli.htm

Review this also:
http://diddy.boot-la...s/files/map.htm

:cheers:


jaclaz

#13 Terry_Dodson

Terry_Dodson

    Member

  • Members
  • 56 posts

Posted 24 September 2009 - 03:53 PM

Great, that worked. It takes me to an "A:" prompt. But i did not see the cd drive to run the batch files from. I will add the files to to image so it loads the dos cd drivers and see how that goes.

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users