All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: files as harddrives?
Date: Wed, 23 Jul 2003 22:17:00 +0400	[thread overview]
Message-ID: <3F1ED11C.2040308@aknet.ru> (raw)

Hello.

Bryan Stillwell wrote:
>>> 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.
> AFAICT, dosemu used to support this behaviour with the
> wholedisk option on older versions, but that
> functionality has been removed
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.


             reply	other threads:[~2003-07-23 18:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23 18:17 Stas Sergeev [this message]
2003-08-04 22:02 ` files as harddrives? Bryan Stillwell
  -- strict thread matches above, loose matches on Subject: below --
2003-08-05  3:26 Stas Sergeev
2003-07-22 16:37 Stas Sergeev
2003-07-22 16:59 ` Bryan Stillwell
2003-07-21 21:40 Bryan Stillwell
2003-07-22  9:01 ` Ged Haywood
2003-07-22 16:10   ` Bryan Stillwell
2003-07-22 16:54     ` Ged Haywood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F1ED11C.2040308@aknet.ru \
    --to=stsp@aknet.ru \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.