From: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-ide@vger.kernel.org, Mauelshagen@RedHat.com
Subject: Re: libata equivalent for hdX=remap63
Date: Mon, 03 Sep 2007 21:18:42 +0600 [thread overview]
Message-ID: <46DC25D2.6090705@ums.usu.ru> (raw)
In-Reply-To: <20070902104645.0c6b291c@the-village.bc.nu>
Alan Cox wrote:
> The remap63 hack is ancient. Since the kernel acquired device mapper its
> also unneccessary as you can use device mapper to set up a 63 sector
> offset volume.
>
> I'm amazed anyone is still using it but the right way to handle it on a
> vaguely modern system isn't more kernel hacks but to teach dmraid to
> handle it. If you've got an example of what the layout looks like
> (especially if there is a way to autodetect it) then talk to Heinz (cc'd)
> about getting it added to dmraid.
>
I got no useful reply to my request for the user to send the first
megabyte of the hard disk. However, using a cracked version of Hitachi
OEM variant of OnTrack Disk Manager, I produced a 64GB qemu disk image
with this disk manager, Windows 98 and a Linux partition (just in case).
It works fine with hda=remap63 and thus serves the purpose of being an
example of the layout.
The first 64 KB of this hard disk can be found at
http://ums.usu.ru/~patrakov/first-64-kb.dsk (please tell me when I can
remove this file).
The full disk image (obviously, without Windows 98 - but you can install
it yourself) can be reconstructed as:
dd if=/dev/null of=first-64-kb.dsk bs=1M seek=65536
Note that you can't just reinterpret the OnTrackDM6 partition as a disk
image because it doesn't start at sector 63. To use this image in qemu:
qemu -hda first-64-kb.dsk -hdachs 1024,16,63,none -cdrom
your-favourite-livecd.iso
In the original image, I could do a "mount -t vfat -o loop,offset=64512
/dev/hda /mnt" and see the Windows partition.
--
Alexander E. Patrakov
next prev parent reply other threads:[~2007-09-03 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-02 8:26 libata equivalent for hdX=remap63 Alexander E. Patrakov
2007-09-02 9:46 ` Alan Cox
2007-09-02 10:18 ` Alexander E. Patrakov
2007-09-03 15:18 ` Alexander E. Patrakov [this message]
2007-09-06 0:44 ` Alan Cox
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=46DC25D2.6090705@ums.usu.ru \
--to=patrakov@ums.usu.ru \
--cc=Mauelshagen@RedHat.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-ide@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.