Re: Disk geometry from /sys
From: Francis Moreau
Date: Thu Apr 17 2008 - 10:09:25 EST
Hello Seewer,
On Wed, Apr 16, 2008 at 9:49 AM, Seewer Philippe <philippe.seewer@xxxxxx> wrote:
>
> Correct. Though be really careful which geometry you are requesting:
>
> root@local:/# sfdisk -g /dev/sda
> /dev/sda: 7296 cylinders, 255 heads, 63 sectors/track
> root@local:/# sfdisk -G /dev/sda
> /dev/sda: 116280 cylinders, 16 heads, 63 sectors/track
>
> The first one is the kernels idea of a disks geometry which is probably as
> often correct as it's just plain wrong,
Sorry but I don't understand, what do you mean ?
> versus the second one which tries to
> guess a disks geometry by looking at the current partition table. Which
> might be just as wrong since its only necessary for bios and/or bootloader.
But what happens if you want to guess the geometry of a disk with no
partition table ? You need to trust the kernel guess but from what I understood
it's just wrong.
thanks
--
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/