From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Stillwell Subject: Re: files as harddrives? Date: Tue, 22 Jul 2003 10:10:04 -0600 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20030722161004.GA17887@bokeoa.com> References: <20030721214058.GH15406@bokeoa.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ged Haywood Cc: linux-msdos@vger.kernel.org On Tue, Jul 22, 2003 at 10:01:33AM +0100, Ged Haywood wrote: >On Mon, 21 Jul 2003, Bryan Stillwell wrote: >> 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