VOGONS


Own dos (imgmount + boot) + virtual devices

Topic actions

First post, by remcohn

User metadata
Rank Newbie
Rank
Newbie

Is it possible to use a floppy drive for example inside a imgmount + boot system?

Thanks,
Remco

Reply 1 of 38, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Don't think so. I think you can imgmount a floppy image *before* booting from a HD-image, and then the floppy-image will be accessible after boot.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

Yes, unfortunaly that is only true for imgmounts, not for non-images (like real floppys or directorys)

Remco

Reply 3 of 38, by gidierre

User metadata
Rank Member
Rank
Member
remcohn wrote:

Yes, unfortunaly that is only true for imgmounts, not for non-images (like real floppys or directorys)

Remco

then create an image from real floppies

Reply 4 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

yes, unfortunaly, i need to read and write data from real floppys regularly in my application. isnt there any way to get this working? just with real floppys?

remco

Reply 5 of 38, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Why do you need to boot into a different dos?

Reply 6 of 38, by gidierre

User metadata
Rank Member
Rank
Member

yeah, remco,
frankly I'm afraid I didn't really grasp the precise scope of your problem.

Reply 7 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

I have a windows 3.11 program, written in FoxPro. When its run in a normal dosbox enviroment, it complains that there is not enough diskspace free. This is the case with either a directory-emulated C drive, or a imgmount C drive.
The only way i was able to solve this problem was by booting a 'real' dos enviroment, with a real command.com and stuff. Then the program runs perfectly in win 3.11.
But when i boot (`boot -l c`) i lose all my non-imgmount drives, like my real floppy drive. And the whole purpose of the program is to read data from a floppy, process it, and write something back.
I understand i can imgmount a floppy, and write images back and forth in windows, but that would take WAY too much time.

thanks for your time,
Remco

Reply 9 of 38, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

mount C \blah\blah\blah -freesize nnnnnn

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 10 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

No, fortunately not. Not even a imgmount c drive (with everything including 'TEMP' pointing to the C drive).
Looks like it uses some 'funny' non-standard calls to determinate the free space, which only works with a real dos environment.

Remco

Reply 11 of 38, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

currently only works with a real dos env 😉
We are always looking for those kind of bugs to improve the compatibility of DOSBox.

Have you run it in the debugger version of dosbox (see dev forum) to see if some big warning pops up on an unhandled call ?

Water flows down the stream
How to ask questions the smart way!

Reply 12 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

How can i enable logging in the debug version? most of the stuff i see a "CPU:Illegal/Unhandles opcode 63", but that starts the moment i start windows 3.11

Remco

Reply 13 of 38, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

create a new configfile using that build
then there is an option logfile in there.

Water flows down the stream
How to ask questions the smart way!

Reply 14 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

Found the interesting part i think:
60727970: CPU:Illegal/Unhandled opcode 63
60727981: CPU:Illegal/Unhandled opcode 63
60727994: FILES:file create attributes 0 file C:\APW\00737346.TMP
60727995: CPU:Illegal/Unhandled opcode 63
60728004: DOSMISC:DOS:Unhandled call 68 al=66. Set al to default of 0
60728005: CPU:Illegal/Unhandled opcode 63
60728028: CPU:Illegal/Unhandled opcode 63
60728034: CPU:Illegal/Unhandled opcode 63
60728052: CPU:Illegal/Unhandled opcode 63
60728058: CPU:Illegal/Unhandled opcode 63
60728069: CPU:Illegal/Unhandled opcode 63
60728082: FILES:file create attributes 0 file C:\APW\00737347.TMP
60728083: CPU:Illegal/Unhandled opcode 63
60728093: CPU:Illegal/Unhandled opcode 63

Remco

Reply 15 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

hm, found some more unhandles calls:
60714866: CPU:Illegal/Unhandled opcode 63
60714883: FILES:Special file open command 80 file C:\APW\FOXW2500.ESL
60714884: CPU:Illegal/Unhandled opcode 63
60714893: DOSMISC:DOS:Unhandled call 5C al=00. Set al to default of 0
60714894: CPU:Illegal/Unhandled opcode 63
60714902: DOSMISC:DOS:Unhandled call 5C al=01. Set al to default of 0
60714903: CPU:Illegal/Unhandled opcode 63

but the error in the program is about the temp file in my post above

Remco

Reply 16 of 38, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

ah yes. could you for completeness sake attach the full log as well.

Water flows down the stream
How to ask questions the smart way!

Reply 17 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

I hope you dont mind a zip file, the unzipped file is 400k.

Remco

Reply 18 of 38, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

call 68:
http://www.delorie.com/djgpp/doc/rbinter/id/83/31.html
DOSBox clears the cf. but we don't check if handle in bx is valid.

call 5c:
http://www.delorie.com/djgpp/doc/rbinter/id/28/30.html
we only change al to 0. We possible could give an errorcode and raise carry flag.

Water flows down the stream
How to ask questions the smart way!

Reply 19 of 38, by remcohn

User metadata
Rank Newbie
Rank
Newbie

so both shouldn't be a problem?