Questions tagged [hdparm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
39 views

Slow disk write speed

i installed new debian 9.8 server for DB application.it has two disk and running on vCenter 6.0. First write disk write speed 100-120 Mb/sec suddenly after for while disk write speed decrease ...
0
votes
0answers
48 views

How do I properly spin down my hard drives using the command line? (hdparm, apm, hd-idle, any other?)

I just realized that spinning down hard drives is more complicated than I thought. Regarding to HDD idle settings using hdparm (APM, Suspend) I have to write a script that needs to be started at ...
0
votes
1answer
89 views

“hdparm -S” does not work on external HDD's. How to avoid it from spinning down?

Apparently, hdparm only works with internal HDD's.How do I avoid an external HDD from spinning down after half a minute? One way is to read one sector using badblocks or dd each 29 seconds in an ...
0
votes
1answer
680 views

Why is secure erase not working? SG_IO: bad/missing sense data

I want to securely erase my SSD(on Ubuntu 18.04) I do sudo time hdparm --user-master u --security-erase mypassword /dev/sda I get this error-message /dev/sda: Issuing SECURITY_ERASE command, ...
0
votes
1answer
35 views

hdparm: What does -n do without a parameter?

The full command I executed in a live CD: sudo hdparm -n /dev/sda What would be the effect of running the command without a parameter? Did the command change anything? The hdparm man page says, ...
2
votes
1answer
32 views

Linux specific problem with Write Protected Compact Flash

I am having a version strange problem with a 4GB ATP Industrial Grade Compact Flash Card. I am trying to use it as the boot storage for a ALIX single board PC. When I insert it into another Linux ...
2
votes
1answer
61 views

Why does ATA Secure Erase occur concurrently rather than in parallel with PATA drives?

When issuing the ATA secure erase command via hdparm against multiple SATA (non-SSD) drives it occurs in parallel. However when the same command is issued against PATA drives, it occurs ...
0
votes
0answers
83 views

How to disable HPA capability using DCO on a SATA HDD?

My Gigabyte motherboard has a BIOS that forces a HPA on the HDD. This can not be disabled in the BIOS. What I would like to do is reset the HPA (easy enough using hdparm -N p<native_capacity> /...
1
vote
0answers
71 views

Why does hdparm return 2 differing results when AHCI is enabled and disabled?

When invoking the hdparm command to securely erase devices e.g. ATA SECURE ERASE, the output hdparm -I /dev/sda and hdparm -I /dev/sdb differ with AHCI enabled and disabled. Both devices are SATA ...
0
votes
1answer
214 views

Why does hdparm -y not spin down a HDD while the file managed does? (using Ejection option)

A HDD, which is older than 10 years, is getting read using a SATA-to-USB adapter. When using sudo hdparm -y /dev/sdj, the HDD does not shut down. But when using the Eject option in the File Manager, ...
2
votes
1answer
169 views

sedutils vs hpdarm for SED hard disks

According to my reading there are 2 known methods for using Self-Encrypting Drives (SED): hdparm https://www.pugetsystems.com/labs/articles/Introduction-to-Self-Encrypting-Drives-SED-557/ sedutils ...
3
votes
1answer
1k views

List features of NVMe drive (like hdparm -I for non-NVME)

With a non-NVMe drive, I can run: # hdparm -I /dev/whatever | grep TRIM Data Set Management TRIM supported (limit 8 block) Deterministic read data after TRIM With a Samsung 960 EVO 1TB NVMe drive (...
0
votes
0answers
41 views

Power management for old laptop running Linux

Recently I went through boxes of old stuff and discovered a few very old laptops (early 2000's) full of dust. Instead of throwing them away I decided to install a very light system SparkyLinux onto ...
2
votes
0answers
44 views

What does hdparm mean by “buffer cache”; hardware cache in hard drive or page cache in computer memory?

From hdparm man page: -t Perform timings of device reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an ...
1
vote
0answers
73 views

hard disk high temperature and frequent access while idle

I have bought two WD Gold 4TB and installed debian sid with kde on a single RAID1 partition, md0: # cat /proc/mdstat Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [...
1
vote
0answers
282 views

Can hdparm security-set-pass brick an SSD

I wanted to secure erase my old Kingston SH100S3/120G SSD. I tried to follow the article here. I checked the SSD with hdparm -I /dev/sda command. Since it showed "frozen" security state even after ...
3
votes
0answers
99 views

zfs pool not available on boot after setting noatime and drive idle times with hd-idle / hdparm

At first, I set up my RHEL7-x64 to sleep the zfs drives using this,this, and this. I believe I tried hd-idle first, when the problems began. I had written a script idle_drives_enable to handle ...
0
votes
1answer
285 views

Is it safe to run hdparm -y on lvm

I've got a lvm volume, which is composed of two hard drives enclosed in external enclosure connected through usb. As it's external and not used too much, I like to spin it down if it is not used. I'...
0
votes
2answers
2k views

Where is SG_IO sense data stored?

I'm getting the following error message when running hdparm -S on my external USB hard drive: SG_IO: bad/missing sense data Where is this sense data stored on the hard drive? I never encountered ...
3
votes
1answer
1k views

HDD idle settings using hdparm (APM, Suspend)

OS: GNU/Linux Debian 9.2 I want to change my computers behavior to suspend HDDs when idle for 30 minutes. So far I have found out I need to change APM level to allow suspending disks by setting: ...
0
votes
1answer
377 views

Is it safe to power off disk after hdparm spin-down?

I have heard that it is generally considered unsafe to power off a mounted hard disk; the consequences could be a lost or unresponsive drive. However, powering off a drive after unmounting should be ...
2
votes
1answer
1k views

Why cached reads are slower than disk reads in hdparm --direct?

I am trying to interpret this result of hdparm: janus@behemoth ~ $ sudo hdparm -Tt --direct /dev/nvme0n1 /dev/nvme0n1: Timing O_DIRECT cached reads: 2548 MB in 2.00 seconds = 1273.69 MB/sec ...
1
vote
0answers
884 views

Disable disk spindown with sdparm?

I'm using USB drive sat controller so hdparm doesn't fully work for me. How can I disable spindown with sdparm? (equivalent of -B 255, -S 0) lapsio@nuc ~> sudo hdparm -I /dev/sdb /dev/sdb: ATA ...
2
votes
0answers
207 views

Security features disabled by DCO - how to unfreeze and restore?

I use a Samung 256 GB SDD Model MZ - 7TD2560/0L7 built Octobre 2013. WINMAGIC bootloader with WINDOWS 7 is installed on it. hdparm -I doesn't report any security features for that drive. hdparm --...
2
votes
0answers
500 views

hdparm doesn't show “security” section

I tried to find out the security settings of my Samung 256 GB SDD used on a Lenovo Thinkpad T430. However, sending "hdparm -I" provides the usual information but omits the "security" section ...
2
votes
2answers
464 views

To configure hard drive APM levels and maintain them after suspend/resume

On Fedora 25, my laptop's hard drive has a very low APM level (power management), so I use the udev rules from this answer to adjust it with hdparm. However, after resuming from suspend, the APM level ...
0
votes
1answer
3k views

Hard drive ignores hdparm settings

An external hard disk sold as “INTENSO USB 3.0 4TB M/CNTR DSKTP HDD PK1” with the model number given by hdparm -I as ST4000DM000-1F2168 (so it's a Seagate Technology drive in the casing) just flat out ...
2
votes
1answer
772 views

hdparm : SG_IO: questionable sense data, results may be incorrect

I'm using Ubuntu 16.04 and I would like to know if my system supports the trim command for my SSD. So I typed the following thing : sudo hdparm -I /dev/nvme0n1 | grep TRIM and the result is SG_IO:...
1
vote
0answers
347 views

hdparm -S60 /dev/sda (Works fine, but every 30 mins HDD wakes up and spins down even though not in use.)

Seagate 4TB 3.5". $ hdparm -S60 /dev/sda OK. 5 mins after no access on HDD, it spins down. No problem. But every 30 mins it wakes up by itself without any event, and goes to bed immediately. I ...
2
votes
0answers
482 views

Problem with HDD spindown [closed]

I'm trying to spin down my HDD after 10 minutes so I did hdparm -S 120 /dev/sda but it doesn't spin down. (I didn't reboot but I also have an udev rule which executes this command) But when I do ...
2
votes
1answer
2k views

One HDD will not automatically go to sleep by hdparm

I'm using hdparm to automatically turn off hard discs after 5 minutes. I use this config: # cat /etc/hdparm.conf quiet /dev/disk/by-id/ata-WDC_WD10EADS-00L5B1_WD-WCAU46879161 { spindown_time = ...
1
vote
1answer
1k views

HDDs won't spin down with hdparm command

I am using Debian Jessie on a HP Proliant Microserver Gen8 with two Western Digital Red 3TB. No RAID or anything else. I wanted the HDDs to automatically spin down after two hours. Triggering it ...
0
votes
1answer
130 views

Measure USB read times for all devices using hdparm

I would like to measure the read times of all mounted USB devices. I found that hdparm is suited for this: $ sudo hdparm -tT /dev/sdb1 However, I would like to attach several devices and iterate ...
2
votes
1answer
1k views

Hard Drive not spinning down

I built a NAS with a BananaPi and a SATA hard drive. The OS is Bananian (Debian 8/Jessie). I want to put the harddrive into standby mode using hdparm -y. For some reason this only works, when the ...
4
votes
1answer
2k views

How to check if a disk is SSHD (hybrid drive) using ATA commands

Having looked at this question: (How to know if a disk is an SSD or an HDD) I am able to detect HDD and SSD. The problem now is that I don't know how to detect SSHD, since the hdparm tool shows ...
2
votes
0answers
2k views

Arch Linux Server: How to spin down HDDs in a BTRFS Raid5 configuration?

This is my first question here; after extensive research I had to reach out for help. I’ve build a home server based on Arch Linux. It basically has two main purposes: running a Plex Media Server and ...
0
votes
1answer
141 views

Benchmark shared folder on Virtualbox?

I'm trying to benchmark what I can read and write from the shared folder on my Virtualbox machine is? From my local host machine I have a shared folder, and on the guest virtualized machine, I would ...
4
votes
2answers
783 views

Get block device model name and manufacturer from pseudo-fs

[gala@arch ~]$ sudo !! sudo hdparm -i /dev/sda /dev/sda: Model=KINGSTON SHFS37A120G, FwRev=603ABBF0, SerialNo=50026B725B0A1515 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol&...
1
vote
1answer
137 views

Does hpdarm -Y suffice to stop IO on my hard drive?

I'm using Ubuntu 14.04 with two hard drives in my laptop. The first contains my root partition and my home partition. The second one is used for backups only. I know that hard drives break down after ...
1
vote
1answer
2k views

hdparm: SECURITY_SET_PASS: Input/output error

I'm trying to use hdparm to secure erase an SSD as suggested here. Following the directions in that guide has worked okay so far, but I can't seem to resolve this error: ~ $ sudo hdparm --user-...
1
vote
1answer
140 views

Gnome Schedule cannot run hdparm

I have set up a cron job that should execute hdparm -y /dev/sda >> /var/log/diskspindown.log 2>&1 When testing it running it via "Run selected task" it executes fine and logs /dev/...
3
votes
1answer
447 views

What could be causing my hard drive to spin down?

Recently I noticed that I could hear my hard drive spinning down very frequently, like once every 10-20 seconds. At that time spin down was set to 30 minutes using the following udev rule: hdparm -B ...
1
vote
0answers
402 views

Ubuntu DMA Auto Activate Optimization Flag

I have two NAS devices, which differ in architecture. They are connected to the same SATA disks and one of them shows better read and write performances. Okay, there could be many reasons for such ...
1
vote
0answers
834 views

Setting standby timeout with hdparm during boot via udev rule not working

I set the APM level and standby timeout of my HDDs during boot with a udev rule: ACTION=="add|change", KERNEL=="sd[b-z]", ATTR{queue/rotational}=="1", RUN+="/usr/bin/hdparm -B 63 -S 36 /dev/%k" I ...
6
votes
1answer
844 views

How to check if a drive supports hotswap?

Not all SATA drives support hot-swap. Especially older models do not seem to work correctly and require the system to be rebooted, despite the fact that the controller works well with newer drives. ...
1
vote
1answer
939 views

Turning off DMA on Linux still supported

Trying to turn off DMA on my Linux machine returns: HDIO_GET_DMA failed: Inappropriate ioctl for device I remember that this used to work to turn DMA on or off. I also tried using the kernel ...
13
votes
1answer
885 views

Disks (in usb enclosure) keep waking up even when not mounted

Setup I have USB enclosure (Buffalo DriveStation Quad) containing four drives connected to my nas server (ubuntu server 14.04). The enclosure is configured to JBOD mode, so I'll see all the disks in ...
1
vote
2answers
2k views

What is spinning my disk up periodically?

I recently bought a CubieBoard 3 and installed Debian. The OS is installed on SD card and I use a 2.5" HDD to share files. The HDD is using ext4. I want the HDD to spin down if it is not used to save ...
1
vote
0answers
370 views

Flash memory and set to read only , Is it virus?

Becuase some of limitation of MS.Windows, my friends and my family gime their flash memory to solve their problem. Such as format, partitioning in Linux with the cfidsk ,parted, sfidsk(dump and ...
1
vote
1answer
383 views

How to debug hard drive power saving?

My harddrives are not going to powersave. I have added the following lines into /etc/hdparm.conf: command_line { hdparm -S 25 /dev/disk/by-uuid/42d40d37-2859-457c-93d0-e4c617d06d9f } ...