Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > VPS, Dedicated & Colocation Hosting > How to Find Out if a Drive is a SSD or an HDD
forgot password?



Reply


Old
  Post #1 (permalink)   11-14-2016, 06:31 PM
HD Newbie
 
Join Date: Nov 2016
Posts: 19
Send a message via Skype™ to 24x7CSM

Status: 24x7CSM is offline
in order to check if you have received SSD or HDD try the below method

On the latest kernels the SSD disks are automatically detected.

To fine Hard drive path

use

fdisk -l

Replace sda with your hard drive path.

$ cat /sys/block/sda/queue/rotational

The result of the command will be a number

1 means you have a HDD
0 means you have a SSD

Enjoy!!!
__________________
||Eminds Infotech Pvt. Ltd ||9th Year of Server Management||
||Cpanel Server Management ||24x7 Technical Support||Migration Experts||
https://www.24x7cloudservermanagement.com

Last edited by 24x7CSM : 11-14-2016 at 06:47 PM.
 
 
 


Old
  Post #2 (permalink)   12-03-2016, 06:08 PM
HD Newbie
 
Join Date: Jun 2016
Posts: 27

Status: stackltd is offline
You can use smartctl or hdparm tool to find out the exact model of hard drive.
__________________
Stack Network Ltd
Asia Optmized Virtual Private Servers, Dedicated Servers and Colocation! Low Latency and Helpful Support!
 
 


Old
  Post #3 (permalink)   01-10-2017, 11:20 PM
HD Newbie
 
Join Date: Apr 2013
Posts: 25

Status: HostNIT is offline
Hmm...Any word on if the server is using hardware raid? Because its coming back false positive with the code above.
__________________
===================
Host NIT Inc
Powering cPanelhosting.com
Shared | Reseller | VPS | Dedicated
 
 
 


Old
  Post #4 (permalink)   01-18-2017, 07:20 AM
HD Addict
 
Join Date: Sep 2014
Location: India
Posts: 146
Send a message via Skype™ to 24x7server

Status: 24x7server is offline
Hi,

You can also test the below commands:

#lsblk -d -o name,rota
--> output will be as "1 if SSD, 0 if HDD"

# lsblk -t

For Hardware RAID, try something as below. May be based on the model you can find information:
# tw_cli show
# tw_cli /c2 show
__________________
www.24x7servermanagement.com
Server Management, Server Security, Server Monitoring.
Network Monitoring Team !! Skype: techs24x7
 
 


Old
  Post #5 (permalink)   03-06-2017, 06:47 AM
HD Addict
 
Join Date: Apr 2007
Location: New Jersey
Posts: 148

Status: Dougy is offline
Quote:
Originally Posted by 24x7server View Post

For Hardware RAID, try something as below. May be based on the model you can find information:
# tw_cli show
# tw_cli /c2 show
This will only work a) if this is a 3ware/lsi controller, and b) you have the CLI installed. You can use smartctl to read individual disks off of a controller if you know the right arguments.
__________________
simplywww: mmmmm, directadmin goodness
 
 
 


Old
  Post #6 (permalink)   03-06-2017, 08:13 AM
HD Addict
 
Join Date: Nov 2008
Location: Central Indiana, USA
Posts: 187
Send a message via AIM to MikeDVB Send a message via MSN to MikeDVB Send a message via Skype™ to MikeDVB

Status: MikeDVB is offline
I have to wonder - why would you not know what you actually had?
__________________
Michael Denney - MDDHosting LLC - Professional Hosting Solutions
HA Shared Plans Check them out! Old plans still available.
Shared, Premium, Reseller, and VPS
http://www.mddhosting.com/
 
 
 
The Following 3 Users Say Thank You to MikeDVB For This Useful Post:
danielpmc (03-06-2017), Dougy (03-06-2017), easyhostmedia (03-07-2017)


Old
  Post #7 (permalink)   03-06-2017, 12:57 PM
HD Master
 
HostXNow's Avatar
 
Join Date: Dec 2009
Location: United Kingdom
Posts: 467

Status: HostXNow is offline
Quote:
Originally Posted by MikeDVB View Post
I have to wonder - why would you not know what you actually had?
Must be for VPS customer's who don't trust their provider!?
__________________
Web Hosting - Professional Hosting Solutions
Web Hosting Forum - Web Hosting Community
 
 
 
The Following User Says Thank You to HostXNow For This Useful Post:
easyhostmedia (03-07-2017)


