Operating System - OpenVMS
1753504 Members
4556 Online
108794 Solutions
New Discussion юеВ

Automatic recognition of floppy drive

 
Kenneth Toler
Frequent Advisor

Automatic recognition of floppy drive

I need to know the DCL "COM" file code that will allow a floppy drive to be automatically recognized for OpenVMS 7.3-2.
6 REPLIES 6
Uwe Zessin
Honored Contributor

Re: Automatic recognition of floppy drive

$ search sys$startup:*.com; io,autoconfigure/match=and/window=3

******************************
SYS$COMMON:[SYS$STARTUP]VMS$DEVICE_STARTUP.COM;1

io connect mpa0/noadapter/driver=sys$pipedriver
io autoconfigure ! <=
exit

The line marked "<=" does the recognition.
.
Kenneth Toler
Frequent Advisor

Re: Automatic recognition of floppy drive

Now that I can recognize a floppy drive with the DCL,

$ io -connect /noadapter/driver=sys$pipedriver
$ io autoconfigure ! <=
$ exit

how do I check for errors if the floppy is not there?

how do I send a message to the screen alerting the operator to "Insert a floppy disk"?

how can $STATUS be used in this scenario?
Antoniov.
Honored Contributor

Re: Automatic recognition of floppy drive

Kenneth,
welcome to VMS forum!

I'm not sure about your real intention; I try to do.
You can know if floppy is recognized usign f$getdvi like follow
$ IF F$GETDVI(floppy_dev,"EXISTS")
$ THEN
$ ... floppy exist
$ ELSE
$ ... execute here Uwe's statement
$ ... so mount new floppy
$ ENDIF

About floppy in drive, I don't know any option of f$getdvi.

Antonio Vigliotti
Antonio Maria Vigliotti
Kenneth Toler
Frequent Advisor

Re: Automatic recognition of floppy drive

I have tried F$GETDVI, but have not been able to get it to recognize whether or not a floppy is in the drive or not. Is this the way to approach this?
Hein van den Heuvel
Honored Contributor

Re: Automatic recognition of floppy drive

>> $ io autoconfigure ! <=
>> how do I check for errors if the floppy is not there?

The autoconfigure only loads the software driver. It does not look for media.

>> how do I send a message to the screen alerting the operator to "Insert a floppy disk"?

Well, if you just try to mount/for it, that will succeed with media present and will fail, whilest warning the operator is not present:

$ mount/for XXX$DVA0:
%MOUNT-I-OPRQST, Please mount device _XXX$DVA0:
%MOUNT-I-NOOPR, no operator available to service request

I don't think you can detect the floppy presence without attempting a mount.

hth,
Hein.

Bojan Nemec
Honored Contributor

Re: Automatic recognition of floppy drive

Kenneth,

Uwes command:

$ mc sysman io autoconfigure


identifies all the devices connected to the alpha and loads the drivers needed for them.

So this command is needed if you dont see yours floppy as a device (probably DVA0). Once you see the device this command is not needed.

There is no special command to check if there is a floppy in the drive. You can just try to mount it with MOUNT/ASSIST.

the line:
io connect mpa0/noadapter/driver=sys$pipedriver

is needed for DCL piping and you dont need it (It was a part of the search command)

Bojan