Hi,
is there any way to find the partition number and disk of a given
volume(partition). I want this on a system which runs either NT or 2K. On 2K
it is not a dynamic volume or Ft volume from NT. The volume is just a simple
partition or logical drive. Is there any way to get the information about
the offset of a volume(partition) on the disk.Any help is greatly
appreciated.
Thanks in advance,
Nagesh Bhattu
I found a way for this,
There is an IOCTL “IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS” available on
Windows 2000 which will retrieve this information. The SDK documentation
says that this is limited to windows XP and .NET server. But works fine on
all windows 2000 platforms.There is a tool on sysinternals.com which will
use this IOCTL to fetch this information
http://www.sysinternals.com/ntw2k/source/misc.shtml#diskext. It confirms
that though the SDK document says the availability of this IOCTL only in XP
and .NET server it works fine with all WIN2K platforms.
- Nagesh Bhattu
“Nagesh Bhattu” wrote in message
news:xxxxx@ntdev…
>
> Hi,
> is there any way to find the partition number and disk of a given
> volume(partition). I want this on a system which runs either NT or 2K. On
2K
> it is not a dynamic volume or Ft volume from NT. The volume is just a
simple
> partition or logical drive. Is there any way to get the information about
> the offset of a volume(partition) on the disk.Any help is greatly
> appreciated.
>
> Thanks in advance,
> Nagesh Bhattu
>
>
>
>
>Is there any way to get the information about the offset of a
volume(partition) on the disk
use the “IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS”, by passing the handle to the
volume of interest…it takes a strut of “volumediskextent”, which
interanlly takes “diskextent”, which gives u theofset fromt he starting of
the disk and also the disk no. in which it is found…
trust this helps uo ut.
regards,
Venkat Raghavulu A.R
Zensar Technologies. Ltd,
Fujitsu ODC,
4th Floor, The Orion,
5, Koregaon Park,
Pune - 411 001. India.
Ph: 020-4128161
The most wasted day of all is one in which you have not Laughed.
Subject: Partition information of a volume
From: “Nagesh Bhattu”
Date: Sun, 29 Sep 2002 15:24:56 +0530
X-Message-Number: 2
Hi,
is there any way to find the partition number and disk of a given
volume(partition). I want this on a system which runs either NT or 2K. On 2K
it is not a dynamic volume or Ft volume from NT. The volume is just a simple
partition or logical drive. Is there any way to get the information about
the offset of a volume(partition) on the disk.Any help is greatly
appreciated.
Thanks in advance,
Nagesh Bhattu
“
Zensar Technologies Ltd. Mail Disclaimer: This e-mail and any files
transmitted with it are confidential and the views expressed in the same are
not necessarily the views of Zensar Technologies Ltd., and its directors,
management or employees. This communication represents the originator’s
personal views and opinions. If you are not the intended recipient or the
person responsible for delivering the e-mail to the intended recipient, be
advised that you have received this e-mail by error, and that any use,
dissemination, forwarding, printing, or copying of this e-mail is strictly
prohibited. You shall be under obligation to keep the contents of this
e-mail, strictly confidential and shall not disclose, disseminate or divulge
the same to any Person, Company, Firm or Entity. Please ensure you have
adequate virus protection before you open or detach any documents from this
transmission. ZenSar Technologies Ltd. does not accept any liability for
viruses. If you received this e-mail in error, please immediately notify
xxxxx@zensar.com. The rights to monitor all e-mail communication
through our network are reserved with us.
”