From owner-freebsd-questions@freebsd.org Fri Dec 2 07:48:18 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 24C7BC613D7 for ; Fri, 2 Dec 2016 07:48:18 +0000 (UTC) (envelope-from s.garzarella@evidence.eu.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DB7DA1F23 for ; Fri, 2 Dec 2016 07:48:17 +0000 (UTC) (envelope-from s.garzarella@evidence.eu.com) Received: by mail-qk0-x229.google.com with SMTP id n204so271089059qke.2 for ; Thu, 01 Dec 2016 23:48:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evidence-eu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KgsCsBaKls6m5Q2ntZ43NgODpdfVdIWGYTKplr6KiSQ=; b=CWD7NFzgm78Cewag5QBd/Fb7/LsdRF8J1M/iwNc64+c3i0yefckw1o4qe6WhkMqqSr R4a8SUUWCy1J0n0dhI/axSLQ00+ROMEXDCUpy9zdmgrxN0ch+0ivfmyqNwkQJcnbMdeO Kiwr+pG247Egdtv0W9rgfpSK4KmkzlCwnVF5IAN721nV2VaiUUOLwTNxvpDg4PeFcu7x 6CrOvr+ity/JejkH0nJTHVFbTvt5WMZQktB3PFvpJGYMXVUt3BVvy9ZKS0qkEH8pknaS F0XLxNLhj6eXRTHFjiP67Jp8eHGXJFcnir0Fyb3a6FMlXJgz8C+PVyMWNycYvgDvRZgC SP+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KgsCsBaKls6m5Q2ntZ43NgODpdfVdIWGYTKplr6KiSQ=; b=ko9zMBcywUJ6aKfsW0168BiQ3gglRAH0k7fKSR3e8DBvd/KtoUQapwjUmZCZF5n+8Q FLJJtqOx05AAteOpZD4r78XnPj0FKDfmXKxI9altrraPjsNNYPclgHYhMGlay6n5zMS/ GkMko82Nlz1kN2fqNjzMlTojdvAACaNajSdcr09DSBoZpiUeWyODkPcNTCYEywTgB6zZ ahVqmvap5Xk1hmpsTQfByCfd+6nP09634ABuHz6W32P1xyBoy14eSiq694YyOoSY1M3Z 6Nz9vCpnAhJX3mu4AqkVeAZvmFPs22pmwDf03nkzVq53XZR9hM1FsR9IKAoFxSIeMdkc lsVg== X-Gm-Message-State: AKaTC02hqFA/zmyOa+agLljVE2osfz5vABDP5nmW0Kqbc5burgcYqB7dohFp00fx0M8r77nkj0TU/QfMyty0lA== X-Received: by 10.55.27.36 with SMTP id b36mr6597410qkb.215.1480664896506; Thu, 01 Dec 2016 23:48:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.30.52 with HTTP; Thu, 1 Dec 2016 23:47:56 -0800 (PST) In-Reply-To: <861sxrdsyn.fsf@WorkBox.homestead.org> References: <935-58400880-ed-6b8b4580@136822448> <861sxrdsyn.fsf@WorkBox.homestead.org> From: Stefano Garzarella Date: Fri, 2 Dec 2016 08:47:56 +0100 Message-ID: Subject: Re: How to detect if a disk is an SSD To: "Brandon J. Wandersee" , axelbsd@ymail.com Cc: Matthias Petermann , freebsd-questions@freebsd.org, Michele Pes Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 07:48:18 -0000 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 ---------------------------------- > -- Stefano Garzarella Software Engineer email: s.garzarella@evidence.eu.com skype: garzarella Evidence Srl http://www.evidence.eu.com Via Carducci 56 - Localita' Ghezzano 56010 S.Giuliano Terme Pisa - Italy Phone: +39 050 99 11 122 Fax: +39 050 99 10 812