From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 23:44:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EF6316A420 for ; Fri, 14 Oct 2005 23:44:13 +0000 (GMT) (envelope-from caiquanqing@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9777543D45 for ; Fri, 14 Oct 2005 23:44:12 +0000 (GMT) (envelope-from caiquanqing@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so414273wxc for ; Fri, 14 Oct 2005 16:44:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fkG4tfpT0WjX2tptTLK0mhTJtPkz5wUKDXEfOkibN9KzFlCyEfB3vBp5d85wG0uoGgJqgpeJzMy23s3+Epx2Edd2mFY3koCinaYvGs15qmf996vKQTHBhz9yWQfHzT0kRAts2u7c29n7NV3roKmudi0U/0OGN/HLY89XEjn6djI= Received: by 10.70.130.16 with SMTP id c16mr213032wxd; Fri, 14 Oct 2005 16:44:11 -0700 (PDT) Received: by 10.70.11.18 with HTTP; Fri, 14 Oct 2005 16:44:11 -0700 (PDT) Message-ID: <2b22951e0510141644j39ef0715p2decdd2e2a9eb04f@mail.gmail.com> Date: Fri, 14 Oct 2005 16:44:11 -0700 From: "Cai, Quanqing" To: freebsd-scsi@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: External hard disk through FireWire or USB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 23:44:13 -0000 Hi guys, Recently I got problems to use LaCie disk under FreeBSD 6.0, actually I did some trick to use LaCie disk under FreeBSD 6.0 through FireWire. Here is detail: This info is from dmesg: da0 at sbp0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 50.000MB/s transfers da0: 476950MB (976794335 512 byte sectors: 255H 63S/T 60802C) If you notice, you will find that 255H*63S*60802C=3D976784130!=3D976794335 = in dmesg. So next I did the following: dd if=3D/dev/zero of=3D/dev/da0 bs=3D1k count=3D1 bsdlabel -w da0 bsdlabel -e da0 # and I found there is one /dev/da0a partition. newfs -L LaCie1 -U -o time /dev/da0a I got this error: newfs: wtfs: 512 bytes at sector 976794318: Invalid argument So I run bsdlabel -e da0 and find something in this info: # /dev/da0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 976794319 16 unused 0 0 c: 976794335 0 unused 0 0 # "raw" part, don't edit You can see system use 976794335, not 976784130 as total sectors! So I changed it to 976784130 as following: a: 976784114 16 unused 0 0 c: 976784130 0 unused 0 0 # "raw" part, don't edit Ignore the waring message, and newfs going ok. I copied one big gig size file and everything goes ok! I tried this LaCie disk through USB also, same problem. Here is my question, I know the da0's H/S/C param info is from LaCie, and the number of total sectors is from LaCie disk too. Is this a problem or just normal, I mean wrong number of total sectors? If this is a problem, is there a way to fix this problem? BR Cai, Quanqing