posix , detect partition type

May 15, 2006 4 Replies

Hi Which posix function we can use to detect the partition type? thanks from Peter ( snipped-for-privacy@hotmail.com)



POSIX does not say anything about partitions or partition type.

Regards Manish Regmi

There is nothing for POSIX to do with partitions but you check this out, Migth be this is what you are actually looking for :

formatting link

Cheers, Sandeepksinha

whats wrong with plain old "fdisk -l" having read the available drives from dmsmg or proc ?

Well i think, he wants to use it inside the program. So, issuing something on a command line is totally a different issue. Well, it would be quite costly that way and quite comlex at the same time, involving output redirection and all those stuffs.

Cheers, Sandeepksinha.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required