From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Stillwell Subject: Re: files as harddrives? Date: Mon, 4 Aug 2003 16:02:56 -0600 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20030804220256.GC6969@bokeoa.com> References: <3F1ED11C.2040308@aknet.ru> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <3F1ED11C.2040308@aknet.ru> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-msdos@vger.kernel.org Your mention of mkfatimage16 caused me to look around in the source tree a little, and I found mkhdimage in src/tools/periph/ which did exactly what I wanted! Thanks for the help, everything is working fine now! :) Bryan On Wed, Jul 23, 2003 at 10:17:00PM +0400, Stas Sergeev wrote: >I don't think it was removed. It is more >like it was disabled in global.conf. >A quick hack, such as modifying the line >650 from "disk { image $yyy }" to something >like "disk { wholedisk /dev/hda }" will still >work if you cheat dosemu by setting $_hdimage >to an existing image so that this line in >global.conf is reached. >However, what you do you'll still not be able >to achieve. Dosemu needs to get a disk geometry >before it can work with it as a wholedisk. >It uses a HDIO_GETGEO ioctl command for that. >This is not possible to do with an image file, >therefore the image file must have some kind of >a header to provide a geometry - that's why the >mkfatimage16 exists. >So mainly, it seems if you do a simple image >file from your flash drive, there is not enough >info to get any use of it - the geometry is also >required.