From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqWBg-0002If-2X for qemu-devel@nongnu.org; Thu, 07 Jul 2005 09:13:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DqWBd-0002Hg-MI for qemu-devel@nongnu.org; Thu, 07 Jul 2005 09:13:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqWBd-0002H7-C8 for qemu-devel@nongnu.org; Thu, 07 Jul 2005 09:13:05 -0400 Received: from [128.8.10.164] (helo=po2.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DqWG0-0003OM-Tv for qemu-devel@nongnu.org; Thu, 07 Jul 2005 09:17:37 -0400 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.237.180]) by po2.wam.umd.edu (8.12.10/8.12.10) with ESMTP id j67DAtBe029183 for ; Thu, 7 Jul 2005 09:10:55 -0400 (EDT) Date: Thu, 7 Jul 2005 09:10:54 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] fdisk give wrong number for losetup Message-ID: <20050707131054.GA5461@jbrown.mylinuxbox.org> References: <1120732568.42cd0598078bd@webmail.alinto.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1120732568.42cd0598078bd@webmail.alinto.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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.