Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Re: Partition Table in the First sector of the disk

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Sorry in my earlier mail I didn't put the right subject..

Thanx Sajeev for the help. I think the Author could be Mark Minaso coz this
guy has written some books on NT server. Well I tried to find the book
suggested by you but in vain. Can you get me more information about the
book, like where can I get it..
Thanx,
-GM

-----Original Message-----
From: Sajeev.S [mailto:[email protected]]
Sent: Thursday, April 06, 2000 11:11 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to read/write arbitrary io port and memroy ad
dress in 98/NT?


There is something called Extended Partition Table, and I hope it contains
the logical drive info. Look in "Hard Disk Survival guide" by Mark Minasi.
(hope the name of the book is correct)

HTH,
Sajeev.

> -----Original Message-----
> From: GEORGE MATHEW [SMTP:[email protected]]
> Sent: Thursday, April 06, 2000 9:20 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
> ad dress in 98/NT?
>
> Hello Friends, This is an addendum my first mail " How to create Extended
> partition".
> The first sector of the disk contain the Parttion table (Offset 01BE h )
> onwards and has 64 bytes space for the four Primary
> partition entry out of which one can be Extended partion containing as
> many
> as drive letter limit allows number of logical drive. My question where is
> the information of these logical drives is present. Because each logical
> drive require all the fields that are present in a primary partition and
> there is no space for the partition table in the first sector itself. So
> where is the partition information of the logical drive(These are the
> logical partitions within the extended parttion).
> Thanx
> -GM
>
> Nb. For those who are confused with the terms, primary partition, extended
> partition and logical drives please look in the "Logical Organization:
> Partitions and Volumes
> " in the MSDN.
>
> -----Original Message-----
> From: Maxim S. Shatskih [mailto:[email protected]]
> Sent: Thursday, April 06, 2000 1:51 AM
> To: NT Developers Interest List
> Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
> address in 98/NT?
>
>
> > How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?
>
> READ_PORT_UCHAR
>
> > How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
> > Thanks.
>
> Try MmMapIoSpace. Maybe this will help.
>
> Max
>
>
> ---
> You are currently subscribed to ntdev as: [email protected]
> To unsubscribe send a blank email to $subst('Email.Unsub')
>
> ---
> You are currently subscribed to ntdev as: [email protected]
> To unsubscribe send a blank email to $subst('Email.Unsub')

