From owner-freebsd-questions@FreeBSD.ORG Mon Apr 10 04:44:19 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34C9216A402 for ; Mon, 10 Apr 2006 04:44:19 +0000 (UTC) (envelope-from petermatulis@yahoo.ca) Received: from web60015.mail.yahoo.com (web60015.mail.yahoo.com [209.73.178.78]) by mx1.FreeBSD.org (Postfix) with SMTP id B835F43D81 for ; Mon, 10 Apr 2006 04:44:18 +0000 (GMT) (envelope-from petermatulis@yahoo.ca) Received: (qmail 98539 invoked by uid 60001); 10 Apr 2006 04:44:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Fh8P6Yx9Kjl5VA8xOJB7JkknGfbml3GRPGMluNbR719Evbn40SQGmQFTj7xDop+F4BMUBaZuu9Y0IRwqoQNAKtlvPTybqd4NRpIBJmEh8t9ExoIzWmDWPaCN7bnDFDSxK1KAezUB89e2PXdWmai4qsJxBDL4LV5GUh/6HM7t0iE= ; Message-ID: <20060410044418.98537.qmail@web60015.mail.yahoo.com> Received: from [70.81.189.3] by web60015.mail.yahoo.com via HTTP; Mon, 10 Apr 2006 00:44:18 EDT Date: Mon, 10 Apr 2006 00:44:18 -0400 (EDT) From: Peter To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: seeking help on "adding a disk" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 04:44:19 -0000 Hi everyone. I am having trouble adding a IDE 300 GB Maxtor to my 6.0 system. It is recognized as ad2. Here is dmesg: ad0: 39205MB at ata0-master UDMA133 ad1: 190782MB at ata0-slave UDMA100 ad2: 286188MB at ata1-master UDMA133 I want to devote the entire disk to FreeBSD and use a single slice and partition and mount it on directory /images. This is what happened: # dd if=/dev/zero of=/dev/ad2 bs=1k count=64 64+0 records in 64+0 records out 65536 bytes transferred in 0.005377 secs (12188086 bytes/sec) # fdisk -B -I /dev/ad2 ******* Working on device /dev/ad2 ******* fdisk: invalid fdisk partition table found fdisk: Geom not found # bsdlabel -w -B /dev/ad2s1 # fdisk ad2 ******* Working on device /dev/ad2 ******* parameters extracted from in-core disklabel are: cylinders=581463 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=581463 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 586114641 (286188 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 854/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: # bsdlabel ad2s1 # /dev/ad2s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 586114625 16 unused 0 0 c: 586114641 0 unused 0 0 # "raw" part, don't edit Now shouldn't I have some values in the first (a:) row? Anyway, when I try to create a filesystem with newfs I get an error: # newfs /dev/ad2s1a ..., 450493504, 450869856, 451246208,newfs: wtfs: 65536 bytes at sector 451622560: Input/output error Now please let me know if my method is sound. I feel the drive size is not being properly recognized and that the last command is trying to write past the edge of the disk. I would also like to not be using s1a but s1e instead. Furthermore, the docs [1] for this drive say that an 80-wire cable is required. I didn't have one handy so I had to use a 40-wire cable. Could this be causing the trouble? Thanks for any insights (I have a hell of a time working with disks on FreeBSD). -- Peter [1] http://www.maxtor.com/portal/site/Maxtor/menuitem.5d2b41d3cef51dfe29dd10a191346068/?channelpath=/en_us/Support/Product%20Support/Desktop%20Storage/DiamondMax%20Family/DiamondMax%2010 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com