Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-09-2020, 01:05 PM
|
#1
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,207
|
How do I find out what kind of hard drive I have
Today I was testing e2fsprogs as part of an LFS build. The tests are said to take a certain time (which would be about 36 minutes on my machine) when using a magnetic drive and about a quarter of that with an SSD drive. It seems that I have the latter. I didn't know that! How can I find out more about this?
PS /dev/disk/by-id calls it ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2ECK7NNDE, which is Greek to me.
Last edited by hazel; 09-10-2020 at 04:16 AM.
|
|
|
09-09-2020, 01:22 PM
|
#2
|
Senior Member
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,058
|
|
|
1 members found this post helpful.
|
09-09-2020, 09:48 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,359
|
Code:
cat /sys/block/sda/queue/rotational
1 means yes so HDD, 0 means no so SSD.
|
|
2 members found this post helpful.
|
09-10-2020, 03:01 AM
|
#5
|
Senior Member
Registered: Sep 2014
Distribution: Slackware
Posts: 1,856
Rep: 
|
Platters do make a sound every time they read/write, ssd never does.
WD page on wikipedia notes the color codes also, I did some research on that long time ago when I was looking for high performance drive.
I do a lot of archiving it's I/O intensive so I went to get WD Black, thought about raptor but it was too expensive at the time.
Another thing they do these days is they integrate a SSD into the drive to serve as some sort of cache.
So it's probably worth to check the specs before getting a new one, it's a trade-off between longetivity and performance I guess.
|
|
|
09-10-2020, 04:19 AM
|
#6
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,207
Original Poster
|
So it is a normal hard drive after all.
Code:
$ cat /sys/block/sda/queue/rotational
1
I can hear the noise quite clearly when it starts up. But I wonder why my tests ran so fast. They all passed too.
|
|
|
09-10-2020, 05:42 AM
|
#7
|
Senior Member
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,058
|
Quote:
Originally Posted by hazel
But I wonder why my tests ran so fast. They all passed too.
|
The OS caches the most recently-used disk blocks in memory. Caching reduces the number of disk reads and makes the computer less sensitive to disk performance (after the first run).
Ed
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 10:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|