linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nanakos Chrysostomos" <nanakos@wired-net.gr>
To: linux-c-programming@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: fdisk & LBA
Date: Fri, 12 Aug 2005 22:29:13 +0300 (EEST)	[thread overview]
Message-ID: <47285.62.1.10.150.1123874953.squirrel@webmail.wired-net.gr> (raw)
In-Reply-To: <Pine.LNX.4.61.0508110835480.14365@chaos.analogic.com>

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.


  reply	other threads:[~2005-08-12 19:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-11 12:23 __init() raja
2005-08-11 12:47 ` __init() linux-os (Dick Johnson)
2005-08-12 19:29   ` Nanakos Chrysostomos [this message]
2005-08-12 19:45     ` fdisk & LBA Lennart Sorensen
2005-08-12 20:48       ` Nanakos Chrysostomos
2005-08-12 21:11         ` Lennart Sorensen

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=47285.62.1.10.150.1123874953.squirrel@webmail.wired-net.gr \
    --to=nanakos@wired-net.gr \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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).