From owner-freebsd-questions Wed Jan 7 04:23:07 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA20568 for questions-outgoing; Wed, 7 Jan 1998 04:23:07 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from ns1.sminter.com.ar (ns1.sminter.com.ar [200.10.100.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA20563 for ; Wed, 7 Jan 1998 04:23:00 -0800 (PST) (envelope-from fpscha@ns1.sminter.com.ar) Received: (from fpscha@localhost) by ns1.sminter.com.ar (8.8.5/8.8.4) id JAA09665; Wed, 7 Jan 1998 09:21:59 +0300 (GMT) From: Fernando Schapachnik Message-Id: <199801070621.JAA09665@ns1.sminter.com.ar> Subject: Problem adding a hard disk To: questions@freebsd.org Date: Wed, 7 Jan 1998 09:21:59 +0300 (GMT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk << Please reply to me and I'll sumarize, I'm not in the list >> Hello: The situation is like this: I'm running FBSD 2.1.7.1 and nowadays I have the following disks: [1003]ns3:/root>df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 31775 14178 15055 48% / /dev/wd0s1f 889663 556207 262283 68% /usr /dev/wd0s1e 29727 14133 13216 52% /var procfs 4 4 0 100% /proc /dev/wd1s1e 1887023 1550325 185737 89% /proxy /dev/sd0s1e 4121543 2958938 832882 78% /proxy2 sd0 is: (ahc0:0:0): "SEAGATE ST34371W 0484" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 4148MB (8496884 512 byte sectors) I bought another disk, exactly as sd0. When the systems boots, it shows: ahc0 rev 0 int a irq 10 on pci0:11 ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs ahc0 waiting for scsi devices to settle (ahc0:0:0): "SEAGATE ST34371W 0484" type 0 fixed SCSI 2 sd0(ahc0:0:0): Direct-Access 4148MB (8496884 512 byte sectors) (ahc0:1:0): "SEAGATE ST34371W 0484" type 0 fixed SCSI 2 sd1(ahc0:1:0): Direct-Access 4148MB (8496884 512 byte sectors) I followed the FAQ instructions in order to add it to the system: I've ran /stand/sysinstall and I was able to succesfully fdisk: [1009]ns3:/var/log>fdisk /dev/sd0 ******* Working on device /dev/sd0 ******* parameters extracted from in-core disklabel are: cylinders=6659 heads=116 sectors/track=11 (1276 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=6659 heads=116 sectors/track=11 (1276 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 8496884 (4148 Meg), flag 80 beg: cyl 0/ sector 1/ head 0; end: cyl 1023/ sector 11/ head 115 The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: [1010]ns3:/var/log>fdisk /dev/sd1 ******* Working on device /dev/sd1 ******* parameters extracted from in-core disklabel are: cylinders=6659 heads=116 sectors/track=11 (1276 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=6659 heads=116 sectors/track=11 (1276 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 8496884 (4148 Meg), flag 80 beg: cyl 0/ sector 1/ head 0; end: cyl 1023/ sector 11/ head 115 The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: But I can't disklabel the disk. This is sd0: # /dev/sd0: type: SCSI disk: sd0s1 label: flags: bytes/sector: 512 sectors/track: 11 tracks/cylinder: 232 sectors/cylinder: 2552 cylinders: 3329 sectors/unit: 8496884 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] c: 8496884 0 unused 0 0 # (Cyl. 0 - 3329*) e: 8496884 0 4.2BSD 0 0 0 # (Cyl. 0 - 3329*) This is sd1: disklabel -r /dev/sd1 # /dev/sd1: type: SCSI disk: sd1s1 label: flags: bytes/sector: 512 sectors/track: 11 tracks/cylinder: 116 sectors/cylinder: 1276 cylinders: 6659 sectors/unit: 8496884 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] c: 8496884 0 unused 0 0 # (Cyl. 0 - 6658) When I try newfs: [1039]ns3:/var/log>newfs /dev/sd1 newfs: /dev/sd1: not a character-special device newfs: /dev/sd1: `1' partition is unavailable The disk is phisically fine (I DOS-formatted and it was usable). One of the messagesI got was: Jan 6 09:04:03 ns3 /kernel: sd1: invalid primary partition table: no magic Does any one know why I just can't put it to work, beeing this exactly the same disk as sd0? Thanks in advance for your help and time, and sorry for the tons of bytes in this mail, but I wanted to provide as much information as possible. Kind regards, Fernando P. Schapachnik S&M Internet