Skip to contentSkip to conversation

How to read partition table

DISCUSSION Niraj Kumar 2 participants 2 messages Dec 22, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

Is there an ioctl command (or sys call) in the latest 2.6 kernel to read the complete partition table from user space?

Niraj

#1 lore raw
Quoted 3 lines · Niraj Kumar

Is there an ioctl command (or sys call) in the latest 2.6 kernel to read the complete partition table
from user space?

The syscall is called read().

If you want to see it done, look at partx in util-linux.