linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Misha Alex" <misha_zant@hotmail.com>
To: linux-kernel@vger.kernel.org
Date: Fri, 16 Aug 2002 07:51:37 +0000	[thread overview]
raw)



Hi,
   1)How do convert C,H,S into bytes.
     How can one read in linux if we know the C,H,S.

      Also i tried the linear addressing linear = c*H*S + h*S +s -1 .But 
linear or linear*512 never gave me the exact byte offset to seek.

I am working in linux and using a hexeditor to seek .How many exact bytes 
should i seek to find out the extended partition.I read the MBR and found 
the exteneded partiton.
00 01 01 00 02 fe 3f 01 3f 00 00 00 43 7d 00 00
80 00 01 02 0b fe bf 7e 82 7d 00 00 3d 26 9c 00
00 00 81 7f 0f fe ff ff bf a3 9c 00 f1 49 c3 01
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


See the third column it is 0f(extended windows).The cylinder is 639(7f81 h)
and sector is 1 .I don't know where to exactly read for the next partiton.
The byte offset for finding out the next partitions.

If i open hda3(Mind you hda3 is an extended partition on hda) with a
hexeditor i get

00 01 81 7f 83 fe ff 7d 3f 00 00 00 00 82 3e 00
00 00 c1 7e 05 fe ff ff 3f 82 3e 00 7e 04 7d 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

.Now the first partition is of type 83 which is linux and the next
extended partition is of type 05(extended) and cylinder894 and sec1.



*************************************
How do i find the next chain of extended partitions.I mean how do i convert 
cylinder 894 ,sec1 and head 0 into absolute bytes so that i can hexdump the 
next partition table for finding out ?
************************************

Thank you,
Misha

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


             reply	other threads:[~2002-08-16  7:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-16  7:51 Misha Alex [this message]
2002-08-16  9:52 ` your mail Willy Tarreau

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=F159156pqkw3Wctbnyd0000b29b@hotmail.com \
    --to=misha_zant@hotmail.com \
    --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).