qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Tim <tim-qemu@sentinelchicken.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Mounting windows partition
Date: Sat, 8 May 2004 13:25:40 -0700	[thread overview]
Message-ID: <20040508202540.GA1053@sentinelchicken.org> (raw)
In-Reply-To: <1084046607.1478.2.camel@debian>

Linux does not have good support for loopback partition table reading.
You can mount a file as a partition, but not convince the kernel to read
a partition table off of a file.

There was a patch to the loopback driver available for 2.4.x, but I
don't think it is being maintained.  I think some guys from NASA wrote
it, and they made it very hard to use on any distro other than redhate.
It also required a patch to losetup, that didn't work for me, so it was
buggy even when I used it.  (If anyone has info on an
improved/maintained patch for this, I would love to know.  It would be
very nice to have this for the forensics work that I do.)

The only other work around that I know of, is to run losetup with the -o
option.  Basically, skip over the first track of the "disk" until you
reach the parition's superblock/header.  You need to know the exact
offset for this, of course.  fdisk -l will probably help you figure that
out.

Once you have your loopback device created, you can mount it like a
partition.

tim



On Sat, May 08, 2004 at 10:03:27PM +0200, Lean Fuglsang wrote:
> Hello,
> i created a file - which was emulated as the filesystem for windows98.
> I then made some partitions in the emulated dos, and installed windows.
> My question is, how can I mount this partition in Linux?
> So how do I get a windows_disk1 like the kernel finds in /dev/hda1...?
> 
> -- 
> Lean Fuglsang <lean@omnia.dk>
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel

  reply	other threads:[~2004-05-08 20:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08 20:03 [Qemu-devel] Mounting windows partition Lean Fuglsang
2004-05-08 20:25 ` Tim [this message]
2004-05-09  1:56   ` Michael Torrie

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=20040508202540.GA1053@sentinelchicken.org \
    --to=tim-qemu@sentinelchicken.org \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).