> hda: hda1
> hdb: hdb1 hdb2 < hdb5 hdb6 hdb7 >
>Using fdisk, partation table:
> Device boot Begin Start End Blocks Id System
>/dev/hdb1 1 1 254 512032 6 DOS 16-bit
>/dev/hdb2 255 255 1022 1548288 5 Extended
>/dev/hdb6 255 255 508 512032 83 Linux native
>/dev/hdb7 509 509 762 512032 83 Linux native
>/dev/hdb8 762 762 779 34240 82 Linux swap
>hdb6 = caldera linux
>hdb7 = redhat linux
>hdb8 = Linux swap
Evidently, something is messed up in the extended partition. Thus
partition 5 is missing, and the logical partitions are numbered
6,7,8. The partition numbering by 'fdisk' is inconsistent with that
by the kernel.
Quote:>Why don't they agree and is there a way to change the partition
No guarantees, but here is what I would try.
I would boot linux from floppy, so that no partition is mounted. Use
a rescue image, or a slackware boot/root floppy for this.
Then, I would run 'fdisk'. I would use 'u' to change the units to
sector (because this is more precise). I would very carefully write
down the start and end of every partition. Then I would delete
partitions hdb6, hdb7, hdb8. Next I would delete hdb2. Then I would
recreate hdb2 as extended. Then I would recreate hdb5, hdb6 and
hdb7, giving them the start/end locations that had been shown for
hdb6, hdb7, hdb8 respectively. Then I would do a 'p' to confirm that
things look right. Perhaps another 'u', and print them in CHS format
instead of sector format. Then a 'v' to verify that all is kosher.
Then a 'w' to save the changes.
There is a slight risk this will destroy data. Personally I would
take the risk, for the sake of consistency. If something goes wrong,
you would have to reinstall linux. It is unlikely you would*up
the DOS partition doing as above, although it does not hurt to take a
backup, just in case.