All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jim C. Brown" <jma5@umd.edu>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] fdisk give wrong number for losetup
Date: Thu, 7 Jul 2005 09:10:54 -0400	[thread overview]
Message-ID: <20050707131054.GA5461@jbrown.mylinuxbox.org> (raw)
In-Reply-To: <1120732568.42cd0598078bd@webmail.alinto.com>

On Thu, Jul 07, 2005 at 12:36:08PM +0200, octane indice wrote:
> Hello
> 
> I have some trouble using losetup to mount partitions
> from the host.
> 

I never realized how difficult it was to interpret error messages written in
a foreign language.

> 
> And now, my questions: why this?
> 

Because you were passing the wrong value as the offset. You have to multipy
the cylinder with the number of heads and number of sectors per head and such.

> what's this number given by sfdisk: 516096 ?

Apparently, head*sectors per head*bytes per sector ... my fdisk doesn't show
that number though.

> fdisk doesn't give the good values?
> 
> thanks

It does, but they are hard to interpret unless you understand disk geometries.

I really recommend using lomount or some similar tool to figure out these
offsets for you. (Incidently, lomount doesn't care about disk geometry - it
uses the absolute sector values in the partition table.)

> 
> ---------------------------------------------
> Etes vous un consom'Acteur ? Toutes les saveurs ?quitables sont sur http://www.epicerie-equitable.com
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 

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

  reply	other threads:[~2005-07-07 13:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07 10:36 [Qemu-devel] fdisk give wrong number for losetup octane indice
2005-07-07 13:10 ` Jim C. Brown [this message]
2005-07-10 17:01   ` octane
2005-07-11  2:15     ` Henrik Nordstrom
2005-07-10  5:16 ` Henrik Nordstrom

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=20050707131054.GA5461@jbrown.mylinuxbox.org \
    --to=jma5@umd.edu \
    --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 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.