Linux - NewbieThis 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
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.
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.
It seems like hdparm does not operate on SCSI disks?
You can always go digging around in /proc and /sys filesystems (provided you're running an up-to-date kernel). In my system (one ide harddrive hda), there's a lot of information in
Code:
/proc/ide/hda
I'm sure there's something similar for scsi disks.
VMs don't have access to the raw device unless you explicitly pass it in (rendering it unusable on the host). The VM only sees an emulated drive controlled by the VM software.
As noted above, this won't work from a VM. But for future reference, you can install the smartmontools package if it is not already installed and get very detailed disk info by running as root or admin:
This will work for any smart capable hard drive which is pretty much everything manufactured in the last 10 years. For example, here's the output I get on my WD 1TB hard drive:
Code:
$ sudo smartctl -i /dev/sdd
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-85-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Black
Device Model: WDC WD1001FALS-00J7B0
Serial Number: WD-WMATV7270748
LU WWN Device Id: 5 0014ee 0ace4fa7b
Firmware Version: 05.00K05
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.5, 3.0 Gb/s
Local Time is: Tue Apr 12 17:22:26 2016 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.