How to find SATA controller version on Ubuntu laptop. Do I have SATA 1, 2, or 3? I, II, or III?

49,524

Solution 1

Try dmesg | grep SATA, this is a little faster than lspci as it will print out the kernel buffer logs from boot/after boot with the SATA speeds right there. You should see something like this:

[1.236431] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 3 Gbps 0x33 impl SATA mode

Again this is only your controller so it's not guaranteed. And it'll show your current hd

[1.577525] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) 

This is your drive's ultimate connection, i.e. SATA revision the drive is running at.

Solution 2

This command gives you the version exactly:

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

Solution 3

lspci will tell you all the controllers and devices, take a look at your SATA controller, it should give you a model. Take that model and look up the specs for it. You will probably need elevated privileges (su/sudo) for lspci to work for you.

Solution 4

Great walk through to get any data about your drives you might want

http://www.cyberciti.biz/faq/linux-command-to-find-sata-harddisk-link-speed/

expands on answer above with little tricks like

dmesg | grep -i sata | grep 'link up'

and

sudo hdparm -I /dev/sda | egrep "Model|speed|Transport"

Share:
49,524
Sean
Author by

Sean

Updated on September 18, 2022

Comments

  • Sean
    Sean over 1 year

    I'm running Ubuntu on a laptop and am shopping to upgrade to an SSD.

    Based on the specs for this drive for example, it seems like I should figure out what version of SATA my computer will support before I buy.

    I don't want so shell out the big bucks for a really fast drive if my SATA controller will be the bottleneck anyway. Does this make sense?

    Newegg presents this as SATA 2 (SATA II) running at 3Gbps and SATA 3 (SATA III) running at 6 Gbps.

    What tools can I use in Ubuntu to determine if my computer will support SATA 3?

  • haimg
    haimg about 12 years
    However, having certain chipset that is SATA3-capable is not a guarantee that the laptop supports SATA3 speeds. For example, my Lenovo T61 has SATA2 chipset, but its speed is capped at 1.5Gbps in firmware (half SATA2 speed). Best bet is to consult manufacturer's web site, get the official laptop specs.
  • BloodyIron
    BloodyIron about 12 years
    Are you sure the HDD itself doesn't have the 1.5gbps limiter jumper on?
  • haimg
    haimg about 12 years
    Nope, this specific issue is well publicised... Lenovo did that on purpose to support IDE disks in the expansion bay :-( Just saying that lack of SATA3 support in the chipset 100% proves there is NO support, but presence of SATA3 support in the chipset doesn't mean that laptop will support it for sure.
  • Calmarius
    Calmarius almost 8 years
    So basically if the ahci line says 1.5 Gbps you have SATA I, 3 Gbps means SATA II, 6 Gbps means SATA III.
  • Amir
    Amir over 6 years
    Good, but that requires a third-party package: sudo apt-get install smartmontools
  • Cirelli94
    Cirelli94 over 4 years
    Good, but it works only for disks plugged, not if you have some other device like a dvd reader.