From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nanakos Chrysostomos" Subject: fdisk & LBA Date: Fri, 12 Aug 2005 22:29:13 +0300 (EEST) Message-ID: <47285.62.1.10.150.1123874953.squirrel@webmail.wired-net.gr> References: <42FB435E.2070607@effigent.net> Reply-To: nanakos@wired-net.gr Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-c-programming@vger.kernel.org Cc: linux-kernel@vger.kernel.org Hi all,i want to retrieve the partition table of a primary extended partition. My MBR partition table ,says that the LBA Partition Start sector for the extended partition is 10281600.It is the same that i find with my C code and through fdisk usage. How can i use this value to seek(lseek) to this point through the main block file (/dev/hda or /dev/hdb) and read the partition table of the logical partition? Thanks in advance.