Old
  Post #8 (permalink)   03-07-2017, 08:23 AM
HD Community Advisor
 
ughosting's Avatar
 
Join Date: Jan 2011
Location: London
Posts: 585

Status: ughosting is offline
I'm not sure this would actually work on a VPS anyway, because they are all "Virtual Disks".

I think if you did something like dd=/dev/zero of=/somefilesomewhere bs=1024k count=1024 to write approx a GB of data, you would be able to tell from the throughput.
__________________
DDoS Protected, LiteSpeed + LiteMage on CloudLinux with SSD Disks, R1Soft, Softaculous, SIteBuilder, BitNinja, LetsEncypt & Patchman
UnixGuru: Accounts with 1-16 CPU Cores, 2-32GB RAM. Why use a VPS?
█ Choose from Shared, Reseller and Elastic-Sites Hosting
 
 
 


Old
  Post #9 (permalink)   03-07-2017, 08:59 AM
HD Master
 
HostXNow's Avatar
 
Join Date: Dec 2009
Location: United Kingdom
Posts: 467

Status: HostXNow is offline
Quote:
Originally Posted by ughosting View Post
I'm not sure this would actually work on a VPS anyway, because they are all "Virtual Disks".

I think if you did something like dd=/dev/zero of=/somefilesomewhere bs=1024k count=1024 to write approx a GB of data, you would be able to tell from the throughput.
And that would only work if the provider wasn't overloading their servers otherwise; the speeds may be that of SATA.

If I had any doubt a provider was lying about which type of drive they were using, then I wouldn't sign up with them. The only time I would test is to check speed.
__________________
Web Hosting - Professional Hosting Solutions
Web Hosting Forum - Web Hosting Community
 
 
 
The Following User Says Thank You to HostXNow For This Useful Post:
ughosting (03-07-2017)


Old
  Post #10 (permalink)   03-08-2017, 02:36 PM
HD Newbie
 
Join Date: Jan 2017
Posts: 26
Send a message via Skype™ to HosterDaddy

Status: HosterDaddy is offline
Quote:
Originally Posted by 24x7CSM View Post
in order to check if you have received SSD or HDD try the below method

On the latest kernels the SSD disks are automatically detected.

To fine Hard drive path

use

fdisk -l

Replace sda with your hard drive path.

$ cat /sys/block/sda/queue/rotational

The result of the command will be a number

1 means you have a HDD
0 means you have a SSD

Enjoy!!!
Is these commands also work in VPS or these are only works with dedicated server. I mean how people can check if their vps are on ssd or HDD. Also Is there any method to check on cpanel account?
__________________
HosterDaddy.com
High Performance Widnows VPS
#1 WebHosting Provider
 
 
 


Old
  Post #11 (permalink)   03-12-2017, 03:16 AM
HD Newbie
 
Join Date: Aug 2015
Posts: 35

Status: LowVMFree is offline
I use your command, Its show 0 on SSD but got file not found error on HDD.

Other option is dd command?
 
 
 


Old
  Post #12 (permalink)   04-01-2017, 01:39 AM
HD Addict
 
Join Date: Feb 2011
Posts: 156

Status: ScopeHosts is offline
If you do not have the smartctl tool, you have to install it, like this:

# sudo apt-get install smartmontools

Find out if you have a SSD or a normal HDD:

# sudo smartctl -a /dev/sda

If you get this output, it means you have an SSD, else, it is an HDD:
__________________
ScopeHosts.Com - Beyond Connections... Since:2008
SSD Shared Hosting, VPS and Dedicated Servers.
High Configured Managed Wordpress Hosting|KVM VPS|Visit Website for Improved Look & Feel
 
 


Old
  Post #13 (permalink)   04-03-2017, 10:22 PM
HD Newbie
 
Join Date: Apr 2017
Posts: 2

Status: powermta is offline
#lsblk -d -o name,rota
--> output will be as "1 if SSD, 0 if HDD"

# lsblk -t
 
 
 


Old
  Post #14 (permalink)   04-09-2017, 11:47 PM
HD Master
 
Join Date: Jul 2010
Location: Universe
Posts: 309

Status: kunnusingh is offline
I was not know that we can even check that disk is HDD or SSD but your command is really useful.

Thank you. Good for me to check it who claim that they provide SSD
__________________
Windows VPS
Web Hosting Yearly & WebHostingLoud.com Hosting Forum
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: