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

Home NTFSD
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

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/


Identifying raw partition on NT

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hi,
We need to identify raw partitions on NT m/c from user application.
Currently we are using IOCTL_DISK_GET_PARTITION_INFO and when we get type
0X06, we treat that partition as raw.This seems to fail when we have done
some activity on that partition.


Thanx,
pash

Comments

  • We had also tried to use the IOCTL_DISK_GET_PARTITION_INFO api,
    but found it broken. (u hav to filter out the valid partitions.
    again their is no way of differentiating a primary partition or a logical
    drive)

    So we finally directly read the raw partition from the harddisk (by reading
    the first sector of hard disk and extended partitions)


    Warm regards
    Jeseem
    mailto:[email protected]

    *************************************************************
    The truest form of enlightenment is not in knowing that there
    are things you don't know, but in realizing that there are things
    you don't even know that you don't know...
    *************************************************************



    -----Original Message-----
    From: Pashupati Kumar [mailto:[email protected]]
    Sent: Wednesday, April 05, 2000 6:07 PM
    To: File Systems Developers
    Subject: [ntfsd] Identifying raw partition on NT


    Hi,
    We need to identify raw partitions on NT m/c from user application.
    Currently we are using IOCTL_DISK_GET_PARTITION_INFO and when we get type
    0X06, we treat that partition as raw.This seems to fail when we have done
    some activity on that partition.


    Thanx,
    pash
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    6 is FAT; isn't it?

    What do youmean by RAW?

    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]]On Behalf Of Pashupati Kumar
    > Sent: Wednesday, April 05, 2000 5:37 AM
    > To: File Systems Developers
    > Subject: [ntfsd] Identifying raw partition on NT
    >
    >
    > Hi,
    > We need to identify raw partitions on NT m/c from user application.
    > Currently we are using IOCTL_DISK_GET_PARTITION_INFO and when we get type
    > 0X06, we treat that partition as raw.This seems to fail when we have done
    > some activity on that partition.
    >
    >
    > Thanx,
    > pash
    >
    >
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    hi,

    Please Read the boot sector and look for Valid FILESYSTEM_MAGIC.
    It should guarantee correct detection.

    --nsq++

    ----- Original Message -----
    From: Pashupati Kumar <[email protected]>
    To: File Systems Developers <[email protected]>
    Sent: Wednesday, April 05, 2000 6:07 PM
    Subject: [ntfsd] Identifying raw partition on NT


    > Hi,
    > We need to identify raw partitions on NT m/c from user application.
    > Currently we are using IOCTL_DISK_GET_PARTITION_INFO and when we get type
    > 0X06, we treat that partition as raw.This seems to fail when we have done
    > some activity on that partition.
    >
    >
    > Thanx,
    > pash
    >
    >
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    1.0X06 is type MSDOS v6(or BigDos FAT 16 in resource kit). Its defined as
    type PARTITION_HUGE in winioctl.h & ddk.

    2.Raw partitions are those partition which are not formatted with any file
    system.I understand there is some filesystem called RawFs which takes care
    of raw partition( i got this listing when i print the driver stack for this
    partition)

    3.Reading from Boot sector is not a exhaustive test(OEM ID).Because of IFS,
    a partition can have a file system which we didn't check for.

    thanx
    pash




    > 6 is FAT; isn't it?
    >
    > What do youmean by RAW?
    >
    > > -----Original Message-----
    > > From: [email protected]
    > > [mailto:[email protected]]On Behalf Of Pashupati Kumar
    > > Sent: Wednesday, April 05, 2000 5:37 AM
    > > To: File Systems Developers
    > > Subject: [ntfsd] Identifying raw partition on NT
    > >
    > >
    > > Hi,
    > > We need to identify raw partitions on NT m/c from user application.
    > > Currently we are using IOCTL_DISK_GET_PARTITION_INFO and when we get
    type
    > > 0X06, we treat that partition as raw.This seems to fail when we have
    done
    > > some activity on that partition.
    > >
    > >
    > > Thanx,
    > > pash
    > >
    > >
    > >
    > >
    > > ---
    > > You are currently subscribed to ntfsd as: [email protected]
    > > To unsubscribe send a blank email to $subst('Email.Unsub')
    > >
    > >
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE