From owner-freebsd-questions Wed May 15 18:10:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from molson.wixb.com (molson.wixb.com [67.36.82.130]) by hub.freebsd.org (Postfix) with ESMTP id F004037B405 for ; Wed, 15 May 2002 18:10:15 -0700 (PDT) Received: from coors.xpec.com (coors.wixb.com [10.135.144.5]) by molson.wixb.com (8.12.3+Sun/8.12.3) with ESMTP id g4G1AFvv016295 for ; Wed, 15 May 2002 20:10:15 -0500 (CDT) Message-Id: <5.1.1.2.2.20020515195826.00b17978@molson.wixb.com> Date: Wed, 15 May 2002 20:10:14 -0500 To: freebsd-questions@FreeBSD.ORG From: "J.D. Bronson" Subject: 4.5-REL adding a new SCSI drive woes Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG All I want to do is add another EXACT same SCSI drive to my FBSD box. It is 100% same as the main drive. I basically want to match the slices on the main drive 100% (the main drive is da0s1) # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 588590 30080 511424 6% / /dev/da0s1e 9072366 745870 7600708 9% /usr /dev/da0s1f 2519902 388 2317922 0% /var /dev/da0s1g 1032142 8674 940898 1% /test /dev/da0s1h 2620862 24598 2386596 1% /home /dev/da0s1d 1032618 3218 946792 0% /scratch ------------- So I did this: #fdisk -BI da1 #disklabel -w -B da1s1 auto #disklabel -e da1s1 No errors and I edited the disklabel and basically 'copied' how the other drive was setup (since they are exactly the same and all).... So far so good. Until I tried to 'newfs' the new slice(s): # newfs /dev/rda1s1a Warning: Block size and bytes per inode restrict cylinders per group to 92. /dev/rda1s1a: 1196032 sectors in 292 cylinders of 1 tracks, 4096 sectors 584.0MB in 4 cyl groups (92 c/g, 184.00MB/g, 18560 i/g) super-block backups (for fsck -b #) at: 32, 376864, 753696, 1130528 From looking at this, at least I know my disklabel is correct. Here is my disklabel (relavent part) 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1196032 0 4.2BSD 2048 16384 92 # (Cyl. 0 - 74*) Now, this value came from the 'main drive' and was setup this way from install. I come from a solaris/OpenBSD scene and have never had to deal with anything other than "warning unalloctacted sectors....." stuff. Can anyone shed some light here for me? I have looked at the FAQ and search google, but most of the questions asked are about floppies. btw, I can 'dd' the drive just fine (they both have the exact same cyl's) # dd if=/dev/rda0s1c of=/dev/rda1s1c bs=1048576 that results in no errors, and presumably a cloned drive...but I really want to know how to FIX this? TIA... Jeff Milwaukee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message