LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2019, 05:10 AM   #1
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Rep: Reputation: 56
How do I find my SATA hard disk version?


Hello

I've a PC, which is more than 10-15 years old. A year back I upgraded my motherboard which had both SATA v2.0 and v3.0 slots. I plugged my old SATA HDD to the v3.0 slot and DVD-Drive to the v2.0 slot. I'm pretty sure this old HDD is not a 6 Gbit/s (v3.0) drive. But still, I want to check what SATA version it belonged to (v1.5, v2.0 or v3.0)?

I can open the box and find it my self but want to know through the terminal, so that I can apply this knowledge elsewhere also.

This is my HDD info as seen by Linux kernel
Code:
$ dmesg | grep SATA | grep 'link up'
[    1.026647] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.026675] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)

$ sudo smartctl -a /dev/sda | grep '^SATA'
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)

$ sudo hdparm -I /dev/sda | egrep "Model|speed|Transport"
	Model Number:       ST31000524AS                            
	Transport:          Serial, SATA Rev 3.0
	   *	Gen1 signaling speed (1.5Gb/s)
	   *	Gen2 signaling speed (3.0Gb/s)
	   *	Gen3 signaling speed (6.0Gb/s)
	   *	SMART Command Transport (SCT) feature set

$ sudo lshw -class disk -class storage
  *-sata                    
       description: SATA controller
       product: 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
       vendor: Intel Corporation
       physical id: 1f.2
       bus info: pci@0000:00:1f.2
       logical name: scsi0
       logical name: scsi1
       version: 05
       width: 32 bits
       clock: 66MHz
       capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated
       configuration: driver=ahci latency=0
       resources: irq:27 ioport:f070(size=8) ioport:f060(size=4) ioport:f050(size=8) ioport:f040(size=4) ioport:f020(size=32) memory:f3216000-f32167ff
     *-disk
          description: ATA Disk
          product: ST31000524AS
          physical id: 0
          bus info: scsi@0:0.0.0
          logical name: /dev/sda
          version: JC45
          serial: 9VPCEY7V
          size: 931GiB (1TB)
          capabilities: gpt-1.00 partitioned partitioned:gpt
          configuration: ansiversion=5 guid=c1adf34c-306f-41c2-b10b-f434518c65f4 logicalsectorsize=512 sectorsize=512
     *-cdrom
          description: DVD-RAM writer
          product: DRW-2014L1T
          vendor: ASUS
          physical id: 1
          bus info: scsi@1:0.0.0
          logical name: /dev/cdrom
          logical name: /dev/sr0
          version: 1.00
          capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
          configuration: ansiversion=5 status=nodisc
How to find what SATA version my Seagate HDD is (1,0, 2.0 or 3.0)?

Thanks
 
Old 11-27-2019, 05:51 AM   #2
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
*-disk
description: ATA Disk
product: ST31000524AS
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: JC45
serial: 9VPCEY7V
size: 931GiB (1TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=c1adf34c-306f-41c2-b10b-f434518c65f4 logicalsectorsize=512 sectorsize=512
*-cdrom
Have you tried Googling ST31000524AS?

It'll turn up the .pdf spec sheet here.

Play Bonny!

 
1 members found this post helpful.
Old 11-27-2019, 07:01 AM   #3
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by Soadyheid View Post
Have you tried Googling ST31000524AS?

It'll turn up the .pdf spec sheet here.

Play Bonny!

Strange, when I bought this HDD, there was no such thing as SATA 6 Gb/s in the market. According to pdf, it's 6Gb/s disk. Mine never crossed 90-95MB/s.

Code:
$ dd if=/dev/zero of=testspeed.dd bs=4k count=262144 conv=fdatasync
262144+0 records in
262144+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 13.1187 s, 81.8 MB/s
 
Old 11-27-2019, 09:17 AM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
6Gb is the possible speed from memory to disk drive cache.

90-95MB/sec is a good speed for sequential access, reading/writing from cache to the actual hard disk.

It will be much slower for random access.
 
Old 11-27-2019, 09:48 AM   #5
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
This is bonnie++ result of this old HDD.
Attached Thumbnails
Click image for larger version

Name:	bonnie.png
Views:	32
Size:	30.8 KB
ID:	31969  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
[SOLVED] i have a linux desktop version 4 CD and SATA hard disk manoj_hanse Linux - Hardware 2 03-11-2008 11:17 PM
which version of red hat could be installed on sata hard disk xyz Linux - Newbie 3 02-04-2008 12:24 AM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 06:44 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration