bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convention of the internal partitioning format (0xff00ff, etc...)


From: Christoph Plattner
Subject: Convention of the internal partitioning format (0xff00ff, etc...)
Date: Thu, 22 Nov 2001 09:45:57 +0100

Hello GRUBers !

I have some problems with the partitioning sceme here of the
internal variables.

As far I have understood the following scheme is used.

        0x00xxyyFF;

xx = is a partition number in the x86 partition scheme
yy = is the slice and can be used inside a x86 partition
        (xx = 0,1,2,.., (hd,n,c)) or direct on disk (xx = 0xff,
        (hd,c)) [n = number, c = character].

What is the last 0xff for ?

What is the point that the MSB (byte) 0xff is written to disk, but
inside
the code the byte must be 0x00, otherwise code lines as

        part_nr = installed_partition >> 16

cannot work !!

Please give me a clarified hint here !

With friendly reagards
Christoph P.


-- 
  +--------V--------+   address@hidden
  |  A L C A T E L  |   -----------------------------
  +-----------------+   Phone: +43 1 27722 3706 
         T A S          Fax:   +43 1 27722 3955



reply via email to

[Prev in Thread] Current Thread [Next in Thread]