Subject: Re: Boot problems after upgrade
To: Jochen Kunz <jkunz@maja.unixag-kl.fh-kl.de>
From: Oleg Sharoiko <os@rsu.ru>
List: port-prep
Date: 04/30/2003 15:10:01
On Wed, 30 Apr 2003, Jochen Kunz wrote:

JK>> Any help will be greatly appreciated.
JK>Depending on your partition / disk slice layout you may have overwritten
JK>your root file system with the kernel. => Reinstall system.
Fortunately this is not my case.
After booting with sysinst_com0 I could easyly mount my / (and all other fs)
and restore previous boot pratition.

JK>My prefered method is to mahe a PReP boot MBR partition at the beginning
JK>of the disk (2 to 3 MB) and the BSD MBR partition at the rest. Then
JK>writing the boot-image to /dev/rsd0c, (c == whole disk, d == BSD MBR
JK>partition of the disk) and reinstall MBR partitioning with fdisk and
JK>then the disklabel.
Here is my layout (it's a little bit different but it worked fine before this
upgrade)

ultra, /home/os # fdisk
Disk: /dev/rsd0c
NetBSD disklabel disk geometry:
cylinders: 6703 heads: 5 sectors/track: 126 (630 sectors/cylinder)

BIOS disk geometry:
cylinders: 6703 heads: 5 sectors/track: 126 (630 sectors/cylinder)

Partition table:
0: sysid 65 (Linux/MINIX (sharing disk with DRDOS) or Personal RISC boot)
    start 2, size 15118 (7 MB), flag 0x80
        beg: cylinder    0, head   0, sector  3
        end: cylinder   23, head   4, sector 62
1: sysid 169 (NetBSD)
    start 15120, size 4211605 (2056 MB), flag 0x0
        beg: cylinder   24, head   0, sector  1
        end: cylinder  558, head   4, sector 62
2: <UNUSED>
3: <UNUSED>

ultra, /home/os # disklabel sd0
[skip]
7 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:    131072     15120     4.2BSD      0     0     0   # (Cyl.   24 - 232*)
 b:    524288    146192       swap                      # (Cyl.  232*- 1064*)
 c:   4211605     15120     unused      0     0         # (Cyl.   24 - 6709*)
 d:     15118         2       boot                      # (Cyl.    0*- 23)
 e:    524288    670480     4.2BSD      0     0     0   # (Cyl. 1064*- 1896*)
 f:    262144   1194768     4.2BSD      0     0     0   # (Cyl. 1896*- 2312*)
 g:   2769813   1456912     4.2BSD      0     0     0   # (Cyl. 2312*- 6709*)

-- 
Oleg Sharoiko.
Software and Network Engineer
Computer Center of Rostov State University.