Hi Seewer,
On Mon, Apr 14, 2008 at 2:57 PM, Seewer Philippe <philippe.seewer@bfh.ch> wrote:
Yes but I'm doing userspace stuff and that's the reason I was asking for the
sysfs thing.
Well, I looked at sfdisk(8) and parted(8) source code and they all need the
geometry description. If I understood correctly the reason why is that it
'prefers' to align partition sizes/starts on a cylinder boundary because some
bootloaders probably use CHS addressing, but I'm really not sure.
Thanks but I probably won't use it. Using sfdisk, for example, is a
more portable
way to get the geometry from a script.
--
Francis
--