Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 1997 07:39:24 -0800 (PST)
From:      Ping Mai <ping@stepnet.com>
To:        dwhite@resnet.uoregon.edu
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FAQ Section 2.15...
Message-ID:  <199701151539.HAA05100@tibet.stepnet.com>
In-Reply-To: <Pine.BSI.3.94.970114163114.9790C-100000@localhost> from Doug White at "Jan 14, 97 04:31:44 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Doug!  Just what I need.

A related question.

I have a disk with 4 slices.  bsd is placed
on the 4th slice.  I maded it with
"disklabel -w -r -B sd0s4 auto".  I tried booteasy and
os-bs.  Neither can boot sd0s4.  os-bs keeps complaining
that ther's no operating system to boot from.  I even
tried copying the boot blocks from /usr/mdec/boot{1,2}.
Didn't make a diff.  The only way I can get into bsd
is copying the kernel to a dos disk and doing a
"fbsdboot -rD kernel".  What to do?  Please help?

fdisk and disklabel:

[114]ping@blue:~> fdisk sd0
******* Working on device /dev/rsd0 *******
parameters extracted from in-core disklabel are:
cylinders=2069 heads=64 sectors/track=32 (2048 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=2069 heads=64 sectors/track=32 (2048 blks/cyl)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 6,(Primary 'big' DOS (> 32MB))
    start 32, size 524256 (255 Meg), flag 80
        beg: cyl 0/ sector 1/ head 1;
        end: cyl 255/ sector 32/ head 63
The data for partition 1 is:
sysid 5,(Extended DOS)
    start 524288, size 524288 (256 Meg), flag 0
        beg: cyl 256/ sector 1/ head 0;
        end: cyl 511/ sector 32/ head 63
The data for partition 2 is:
sysid 7,(OS/2 HPFS, QNX or Advanced UNIX)
    start 1048576, size 1048576 (512 Meg), flag 0
        beg: cyl 512/ sector 1/ head 0;
        end: cyl 1023/ sector 32/ head 63
The data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 2097152, size 2140160 (1045 Meg), flag 0
        beg: cyl 1023/ sector 63/ head 255;
        end: cyl 1023/ sector 32/ head 63
[115]ping@blue:~> disklabel sd0s4
# /dev/rsd0s4c:
type: SCSI
disk: sd0s4
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1045
sectors/unit: 2140160
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:    65536        0    4.2BSD        0     0     0   # (Cyl.    0 - 31)
  b:   122880    65536      swap                        # (Cyl.   32 - 91)
  c:  2140160        0    unused        0     0         # (Cyl.    0 - 1044)
  e:    61440   188416    4.2BSD        0     0     0   # (Cyl.   92 - 121)
  f:  1890304   249856    4.2BSD        0     0     0   # (Cyl.  122 - 1044)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701151539.HAA05100>