Subject: install/9182: NetBSD 1.4.1/i386 install corrupts end boundary of partitions in MBR
To: None <gnats-bugs@gnats.netbsd.org>
From: None <paluch@Terezka.ufa.cas.cz>
List: netbsd-bugs
Date: 01/13/2000 03:39:54
>Number:         9182
>Category:       install
>Synopsis:       NetBSD 1.4.1/i386 install corrupts end boundary of partitions in MBR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 13 03:39:00 2000
>Last-Modified:
>Originator:     Henryk Paluch
>Organization:
Czech Academy of Sciences
>Release:        1.4.1
>Environment:
1.4.1/i368 (sorry no uname at this time)
>Description:
C/H/S=1023/64/63, 2GB, IDE, Quantum Fireball, Award BIOS

Correct partition table - prior NetBSD 1.4.1/i386 installation:
+------+----+--------------------+--------------------+-----------+-----------+
|      |    | Starting Location  |  Ending Location   |  Relative | Number of |
|System|Boot|Side Cylinder Sector|Side Cylinder Sector|  Sectors  |  Sectors  |
+------+----+--------------------+--------------------+-----------+-----------+
|NetBSD| No |   0    768       1 |  63   1022      63 |    3096576|   1028160|
| ext2 | No |   1      0       1 |  63    703      63 |         63|   2838465|
| swap | No |   0    704       1 |  63    767      63 |    2838528|    258048|
|unused| No |   0      0       0 |   0      0       0 |          0|         0|
+------+----+--------------------+--------------------+-----------+-----------+


After NetBSD 1.4.1/i386 install - corrupted 'Ending Location' entries
(fortunately - the relative int32 values were not touched, so either
 Linux & NetBSD still works):
+------+----+--------------------+--------------------+-----------+-----------+
|      |    | Starting Location  |  Ending Location   |  Relative | Number of |
|System|Boot|Side Cylinder Sector|Side Cylinder Sector|  Sectors  |  Sectors  |
|NetBSD| No |   0    768       1 |   0   1023       1 |    3096576|   1028160|
| ext2 | No |   1      0       1 |   0    704       1 |         63|   2838465|
| swap | No |   0    704       1 |   0    768       1 |    2838528|    258048|
|unused| No |   0      0       0 |   0      0       0 |          0|         0|
+------+----+--------------------+--------------------+-----------+-----------+

After NetBSD installation Linux fdisk produces lot of warnings about
incorrect Ending boundary of partitions. Also PQMagic refuses to work
because partition corruption.

>How-To-Repeat:

Just install again and do partitioning from install
>Fix:

Changing ending boundaries back (using Norton Diskedit) solved
the problems...

>Audit-Trail:
>Unformatted: