RajSanpui
RajSanpui

Reputation: 12064

Need libc APIs to access disk geometry and partitioning related info

I am working on a new project, which relates to creating drive images for backup.

As a part of it, i need to write code which can give much useful information related to disk geometry - cylinders, no. of sectors, partitions, and file systems and even drive specific info, like which partition is present on which drive. i need some APIs.

If you can post a code too in addition to APIs that will be great.

P.S: Something similar to what Novell - Zenworks (Imaging) does

Upvotes: 0

Views: 560

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798646

There is no glibc facility for that. Use libblkid.

Upvotes: 3

Related Questions