NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to query HDD status



On 10/05/15 10:25, Manuel Bouyer wrote:
On Sun, Oct 04, 2015 at 10:47:08AM -0453, William A. Mahaffey III wrote:

When I try to use atactl to query the status of the microSD 'HDD" on my
RPiB+, I get the following:


rpi # atactl ld0 identify
atactl: ATAIOCCOMMAND failed: Inappropriate ioctl for device
rpi # uname -a
NetBSD rpi 7.0_BETA NetBSD 7.0_BETA (RPI.201503272230Z) evbarm
rpi #


What is the appropriate command for querying microSD status under NetBSD
7-ish on my RPiB+ ? TIA & have a nice weekend.
The RPI's HDD is not a HDD, it's a microsd card (as you noted),
so ATA commands don't apply. If what you need it the same and capacity of
the SD card, you should have it in dmesg (or /var/run/dmesg.boot)


Thanks for your reply. I actually wanted to query such stuff as temperature on the fly to monitor health of the unit. Dmesg would be AOK at boot time, but not later, AIUT. I have some tinker-toy scripts to query SATA drives on other boxen running NetBSD 6.1.5 & print out interesting stuff in my own format, 1 line per drive. I was wanting to duplicate that if possible for the RPiB+. Sample output from the other box below:


4256EE1 # envstat; hddtemp wd0 wd1 wd2 wd3 wd4 wd5
                      Current  CritMax  WarnMax  WarnMin  CritMin Unit
[amdtemp0]
  cpu0 temperature:    32.375 degC
SMART supported, SMART enabled
drive wd0: HGST HTS721010A9E630, S/N: JR10046P1D5UXN, Temp. 31 degC, Lifetime min/max 21/40 degC drive wd1: HGST HTS721010A9E630, S/N: JR10046P1D605N, Temp. 32 degC, Lifetime min/max 21/42 degC drive wd2: HGST HTS721010A9E630, S/N: JR10046P1D5TZN, Temp. 31 degC, Lifetime min/max 21/40 degC drive wd3: HGST HTS721010A9E630, S/N: JR10046P1EK9GN, Temp. 31 degC, Lifetime min/max 21/41 degC drive wd4: HGST HTS721010A9E630, S/N: JR10046P1EJ4UN, Temp. 30 degC, Lifetime min/max 20/38 degC drive wd5: HGST HTS721010A9E630, S/N: JR10046P1D5V2N, Temp. 30 degC, Lifetime min/max 21/39 degC
4256EE1 # uname -a
NetBSD 4256EE1.CFD.COM 6.1.5 NetBSD 6.1.5 (GENERIC) amd64
4256EE1 #


This is *not* a huge issue, but I figured it would be doable for the RPiB+, but maybe not. Any other ideas appreciated. Thanks again & TIA & have a good one :-).


--

	William A. Mahaffey III

 ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton Jr.



Home | Main Index | Thread Index | Old Index