Skip to contentSkip to conversation

files as harddrives?

DISCUSSION Bryan Stillwell 2 participants 4 messages Jul 21, 2003 – Jul 22, 2003

lore
Share & tools
lore
#0 lore raw

I have a dos program that I'm trying to get to work, but I haven't found a way to get a file under linux to behave as a drive under dosemu. For the dos program to work, it must believe that the filesystem image under linux is a drive in the dosemu bios. The old wholedisk option looks like it would work, but I'm using version 1.0.2.1-7 (from Debian stable) and it appears to not be available.

The dos program I want to get working is called ltools, which is a set of utilities to read linux filesystems. The web page can be found here:

http://www.it.fht-esslingen.de/~zimmerma/software/ltools/ltools.html

I'm trying to automate a portion of our testing process that requires generating signatures of files read off an ext2 filesystem that are located on a compact flash. The signature generating program is run after ltools is used to copy the files off the compact flash, and it is also a dos program. Since this is a verification test, I must maintain the process as close as possible, so things like copying the files to the dos directory beforehand won't work.

Anyone here have a filesystem image working as a harddrive under dosemu with the latest stable version? I've got it mostly working under bochs, but it's slow and I would rather use dosemu if I can.

Thanks,
Bryan

#1 lore raw

Hi there,

Quoted 2 lines · Bryan Stillwell

Anyone here have a filesystem image working as a harddrive under dosemu with the latest stable version?

I've never had any trouble with this, using 1.0.2 and 1.1.4-5 it seemed to work just as documented. The image is an image of a DOS filesystem, I think I just used 'dd' to create it. Eventually I stopped using it and just set up a directory in the Linux tree, I finkd that's more flexible but you have to think about filenames and permissions...

73,
Ged.

#2 lore raw
Quoted 10 lines · Ged Haywood
Quoted 2 lines · Bryan Stillwell

Anyone here have a filesystem image working as a harddrive under dosemu with the latest stable version?

I've never had any trouble with this, using 1.0.2 and 1.1.4-5 it seemed to work just as documented. The image is an image of a DOS filesystem, I think I just used 'dd' to create it. Eventually I stopped using it and just set up a directory in the Linux tree, I finkd that's more flexible but you have to think about filenames and permissions...

I've done this before and it works fine, but it won't work for what I'm trying to do. Perhaps referring to it as a "filesystem image" was misleading. It may be easier to think of it as a hard drive image (actually compact flash image) with the boot sector and partition information at the front of the file. I then want to use ltools (dos program) to read the linux filesystem located on partition 1 of the file. For ltools to work correctly in this situation, it must be able to access the image as if it's a real hard drive within dosemu.

In bochs I was able to get it working with this line in the .bochsrc:

ata0-slave: type=disk, path="$HOME/freedos_drive/cflash.img", cylinders=496, heads=4, spt=32

I just want something similiar to work in dosemu...

Bryan

#3 lore raw

Hello again,

Quoted 7 lines · Bryan Stillwell

Perhaps referring to it as a "filesystem image" was misleading. It may be easier to think of it as a hard drive image (actually compact flash image) with the boot sector and partition information at the front of the file. I then want to use ltools (dos program) to read the linux filesystem located on partition 1 of the file. For ltools to work correctly in this situation, it must be able to access the image as if it's a real hard drive within dosemu.

Now I see what you're trying to do. I have no idea what problems you'll run into with Dosemu when you do that. I have no reason to suppose it will work, you need someone with more knowledge of the Dosemu internals than I have to tell you that.

73,
Ged.