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

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


\
 
 \ /
  Last update: 2008-04-17 16:13    [W:0.297 / U:0.736 seconds]
©2003-2014 Jasper Spaans. Advertise on this site