From owner-freebsd-questions@freebsd.org Fri Dec 2 20:30:20 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F869C6266C for ; Fri, 2 Dec 2016 20:30:20 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp2.bway.net (smtp2.v6.bway.net [IPv6:2607:d300:1::28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 646231CF3 for ; Fri, 2 Dec 2016 20:30:20 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-151.dsl.bway.net [216.220.115.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id E25CA9586B; Fri, 2 Dec 2016 15:30:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1480710609; bh=axQjYd9Zy3ORmqa6w/VPi7sNxh6Ps3+9jxOJzP9dKBg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To; b=lLlQKtDWRL22mnEhiKsNvk2UqUbJYwPNHD6GyJh4kwJY0BhNS34iiR3UrDsSxgRu0 tma2DjdMQ+fGhXQDxhNw8A+C1P5nRte39hh2DBZagbgBeECu/ctrrfmkT5//sQDPqh yVQPQ/M5otRFV2n4eNDLvhNHBfG5YcoAieY0xnPM= Date: Fri, 2 Dec 2016 15:30:08 -0500 From: mfv To: Stefano Garzarella Cc: "Brandon J. Wandersee" , axelbsd@ymail.com, Michele Pes , freebsd-questions@freebsd.org, Matthias Petermann Subject: Re: How to detect if a disk is an SSD Message-ID: <20161202153008.3cde5833@gecko4> In-Reply-To: References: <935-58400880-ed-6b8b4580@136822448> <861sxrdsyn.fsf@WorkBox.homestead.org> Reply-To: mfv@bway.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 02 Dec 2016 20:51:40 +0000 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 20:30:20 -0000 > On Fri, 2016-12-02 at 08:47 Stefano Garzarella > wrote: > >Hi Brandon, Alexandre and Matthias, >thank you very much for your answers! > >I think that camcontrol is the tool that we need. > >Best Regards, >Stefano > >2016-12-02 2:23 GMT+01:00 Brandon J. Wandersee > : > >> >> Matthias Petermann writes: >> >> > Hello Stefano, >> > >> > one option might be to check the kernel log via >> > >> > % dmesg >> > >> > I would expect some entries like: >> > >> > ada4 at ata0 bus 0 scbus4 target 1 lun 0 >> > ada4: ACS-2 ATA SATA 3.x >> > device ada4: Serial Number S2NRNXAGC00170D >> > ada4: 150.000MB/s transfers (SATA, UDMA6, PIO 8192bytes) >> > ada4: 114473MB (234441648 512 byte sectors) >> > ada4: quirks=0x3<4K,NCQ_TRIM_BROKEN> >> > >> > which includes the model number / name. Feeding this into Google >> > should >> provide clarity if it is a SSD or not. >> >> camcontrol(8) can be used for more extensive information, as well: >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> # camcontrol identify ada0 >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> pass0: ACS-2 ATA SATA 3.x device >> pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) >> >> protocol ATA/ATAPI-9 SATA 3.x >> device model Samsung SSD 840 EVO 250GB >> firmware revision EXT0DB6Q >> serial number S1DBNSADB01138V >> WWN 50025388a00b2df3 >> cylinders 16383 >> heads 16 >> sectors/track 63 >> sector size logical 512, physical 512, offset 0 >> LBA supported 268435455 sectors >> LBA48 supported 488397168 sectors >> PIO supported PIO4 >> DMA supported WDMA2 UDMA6 >> media RPM non-rotating >> >> Feature Support Enabled Value >> Vendor read ahead yes yes >> write cache yes yes >> flush cache yes yes >> overlap no >> Tagged Command Queuing (TCQ) no no >> Native Command Queuing (NCQ) yes 32 tags >> NCQ Queue Management no >> NCQ Streaming no >> Receive & Send FPDMA Queued yes >> SMART yes yes >> microcode download yes yes >> security yes yes >> power management yes yes >> advanced power management no no >> automatic acoustic management no no >> media status notification no no >> power-up in Standby no no >> write-read-verify yes no 0/0x0 >> unload no no >> general purpose logging yes yes >> free-fall no no >> Data Set Management (DSM/TRIM) yes >> DSM - max 512byte blocks yes 8 >> DSM - deterministic read no >> Host Protected Area (HPA) yes no 488397168/488397168 >> HPA - Security no >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> -- >> :: Brandon J. Wandersee >> :: brandon.wandersee@gmail.com >> :: -------------------------------------------------- >> :: 'The best design is as little design as possible.' >> :: --- Dieter Rams ---------------------------------- >> > > > Hello, Another source of detailed information about a drive and its status is the port sysutils/smartmontools. Cheers ... Marek