---
You are currently subscribed to ntdev as: [email protected]
To unsubscribe send a blank email to $subst('Email.Unsub')

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Book's name is Hard Disk Survival Guide, from Sybex. (1991)

    See the foll. link for details.
    http://www.amazon.com/exec/obidos/ASIN/0895887991/qid=955095694/sr=1-30/103-
    6081064-7367047


    Seems to be out of print now.

    HTH
    Sajeev.

    -----Original Message-----
    From: GEORGE MATHEW [SMTP:[email protected]]
    Sent: Friday, April 07, 2000 1:20 PM
    To: NT Developers Interest List
    Subject: [ntdev] Re: Partition Table in the First sector of
    the disk

    Sorry in my earlier mail I didn't put the right subject..

    Thanx Sajeev for the help. I think the Author could be Mark Minaso
    coz this
    guy has written some books on NT server. Well I tried to find the
    book
    suggested by you but in vain. Can you get me more information about
    the
    book, like where can I get it..
    Thanx,
    -GM

    -----Original Message-----
    From: Sajeev.S [mailto:[email protected]]
    Sent: Thursday, April 06, 2000 11:11 PM
    To: NT Developers Interest List
    Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    ad
    dress in 98/NT?


    There is something called Extended Partition Table, and I hope it
    contains
    the logical drive info. Look in "Hard Disk Survival guide" by Mark
    Minasi.
    (hope the name of the book is correct)

    HTH,
    Sajeev.

    > -----Original Message-----
    > From: GEORGE MATHEW [SMTP:[email protected]]
    > Sent: Thursday, April 06, 2000 9:20 PM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: How to read/write arbitrary io port and
    memroy
    > ad dress in 98/NT?
    >
    > Hello Friends, This is an addendum my first mail " How to create
    Extended
    > partition".
    > The first sector of the disk contain the Parttion table (Offset
    01BE h )
    > onwards and has 64 bytes space for the four Primary
    > partition entry out of which one can be Extended partion
    containing as
    > many
    > as drive letter limit allows number of logical drive. My question
    where is
    > the information of these logical drives is present. Because each
    logical
    > drive require all the fields that are present in a primary
    partition and
    > there is no space for the partition table in the first sector
    itself. So
    > where is the partition information of the logical drive(These are
    the
    > logical partitions within the extended parttion).
    > Thanx
    > -GM
    >
    > Nb. For those who are confused with the terms, primary partition,
    extended
    > partition and logical drives please look in the "Logical
    Organization:
    > Partitions and Volumes
    > " in the MSDN.
    >
    > -----Original Message-----
    > From: Maxim S. Shatskih [mailto:[email protected]]
    > Sent: Thursday, April 06, 2000 1:51 AM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: How to read/write arbitrary io port and
    memroy
    > address in 98/NT?
    >
    >
    > > How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?
    >
    > READ_PORT_UCHAR
    >
    > > How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
    > > Thanks.
    >
    > Try MmMapIoSpace. Maybe this will help.
    >
    > Max
    >
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to
    $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to
    $subst('Email.Unsub')

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Extended partitons are nothing more than a partition table inside of a
    partition.

    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]]On Behalf Of GEORGE MATHEW
    > Sent: Friday, April 07, 2000 12:50 AM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: Partition Table in the First sector of the disk
    >
    >
    > Sorry in my earlier mail I didn't put the right subject..
    >
    > Thanx Sajeev for the help. I think the Author could be Mark
    > Minaso coz this
    > guy has written some books on NT server. Well I tried to find the book
    > suggested by you but in vain. Can you get me more information about the
    > book, like where can I get it..
    > Thanx,
    > -GM
    >
    > -----Original Message-----
    > From: Sajeev.S [mailto:[email protected]]
    > Sent: Thursday, April 06, 2000 11:11 PM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy ad
    > dress in 98/NT?
    >
    >
    > There is something called Extended Partition Table, and I hope it contains
    > the logical drive info. Look in "Hard Disk Survival guide" by Mark Minasi.
    > (hope the name of the book is correct)
    >
    > HTH,
    > Sajeev.
    >
    > > -----Original Message-----
    > > From: GEORGE MATHEW [SMTP:[email protected]]
    > > Sent: Thursday, April 06, 2000 9:20 PM
    > > To: NT Developers Interest List
    > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    > > ad dress in 98/NT?
    > >
    > > Hello Friends, This is an addendum my first mail " How to
    > create Extended
    > > partition".
    > > The first sector of the disk contain the Parttion table (Offset 01BE h )
    > > onwards and has 64 bytes space for the four Primary
    > > partition entry out of which one can be Extended partion containing as
    > > many
    > > as drive letter limit allows number of logical drive. My
    > question where is
    > > the information of these logical drives is present. Because each logical
    > > drive require all the fields that are present in a primary partition and
    > > there is no space for the partition table in the first sector itself. So
    > > where is the partition information of the logical drive(These are the
    > > logical partitions within the extended parttion).
    > > Thanx
    > > -GM
    > >
    > > Nb. For those who are confused with the terms, primary
    > partition, extended
    > > partition and logical drives please look in the "Logical Organization:
    > > Partitions and Volumes
    > > " in the MSDN.
    > >
    > > -----Original Message-----
    > > From: Maxim S. Shatskih [mailto:[email protected]]
    > > Sent: Thursday, April 06, 2000 1:51 AM
    > > To: NT Developers Interest List
    > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    > > address in 98/NT?
    > >
    > >
    > > > How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?
    > >
    > > READ_PORT_UCHAR
    > >
    > > > How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
    > > > Thanks.
    > >
    > > Try MmMapIoSpace. Maybe this will help.
    > >
    > > Max
    > >
    > >
    > > ---
    > > You are currently subscribed to ntdev as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > >
    > > ---
    > > You are currently subscribed to ntdev as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Yes I agree with you. But I want to know where this table is kept in the
    disk. I mean at which offset. I know how to read and where to read because I
    can start off from the location of primary partition i.e from predetermined
    offset from the beginning of the sector, as follows:
    ? Partition 1 0x01BE (446)
    ? Partition 2 0x01CE (462)
    ? Partition 3 0x01DE (478)
    ? Partition 4 0x01EE (494)
    One of these may contain partition info of an extended partition but it's
    not the true information because it will have an offset to the next logical
    drive. Now my problem is what to write in the offset part of the partition
    information when I am creating a new extended partition.
    -GM

    -----Original Message-----
    From: Jamey Kirby [mailto:[email protected]]
    Sent: Friday, April 07, 2000 10:18 PM
    To: NT Developers Interest List
    Subject: [ntdev] Re: Partition Table in the First sector of the disk


    Extended partitons are nothing more than a partition table inside of a
    partition.

    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]]On Behalf Of GEORGE MATHEW
    > Sent: Friday, April 07, 2000 12:50 AM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: Partition Table in the First sector of the disk
    >
    >
    > Sorry in my earlier mail I didn't put the right subject..
    >
    > Thanx Sajeev for the help. I think the Author could be Mark
    > Minaso coz this
    > guy has written some books on NT server. Well I tried to find the book
    > suggested by you but in vain. Can you get me more information about the
    > book, like where can I get it..
    > Thanx,
    > -GM
    >
    > -----Original Message-----
    > From: Sajeev.S [mailto:[email protected]]
    > Sent: Thursday, April 06, 2000 11:11 PM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy ad
    > dress in 98/NT?
    >
    >
    > There is something called Extended Partition Table, and I hope it contains
    > the logical drive info. Look in "Hard Disk Survival guide" by Mark Minasi.
    > (hope the name of the book is correct)
    >
    > HTH,
    > Sajeev.
    >
    > > -----Original Message-----
    > > From: GEORGE MATHEW [SMTP:[email protected]]
    > > Sent: Thursday, April 06, 2000 9:20 PM
    > > To: NT Developers Interest List
    > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    > > ad dress in 98/NT?
    > >
    > > Hello Friends, This is an addendum my first mail " How to
    > create Extended
    > > partition".
    > > The first sector of the disk contain the Parttion table (Offset 01BE h )
    > > onwards and has 64 bytes space for the four Primary
    > > partition entry out of which one can be Extended partion containing as
    > > many
    > > as drive letter limit allows number of logical drive. My
    > question where is
    > > the information of these logical drives is present. Because each logical
    > > drive require all the fields that are present in a primary partition and
    > > there is no space for the partition table in the first sector itself. So
    > > where is the partition information of the logical drive(These are the
    > > logical partitions within the extended parttion).
    > > Thanx
    > > -GM
    > >
    > > Nb. For those who are confused with the terms, primary
    > partition, extended
    > > partition and logical drives please look in the "Logical Organization:
    > > Partitions and Volumes
    > > " in the MSDN.
    > >
    > > -----Original Message-----
    > > From: Maxim S. Shatskih [mailto:[email protected]]
    > > Sent: Thursday, April 06, 2000 1:51 AM
    > > To: NT Developers Interest List
    > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    > > address in 98/NT?
    > >
    > >
    > > > How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?
    > >
    > > READ_PORT_UCHAR
    > >
    > > > How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
    > > > Thanks.
    > >
    > > Try MmMapIoSpace. Maybe this will help.
    > >
    > > Max
    > >
    > >
    > > ---
    > > You are currently subscribed to ntdev as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > >
    > > ---
    > > You are currently subscribed to ntdev as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    >


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    The offset into the partiton that holds the extended partitions. Think of
    the partiton as a physical disk (kina).

    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]sts.osr.com]On Behalf Of GEORGE MATHEW
    > Sent: Friday, April 07, 2000 8:41 PM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: Partition Table in the First sector of the disk
    >
    >
    > Yes I agree with you. But I want to know where this table is kept in the
    > disk. I mean at which offset. I know how to read and where to
    > read because I
    > can start off from the location of primary partition i.e from
    > predetermined
    > offset from the beginning of the sector, as follows:
    > ? Partition 1 0x01BE (446)
    > ? Partition 2 0x01CE (462)
    > ? Partition 3 0x01DE (478)
    > ? Partition 4 0x01EE (494)
    > One of these may contain partition info of an extended partition but it's
    > not the true information because it will have an offset to the
    > next logical
    > drive. Now my problem is what to write in the offset part of the partition
    > information when I am creating a new extended partition.
    > -GM
    >
    > -----Original Message-----
    > From: Jamey Kirby [mailto:[email protected]]
    > Sent: Friday, April 07, 2000 10:18 PM
    > To: NT Developers Interest List
    > Subject: [ntdev] Re: Partition Table in the First sector of the disk
    >
    >
    > Extended partitons are nothing more than a partition table inside of a
    > partition.
    >
    > > -----Original Message-----
    > > From: [email protected]
    > > [mailto:[email protected]]On Behalf Of GEORGE MATHEW
    > > Sent: Friday, April 07, 2000 12:50 AM
    > > To: NT Developers Interest List
    > > Subject: [ntdev] Re: Partition Table in the First sector of the disk
    > >
    > >
    > > Sorry in my earlier mail I didn't put the right subject..
    > >
    > > Thanx Sajeev for the help. I think the Author could be Mark
    > > Minaso coz this
    > > guy has written some books on NT server. Well I tried to find the book
    > > suggested by you but in vain. Can you get me more information about the
    > > book, like where can I get it..
    > > Thanx,
    > > -GM
    > >
    > > -----Original Message-----
    > > From: Sajeev.S [mailto:[email protected]]
    > > Sent: Thursday, April 06, 2000 11:11 PM
    > > To: NT Developers Interest List
    > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy ad
    > > dress in 98/NT?
    > >
    > >
    > > There is something called Extended Partition Table, and I hope
    > it contains
    > > the logical drive info. Look in "Hard Disk Survival guide" by
    > Mark Minasi.
    > > (hope the name of the book is correct)
    > >
    > > HTH,
    > > Sajeev.
    > >
    > > > -----Original Message-----
    > > > From: GEORGE MATHEW [SMTP:[email protected]]
    > > > Sent: Thursday, April 06, 2000 9:20 PM
    > > > To: NT Developers Interest List
    > > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    > > > ad dress in 98/NT?
    > > >
    > > > Hello Friends, This is an addendum my first mail " How to
    > > create Extended
    > > > partition".
    > > > The first sector of the disk contain the Parttion table
    > (Offset 01BE h )
    > > > onwards and has 64 bytes space for the four Primary
    > > > partition entry out of which one can be Extended partion containing as
    > > > many
    > > > as drive letter limit allows number of logical drive. My
    > > question where is
    > > > the information of these logical drives is present. Because
    > each logical
    > > > drive require all the fields that are present in a primary
    > partition and
    > > > there is no space for the partition table in the first sector
    > itself. So
    > > > where is the partition information of the logical drive(These are the
    > > > logical partitions within the extended parttion).
    > > > Thanx
    > > > -GM
    > > >
    > > > Nb. For those who are confused with the terms, primary
    > > partition, extended
    > > > partition and logical drives please look in the "Logical Organization:
    > > > Partitions and Volumes
    > > > " in the MSDN.
    > > >
    > > > -----Original Message-----
    > > > From: Maxim S. Shatskih [mailto:[email protected]]
    > > > Sent: Thursday, April 06, 2000 1:51 AM
    > > > To: NT Developers Interest List
    > > > Subject: [ntdev] Re: How to read/write arbitrary io port and memroy
    > > > address in 98/NT?
    > > >
    > > >
    > > > > How to read/write arbitrary (0 - 0xFFFF) io port in 98/NT?
    > > >
    > > > READ_PORT_UCHAR
    > > >
    > > > > How to read/write arbitrary (0 - 4G) physical memroy in 98/NT?
    > > > > Thanks.
    > > >
    > > > Try MmMapIoSpace. Maybe this will help.
    > > >
    > > > Max
    > > >
    > > >
    > > > ---
    > > > You are currently subscribed to ntdev as: [email protected]
    > > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > > >
    > > > ---
    > > > You are currently subscribed to ntdev as: [email protected]
    > > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > >
    > > ---
    > > You are currently subscribed to ntdev as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > >
    > > ---
    > > You are currently subscribed to ntdev as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > >
    > >
    >
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > Yes I agree with you. But I want to know where this table is kept in the
    > disk. I mean at which offset. I know how to read and where to read because

    Extended partition table is kept usually in the first sector of the extended
    partition. The extended partition can be found using a primary partition
    table.

    Max
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 24 January 2022 Live, Online
Internals & Software Drivers 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online
Developing Minifilters 23 May 2022 Live, Online