[1460] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: BT-956C + mutating partition table? (2.0.25)

daemon@ATHENA.MIT.EDU (Andries Brouwer)
Mon Feb 24 06:24:59 1997

From: Andries.Brouwer@cwi.nl (Andries Brouwer)
Date: 	Mon, 24 Feb 1997 11:04:17 GMT
Apparently-To: linux-dev-scsi@info2.nic.surfnet.nl
To: ;@unlisted-recipients (no To-header on input)

"Peter T. Breuer" <ptb@it.uc3m.es> writes:

: Can someone tell me why some "Begin" entries in this SCSI fdisk
: table _seem_ to have mutated to 1024? I am almost sure they didn't start
: life that way.

:    Device    Boot   Begin    Start      End   Blocks   Id  System
:    /dev/sda1   *        1        1      100   102384    6  DOS 16-bit >=32M
:    /dev/sda2          152      152      184    33792   83  Linux native
:    /dev/sda3          185      185      217    33792   83  Linux native
:    /dev/sda4          218      218     4095  3971072    5  Extended
:    /dev/sda5          218      218      282    66544   83  Linux native
:    /dev/sda6          283      283      347    66544   83  Linux native
:    /dev/sda7          348      348      604   263152   83  Linux native
:    /dev/sda8          605      605     1117   525296   83  Linux native
:    /dev/sda9         1024     1118     1246   132080   83  Linux native
:    /dev/sda10        1024     1247     1311    66544   83  Linux native
:    /dev/sda11        1024     1312     1440   132080   82  Linux swap
:    /dev/sda12        1024     1441     2763  1354736   83  Linux native
:    /dev/sda13        2048     2764     4095  1363952   83  Linux native

If they changed, it doesn't matter. Begin is a 10-bit field
and cannot hold values of 1024 or higher.
This silly fdisk you are using prefers to store (start % 1024) there,
and conversely prints not the value of begin, but begin+1024*(start/1024).
Everybody else stores min(start, 1023) there.
The value that is stored is not used by Linux.

home help back first fref pref prev next nref lref last post