From owner-freebsd-scsi@FreeBSD.ORG Thu May 30 15:00:19 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A422ACC9 for ; Thu, 30 May 2013 15:00:19 +0000 (UTC) (envelope-from dgilbert@interlog.com) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id 66F6CAA1 for ; Thu, 30 May 2013 15:00:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id C89AE20416A; Thu, 30 May 2013 16:52:21 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FMkS0Th7-mQu; Thu, 30 May 2013 16:52:15 +0200 (CEST) Received: from [192.168.48.66] (unknown [199.91.212.82]) by smtp.infotech.no (Postfix) with ESMTPA id B13B620415E; Thu, 30 May 2013 16:52:14 +0200 (CEST) Message-ID: <51A76794.2080500@interlog.com> Date: Thu, 30 May 2013 10:52:04 -0400 From: Douglas Gilbert User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Riccardo Veraldi Subject: Re: troubles with Seagate (EMC2) disk References: <51A72605.4050303@gmail.com> In-Reply-To: <51A72605.4050303@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dgilbert@interlog.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 15:00:19 -0000 On 13-05-30 06:12 AM, Riccardo Veraldi wrote: > Hello, > I have a Seagate ST350000 CLAR500 disk. > > it is attached to my Sun Blade 1000 running FreeBSD 9.1 > > I need to label it, create partition and move te root /usr/ var and swap from > the main boot disk which has corrupted blocks. > > so this disk will become my boot disk. > > the problem is that I cannot partition it or even access it in anyway > > dd: /dev/da6: Invalid argument > 1+0 records in > 0+0 records out > 0 bytes transferred in 0.000700 secs (0 bytes/sec) > > this is the disk information: > > da6 at isp0 bus 0 scbus2 target 1 lun 0 > da6: Fixed Direct Access SCSI-3 device > da6: 100.000MB/s transfers WWNN 0x2000001862133c8d WWPN 0x2100001862133c8d > PortID 0xe4 > da6: Command Queueing enabled > da6: 476940MB (961745856 520 byte sectors: 255H 63S/T 59865C) > > the problem is that disk byte sectors are 520 and not 512 > > is there a way to reformat it to 512 byte sectors ? > > is there a way to make it usable ? > > the SCSI III disk has a FC - AL interface (Internal Sun Blade 1000 Caddy). In my sg3_utils package (see http://sg.danny.cz/sg/sg3_utils.html ) there is a utility called sg_format. If you are sure that you do not want the existing data on that disk, try: sg_format --format --size=512 /dev/da6 Doug Gilbert