qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Jim C. Brown" <jbrown106@phreaker.net>
To: Bob Barry <bobb@absamail.co.za>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: coping with fdisk mutation (was Re: replies)
Date: Tue, 29 Jun 2004 15:54:39 -0400	[thread overview]
Message-ID: <20040629195439.GA16876@jbrown.mylinuxbox.org> (raw)
In-Reply-To: <200406291803.46651.bobb@absamail.co.za>

On Tue, Jun 29, 2004 at 07:51:52PM +0200, Bob Barry wrote:
> Jim -
> 
> On Sun, 27 Jun 2004 22:23, you wrote (to Damien Mascord):
> > > Because it is possible that 
> > > a new version of fdisk will change it's screen output and "wreck" 
> > > lomount...
> > 
> > That's the problem that we have here.
> 
> Consider sfdisk - it's intended for non-interactive (script) use.
> It is in the util-linux package (though some high-handed
> distributions omit it).  See file "sfdisk.examples" in the tarball.
> 
> Bob

It would still have the same problem: the screen output of sfdisk -l
could change and lomount would no longer work. Futhermore, there is the
problem that fdisk/sfdisk will output junk like:

                start: (c,h,s) expected (0,1,1) found (0,0,3)
                end: (c,h,s) expected (53,9,2) found (1,26,2)

which we otherwise don't care about, but which messes up the format of output.

However someone else submitted to me a program which can read the necessary
information from the disk image itself. I have merged this into lomount,
so the latest bleeding-edge version of lomount (not yet released) will work
w/o any dependences on the version of fdisk that you have.

Obviously, lomount still requires a version of mount that supports using loop
(as well as losetup) but just about everyone has that.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

  reply	other threads:[~2004-06-29 20:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-29 17:51 [Qemu-devel] Re: coping with fdisk mutation (was Re: replies) Bob Barry
2004-06-29 19:54 ` Jim C. Brown [this message]
2004-06-30 14:55   ` Herbert Poetzl

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=20040629195439.GA16876@jbrown.mylinuxbox.org \
    --to=jbrown106@phreaker.net \
    --cc=bobb@absamail.co.za \
    --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).