summaryrefslogtreecommitdiffstats
path: root/docs/Partition-ends-after-end-of-disk.txt
blob: 3da57d56188368a4fdc597c8e5f65a89fdf48c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
        Cylinder/Head/Size Hell Is Not Over 

            pixel@mandrakesoft.com 
         $Date$


Nowadays, you can boot Linux without ever relying on CHS
(Cylinder/Head/Size):

- CHS information on partition table is obsolete and not used anymore.
It was causing the 1024th cylinder limitation:
  - disallowing partitions above 8GiG. Problem overcome using 28bits Linear
  Block Addressing (LBA) in partition table.
  - disallowing to boot on partition above 8GiG (due to int13 limitation used
  in bootloaders). Problem overcome using int13 extensions (EDD)

Logical CHS (Cylinder/Head/Size) and physical CHS are not related anymore.
Especially the size of a hard drive is not a multiple of the number of
Cylinders.


The problem is that many tools still rely somewhat heavily on CHS information.
- most tools adjust partitions on cylinder boundary
- some tools compute the size of the disk based on CHS (eg: fdisk)


Resulting problems in various tools:

- last partition not cylinder boundary adjusted, and overrun CHS computed size
  - fdisk
    > Total allocated sectors %d greater than the maximum %d
  - cfdisk (need confirmation)
    > FATAL ERROR: Bad primary partition %d: Partition ends after end-of-disk
    or
    > FATAL ERROR: Bad logical partition %d: Partition ends after end-of-disk
  - Partition Magic (version?)
    > Error #109: Partition ends after end of disk
  - Windows <= 98se, Windows Me
    (doesn't like it, what error message?)

  Tools handling it correctly:
  - parted and so diskdruid in RedHat >= 7.2 (or is it 7.x?)
  - diskdrake >= Mandrake 8.2
  - Windows XP (need confirmation)

  Tools using the full size of the disk, and so causing pbs with fdisk/cfdisk/...:
  - diskdrake == Mandrake 8.2

- disagreement between CHS and linear address
  - parted
    > "Warning: Unable to align partition properly.  This probably means that
    > another partitioning tool generated an
    > incorrect partition table, because it didn't have the correct BIOS
    > geometry.  It is safe to ignore,but
    > ignoring may cause (fixable) problems with some boot loaders.
    > Ignore Cancel ? C
  - lilo
    > Warning: Kernel & BIOS return differing head/sector geometries for device 0x80
    >     Kernel: 38792 cylinders, 16 heads, 63 sectors
    >       BIOS: 1023 cylinders, 255 heads, 63 sectors
    > Device 0x2100: Inconsistent partition table, 2nd entry
    >   CHS address in PT:  48:0:1  -->  LBA (771120)
    >   LBA address in PT:  48384  -->  CHS (3:3:1)
    > The partition table is *NOT* being adjusted.


* moved mkfs.xfsFrancois Pons2003-07-281-1/+1 * updated pot filePablo Saratxaga2003-07-252-787/+757 * removed ncompress (contrib)Frederic Lepied2003-07-241-1/+1 * Added Uzbek cyrillic filePablo Saratxaga2003-07-231-0/+18251 * updated pot filePablo Saratxaga2003-07-211-51/+117 * updated pot filePablo Saratxaga2003-07-141-138/+418 * changed "Country" . " / Region" to "Country / Region" and fixed Chinese po'sPablo Saratxaga2003-07-121-12/+7 * updated pot filePablo Saratxaga2003-07-101-95/+129 * updated pot filePablo Saratxaga2003-07-092-10998/+11474 * install netprofile on laptopsFrederic Lepied2003-07-081-0/+1 * iAdded various new keyboard layoutsPablo Saratxaga2003-07-011-0/+0 * Moved Bokmaal file to nb.poPablo Saratxaga2003-06-281-21449/+0 * Fixed typos; updated Ukrainian po filePablo Saratxaga2003-06-272-33/+33 * updated pot filePablo Saratxaga2003-06-272-498/+721 * use the mkswap commandPascal Rigaux2003-06-181-0/+1 * updated pot filePablo Saratxaga2003-06-162-458/+572 * change a bit how strings are passed to advertising systemGuillaume Cottenceau2003-06-1216-1252/+1632 * cookerGuillaume Cottenceau2003-06-061-0/+0 * updated Estonien, Japanese, Albanian and Vietnamese po filesPablo Saratxaga2003-06-033-3301/+3539 * UpdateArkadiusz Lipiec2003-06-021-195/+308 * updated Spanish translationsFabián Mandelbaum2003-06-021-154/+271 * changed the name of the russian phonetic layoutPablo Saratxaga2003-05-3147-6454/+11245 * updated Vietnamese filePablo Saratxaga2003-05-302-67/+68 * updated Albanian filePablo Saratxaga2003-05-281-5/+46 * updated pot filePablo Saratxaga2003-05-261-3/+43 * updated pot filePablo Saratxaga2003-05-222-75/+134 * updated pot filePablo Saratxaga2003-05-202-98/+147 * updated German, Estonian and Finnish filesPablo Saratxaga2003-05-203-1420/+1964 * update french translationThierry Vignaud2003-05-201-67/+54 * updated Spanish translationsFabián Mandelbaum2003-05-191-221/+176 * updated pot filePablo Saratxaga2003-05-16