Hi Sathya
I think you can try to locate Primary GPT in LBA1 through block
IO->Readblock and check for signature in the GPT header
Uefi Spec Section
5.3.2 GPT Header
Signature 0 8 Identifies EFI-compatible partition table
header. This value must contain the ASCII
string “EFI PART”, encoded as the 64-bit
constant 0x5452415020494645.
Thanks
Ranga
On Mon, Sep 30, 2013 at 10:58 PM, Prakash, Sathya <sathya.prak...@lsi.com>wrote:
> I am writing a shell tool to send some I/O to hard drives. I want to
> remove the OS installed drives from my list of drives to work on. I used
> to check legacy boot drives by reading the MBR and looking for boot
> partitions. I am not able to find a way to identify the GPT based UEFI OS
> installed disks. Any help is appreciated.****
>
> ** **
>
> Thanks****
>
> Sathya****
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel