Computing.Net > Forums > Disk Operating System > Boot CD for Diags 2

Boot CD for Diags 2

Reply to Message Icon

Original Message
Name: johns
Date: January 9, 2003 at 18:24:21 Pacific
Subject: Boot CD for Diags 2
OS: dos
CPU/Ram: ???
Comment:

OK i have created a boot CD to be able to load up to DOS or DOS with CD-ROM support... so on...

The problem that I have is with the floppy emulation on a bootable CD. I have tried to do HD emulation with no luck as of yet.

I can get by this by setting paths but would like to simplify the path settings. When the CD-ROM drivers load it will load dif.. on each PC depending on the HD config in the PC.

Is there a variable that I can use to set the path to the drive letter assigned to the CD-ROM?

current config.sys
[menu]
menuitem=std,Floppy Drive - Dos Prompt - CD emulated floppy
menuitem=eef,CD-ROM support
menuitem=gho,CD-ROM with NTFS
menucolor= 1,

[std]

[eef]
device=oakcdrom.sys /D:mscd001
[gho]
device=oakcdrom.sys /D:mscd001
[COMMON]

current autoexec.bat

rem - Go to the section that matches current value of the CONFIG variable
goto %config%

:eef
MSCDEX.EXE /D:mscd001 /L
goto end

:gho
MSCDEX.EXE /D:mscd001 /L
ntfsdos
goto end

:end


I would like to add more options to the boot menu by setting paths to the CD-ROM drive.


Report Offensive Message For Removal


Response Number 1
Name: michdaugh
Date: January 9, 2003 at 20:16:17 Pacific
Subject: Boot CD for Diags 2
Reply: (edit)

The easiest way to do it is to hardcode the drive letter of the CD ROM with the MSCDEX command. Usually some good letters to use are anything above logical drive t: (I usually use x:, y: or z:). I.E.:

mscdex.exe /d:mscd001 /L:X

This will set the CD ROM to always be drive x:.

Another option is to put an ID file on the CD, then check for the existence of the file.

Here's a rough batch file assuming there is a file called bootcd.id in the root directory of the CD ROM Disk.

set cdrom=none
if exist c:\bootcd.id set cdrom=c:\
if exist d:\bootcd.id set cdrom=d:\
.
.
.
if exist y:\bootcd.id set cdrom=y:\
if exist z:\bootcd.id set cdrom=z:\

Obviously fill in the blanks for drive letter e: thru x:.

This will give you a %cdrom% path that you can use.

Of course, if the CD ROM is the boot device, then there's no need find the path, as long as you don't change from the current drive.

I.E. if you need to access the DOS from the CD ROM (and it is the boot drive), simply use \DOS .

As an example, to access fdisk from the dos directory of the boot CD, use this:

\dos\fdisk.exe

Hope this helps.
-Michael


Report Offensive Follow Up For Removal

Response Number 2
Name: johns
Date: January 10, 2003 at 04:53:18 Pacific
Subject: Boot CD for Diags 2
Reply: (edit)

Thanks!

That helps a lot!

The problem with the boot disk is the floppy emutation. The .bin file on the CD comes up as A: and will only support a file up to 1.44MB or 2.88MB depending on the Floppy you use. It doesnt alow full access to the CD-ROM.

So setting the CD-ROM to drive X and setting the path to X should alow me to run and Prog on the CD right from the boot menu. :)


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Boot CD for Diags 2

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge