[lkml]   [2008]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Disk geometry from /sys
    Hello Seewer,

    On Wed, Apr 16, 2008 at 9:49 AM, Seewer Philippe <> 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.


     \ /
      Last update: 2008-04-17 16:13    [W:0.019 / U:6.092 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site