[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Retrieving disk geometry
- Subject: Retrieving disk geometry
- From: andrew at ugh.net.au (Andrew)
- Date: Mon Jun 2 07:22:23 2003
Hi,
Under FreeBSD 4.x the ioctl DIOCGDINFO could be used to retrieve the
number of cylinders, heads and sectors of a drive. This could be called on
/dev/ad0 for example. Under FreeBSD 5 it seems to produce "Inappropriate
ioctl for device" unless you call it on an individual partition
(/dev/ad0s1a for example).
Is there a way around this?
Thanks,
Andrew
Visit your host, monkey.org