Date: Mon, 25 Mar 1996 03:03:35 +1100 From: Bruce Evans <bde@zeta.org.au> To: andreas@knobel.gun.de, jkh@freebsd.org Cc: hackers@freebsd.org Subject: Re: [was/is: adding 2nd disk] little changes to sysinstall/Makefile Message-ID: <199603241603.DAA23005@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Another thing is, I had to manually change the disk geometry
>to 255/63 scheme. My first disk is so large (4GB) so that
>64/32 head/sector mapping isn't sufficiant.
>If I don't change the geometry to 131/255/63, then the
>SCSI hostadapter BIOS complaints about it, that a drive
>with another geometry then the default boot disk was found.
>This prevents further booting, you have to press return,
>so ... it's deadly required, to change the geometry manually
>this time ...
Which SCSI hostadaptor? Put in the list of discrecommended
ones :-). ZI have the following which handle mixed geometries
properly:
bt445c
sc200
>fnew|newfujitsu|Fujitsu M2694ES-512 1.05GB:\
> :dt=SCSI:\
> :ty=winchester:\
> :se#512:nt#255:ns#63:nc#131:rm#5400:\
> :pa#1907844:oa#196608:ba#8192:fa#1024:ta=4.2BSD:\
> :pb#196608:ob#0:tb=swap: \
> :pc#2104452:oc#0:\
> :pd#2104452:od#63:
>What makes me wonder is, that disklabel complains, if you
>choose the total sector size for the ":pc#" entry, which
>- - in theory - should reflect the total sector size of the
>disk.
Partition C should have the same size as the logical drive (i.e., the
slice).
The drive should also have the same size as itself :-). You've made the
drive size (#su) default to 255*63*131 = 2104515 = perhaps 63 too
large. It must be getting silently truncated to 2104452 to work, or
perhaps the drive really has at least (number of sectors before this
slice) + 2104515 sectors.
Partition D hasn't been special since 2.0 and shouldn't overlap the
swap.
The swap partition shouldn't be started at offset 0. That's where the
bootblocks go.
>And for all of you who said "buh baeh", disklabel is outdated stuff,
>when I tried to help the user, who first asked ... HOW do YOU get
>a perfect disklabel for a 2nd disk, without using a proper disktab
>entry ???? Which hacked up -current are you using ?! :-((
disklabel /dev/rsd1 >/tmp/foo
$EDITOR /tmp/foo # adjust sizes from disk size to slice size if different
# fix rpm and interleave fields
# fill in informational fields (optional)
disklabel -R -r sd1 /tmp/foo
^note: no "/dev/r"
E.g.: original:
---
# /dev/rsd1:
type: unknown
disk:
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 523
sectors/unit: 8410200
rpm: 0
interleave: 0
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 8410200 0 unused 0 0 # (Cyl. 0 - 523*)
---
After deviding the disk into 4 1GB FreeBSD slices, I edited the above
to this for the first slice:
---
# /dev/rsd1c:
type: SCSI
disk: XP34301 102C
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 130
sectors/unit: 2104452
rpm: 7200
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 1024 8192 16 # (Cyl. 0 - 4*)
b: 131072 65536 swap # (Cyl. 4*- 12*)
c: 2104452 0 unused 0 0 # (Cyl. 0 - 130*)
h: 1907844 196608 4.2BSD 1024 8192 16 # (Cyl. 12*- 130*)
---
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603241603.DAA23005>
