From owner-freebsd-questions Thu Aug 17 05:11:34 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id FAA06648 for questions-outgoing; Thu, 17 Aug 1995 05:11:34 -0700 Received: from cc.jyu.fi (cc.jyu.fi [130.234.1.3]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id FAA06641 for ; Thu, 17 Aug 1995 05:11:32 -0700 Received: from [130.234.41.39] (zaphod.maccc.jyu.fi) by cc.jyu.fi with SMTP id AA24675 (5.67a/IDA-1.4.4 for freebsd-questions@freebsd.org); Thu, 17 Aug 1995 15:14:18 +0300 X-Sender: kallio@pop.jyu.fi Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 17 Aug 1995 15:15:23 +0300 To: John Capo From: kallio@jyu.fi (Seppo Kallio) Subject: Re: ** How to add second SCSI disk ? ** Cc: freebsd-questions@freebsd.org Sender: questions-owner@freebsd.org Precedence: bulk >Trivial as long as you understand that fdisk is broken. Here some instructions how to do this trivial thing (add one more disk using DOS fdisk, FreeBSD fdisk, disklabel -e): 1. As long as the FreeBSD fdisk does not find correct geometry of SCSI disks make in DOS a whole disk size partition (if possible) into the disk 2. Start FreeBSD and # fdisk -i /dev/sd1 # Assuming your disk is at address 1 in SCSI bus ******* Working on device /dev/sd1 ******* parameters extracted from in-core disklabel are: cylinders=1923 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=1923 heads=64 sectors/track=32 (2048 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] n Answear n, this should be no correct if you did some partition in DOS. 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 165856 (80 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 80/ sector 32/ head 63 Do you want to change it? [n] I do not know about the warning ... But everything should be now OK. Answear y, you have to correct the sysid it is 165 for FreeBSD And you will get: Supply a decimal value for "sysid" [0] 165 Supply a decimal value for "start" [0] 32 Supply a decimal value for "size" [0] 165856 Explicitly specifiy beg/end address ? [n] n sysid 165,(FreeBSD/NetBSD/386BSD) start 32, size 165856 (80 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 80/ sector 32/ head 63 Are we happy with this entry? [n] y Now it is correct, partition 1-3 are unused The data for partition 1 is: Do you want to change it? [n] n The data for partition 2 is: Do you want to change it? [n] n The data for partition 3 is: Do you want to change it? [n] n Do you want to change the active partition? [n] n We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=1923 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=1923 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 0: sysid 165,(FreeBSD/NetBSD/386BSD) start 32, size 165856 (80 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 80/ sector 32/ head 63 1: 2: 3: Should we write new partition table? [n] y Now everything sould be correct. Answear y. I am getting ioctl DIOCWLABEL: Operation not supported by device But it seems that the partition is correct. 2. Start disklabel -e /dev/sd1 Yu will get this kind of screen: # /dev/sd1: type: unknown disk: label: koe flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 1923 sectors/unit: 167301 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: 167301 0 unused 0 0 # (Cyl. 0 - 81*) Thats it. What then? I cannot go forward Seppo -- +-- Seppo Kallio ----- kallio@jyu.fi ---+ ! Computing Center ! Fax +358-41-603611 Phone +358-41-603606 ! ! University of Jyvaskyla ! http://www.jyu.fi/~kallio ! +-- Finland --+-- 62.14N 25.44E -- +