Questions tagged [hdparm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Seagate HDDs immediately wake up after sleep - btrfs

My two internal HDDs (Seagate) immediately wake up after they go to sleep. hdparm -y /dev/sd? doesn't work and even if I set a spindown time they will just stop and immediately turn on again. I'm on ...
user avatar
  • 33
0 votes
0 answers
45 views

USB external drive does not show if it is in hibernation mode in Debian

Good companions. I'm trying to find out if one of my hard drives has gone into hibernation (or sleep) mode but my thumb drive always shows this: sudo hdparm -C /dev/disk/by-uuid/E2C2A877C2A61FB1 /dev/...
user avatar
  • 139
0 votes
0 answers
89 views

How do I make HDD APM level setting permanent?

I am using my Raspberry Pi as NAS with USB HDD enclosure. The drive was spinning all the time, even when Pi was not used for couple of days. To save energy and drive's lifetime I use hdparm -B31 /dev/...
user avatar
  • 359
1 vote
0 answers
185 views

How to prevent harddisk from spinning up and down?

I recently added a Toshiba Enterprise MG06ACA10TE 10TB disk to one of my servers. Since then, I receive between 5-15 of these messages in syslog every day: smartd[625]: Device: /dev/sdb [SAT], CHECK ...
user avatar
  • 342
0 votes
0 answers
15 views

'drive perfetch count' in hdparm

What's the drive perfetch count in hdparm and what does it do? Should I change it? I would like to have both: Information for HDDs and SSDs hdparm -h -P Set drive prefetch count
user avatar
  • 33
0 votes
0 answers
162 views

hdparm for windows opens and closes terminal after given command

I'm trying to use hdparm on Windows 10 to get some information about my HDD via the "hdparm -tv hda" command. I downloaded it from disablehddapm (upper right corner). Instaled it (already ...
user avatar
0 votes
0 answers
227 views

Remove unknown ata password with hdparm

I received 2 320Gb 2.5" harddrives, Toshiba Model Number: MQ01AB032 and Western Digital Model Number: WDC WD3200BPVT-35ZEST0. Both have the same hdparm Security output which I obtained by ...
user avatar
  • 1
0 votes
0 answers
33 views

Hard disk spin-up on demand only under linux

I have a PC where the system (Debian 11) resides on an SSD. As an addition to this I would like to set up two hard drives as a RAID (level 1). Because I would use the RAID only for occasional backups ...
user avatar
  • 33
1 vote
1 answer
92 views

How do I build the openSeaChest hard drive tools for Cygwin?

As detailed here, the hdparm tool hasn't been actively maintained on Cygwin for some time. This results in a situation in which there is no current tool that can perform the firmware-level Secure ...
user avatar
  • 10.4k
0 votes
1 answer
150 views

Can the HPA and DCA contain user data from the filesystem?

The HPA and DCO are hidden areas on some drives that can be used to install firmware-based malware or deliberately hide some files. Tools like hdparm can be used to wipe these areas, as can most ...
user avatar
  • 10.4k
1 vote
1 answer
984 views

What is preventing my disk from spindown?

I have Ubuntu 20.04.1 installed on my laptop on SSD, and I also have a HDD for my large files. I want my hard disk to go to standby mode and spindown after 10 minutes. so I set it with hdparm with ...
user avatar
0 votes
0 answers
132 views

HDD failure and format error, shows 4.1 GB instead of 1.86 TB

I have a Seagate 2.0 TB HDD. I had Ubuntu installed on it and grub on my SSD. I removed the cable when trying to change it. After that when I plugged it in grub showed the black error screen with grub&...
user avatar
  • 1
2 votes
0 answers
3k views

How to erase a locked SSD

I received 2 locked SSDs. I managed to unfreeze them by a power cycle. hdparm reports: supported enalbed locked not frozen not expired: security count supported: enchanced ...
user avatar
1 vote
1 answer
364 views

Why is hdparm not available on Cygwin?

I'm running Cygwin on Windows 7 and have done for several years now. I use kou1okada's brilliant fork of apt-cyg to install packages from the Cygwin repository, and up until now this has suited me ...
user avatar
  • 10.4k
1 vote
2 answers
7k views

hdparm errors: bad/missing sens data (no hdparm commands working)

I recently installed 4 Seagate 4tb SAS Exos 7e8 drives into my Dell r410 running Ubuntu Server 19.04. I am getting an error from hdparm everytime I try to run a hdparm command. The one command that ...
user avatar
0 votes
1 answer
695 views

HDPARM - Reading password from a file? (Or inputting hex)

Almost complete Linux noob here, but I've been forced to switch over from Windows to a live Ubuntu to do some HDLocking magic. TLDR; I have an old Original Xbox that needs the internal drive to be ...
user avatar
  • 3
1 vote
1 answer
752 views

hdparm -C states the drive is in standby regardless if the drive is in standby or not

I have a strange issue. I have a WD Green 3TB drive that always reports its in standby. The drive will go to sleep on it's own after 30 minutes (regardless of what I set with hdparm. But if I do -C ...
user avatar
  • 133
1 vote
4 answers
642 views

3TB Western Digital Hard drive is showing only 2TB

I do not believe this to be an issue with formatting. Both Linux and Windows (64bit) see it as 2TB drive. However it is supposed to be a 3TB drive. It is in an enclosure, and I am wondering if perhaps ...
user avatar
  • 133
14 votes
1 answer
20k views

hdparm doesn't read SSD? HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device

I'm trying to use hdparm to do secure erase of my 512GB SSD SK Hynix. SSD has Windows 10 installed in it. I boot Ubuntu from a usb flash drive. sudo fdisk -l I get a lot of different disks, turns out ...
user avatar
  • 243
1 vote
0 answers
390 views

hdparm -S not working as it should

I have a server running Debian 8 with four 2TB-disks in RAID5 (mdadm). Since the server is used only occasionally, I've used "hdparm -S 244 /dev/sdX" for all drives which will make them spin down ...
user avatar
  • 143
1 vote
0 answers
2k views

blk_update_request: critical medium error, but hdparm is successful

I apologize for the long post; the tl;dr version is that I got a couple of "critical medium error" messages in dmesg, but hdparm is able to read the affected sectors just fine. What gives?! Read on ...
user avatar
  • 277
0 votes
2 answers
96 views

Hdparm set pasword went wrong

I wanted to erase my ssd and so i set a password the drive in order to complete a ATA Secure Erase. Normaly the passwort get reset to NULL after completion of the erase. Then however I realised that ...
user avatar
0 votes
1 answer
7k views

How to make hdparm settings survive reboot?

hdparm settings are lost after reboot. How to setup hdparm -B60 /dev/sda to be saved for the next reboot?
user avatar
1 vote
1 answer
1k views

I've used hdparm secure erase on a USB SATA drive. Is it beyond recovery now?

Acting on information in an outdated version of the ULSAH, I have tried to wipe out my old backup disk (a USB-connected SATA drive, not an SSD) using hdparm with the following options (rather the way ...
user avatar
  • 11
2 votes
1 answer
859 views

Why one of two HDDs wakes from sleep during the first Linux graphical login?

I have two archive HDDs, which I use very infrequently (I mount their partitions manually less than once a week on average). Since I turn my computer off at night, I tried to prevent them from ...
user avatar
  • 131
1 vote
1 answer
2k views

How to know the standby time of a disk before spinning down?

Under Linux, the command hdparm can change the idle time before next standby. hdparm -S 120 /dev/hdc #setting standby to 120 (10 minutes) But how to know what was the previous setting? Sadly, the ...
user avatar
  • 105
0 votes
0 answers
558 views

SSD secure erase on RAID card (Linux)

My SSD RAID write performance has slowed dramatically from when it was new, so I want to use the ATA "secure erase" command to restore it. From my research, this is the best way to restore ...
user avatar
  • 971
1 vote
1 answer
781 views

HPA (Host Protected Area) disabled. Bad consequences?

If an SSD's HPA is disabled, then are there any bad consequences? (In terms of data integrity, wear leveling, etc.) Do the following options make any difference to the SSD controller? HPA disabled, ...
user avatar
0 votes
3 answers
14k views

My Crucial SSD is locked after an erase attempt and can't seem unlock even with correct password. Is there such a thing as a master password?

My Crucial BX100 SSD is locked. I can’t unlock it with the correct (!) user password. So I’ve searched all over google, and read in a thread that I should try to unlock it with the master password. ...
user avatar
0 votes
2 answers
310 views

Can a HGST Replacement Hard Disk contain the wdidle3 parameter?

/dev/sda: SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 04 51 00 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 ...
user avatar
4 votes
2 answers
2k views

Why does disabling head parking on HGST 7K1000 HDD cause read/write sounds every second (or sometimes more)?

When the APM value of the drive is set to 254 or 255 (head parking is disabled) using either hdparm or HDDScan utilities, my HGST 7K1000 HTS721010A9E630 hard drive is occasionally making normal quiet ...
user avatar
14 votes
5 answers
81k views

hdparm error: SG_IO: bad/missing sense data

I'm trying hdparm in Kali Live to add a ATA password to my Micron M600 Self-encrypted SSD, I use: hdparm --security-set-pass PASSWORD sda But I get: sda: Issuing SECURITY_SET_PASS command, password=...
user avatar
  • 1,080
1 vote
0 answers
261 views

Has --dco-restore bricked any drives in hdparm?

In Linux, in hdparm, I want to run the --dco-restore command to ensure no malware is hiding in the hidden part of the drive. However I am worried about the prospect of bricking my drive in the process....
user avatar
1 vote
1 answer
3k views

How do I permanently disable the APM (advanced power management) of my Hitachi hard drives?

I'm using quietHDD and/or hdparm to disable APM on my very clicky Hitachi hard drives (to stop the disk heads from parking). The program supposedly only needs to be run at boot time and after power ...
user avatar
  • 642
3 votes
1 answer
2k views

hdparm: what does --dco-restore really do?

I am following instructions on this other SuperUser post: Harddrive - wipe out "hidden areas" like HPA and DCO also after malware infection For the last few days I have been researching ...
user avatar
4 votes
3 answers
18k views

How to unfreeze drive in Linux?

I run sudo hdparm -I /dev/sda results: Security: Master password revision code = [redacted just in case it's sensitive data] supported not enabled not locked ...
user avatar
0 votes
1 answer
2k views

Error when running 'hdparm --dco-identify' in Linux

DCO: Device Configuration Overlay HPA: Host Protected Area Both are 'hidden' areas on a HDD. I am trying to detect if my HDD has a DCO and remove it/ restore to factory settings. This is so that I ...
user avatar
0 votes
0 answers
32 views

Possible USB pendrive hardware corruption [duplicate]

I have a USB pendrive, with 8 GB storage, and recently I tried to open (mount) it and wasn't able to ("bad superblock" error message). I tried to format it directly using dd and fdisk but no success. ...
user avatar
  • 9
2 votes
0 answers
567 views

Mark entire SATA disk as read-only on the disk itself

Is there a way to mark an entire SATA disk (a Samsung SSD in my case) as read-only on the drive itself, such that it will be write-protected no matter which computer I will put it in? I know there is ...
user avatar
0 votes
5 answers
8k views

Partially Solved: SSD security password - stuck with an I/O Error

Model in question is a Kingston SV300S37A120G. I read here that when trying to unlock a security password, I should put “quotes” around it if it contains special characters. Does that apply for caps? ...
user avatar
  • 111
1 vote
0 answers
4k views

Unlock Samsung SSD 840 PRO with hdparm

My Samsung SSD 840 PRO is locked with a password set by using the BIOS. Every time I turn on the computer, I have to type in the password. Cause there is a BIOS bug, I am not able to change the ...
user avatar
  • 180
3 votes
1 answer
3k views

Making HDD to spindown when not mounted but to keep it spinning while mounted

Is it possible to make harddisk spin when it's mounted and to stop spinning when I unmount it? I was finding answers on the internet, but there is not any precise answer for such a question. There is ...
user avatar
  • 31
1 vote
0 answers
141 views

Ubuntu 12.04 LTS - SIL3124 - Hard drive read at 2.5MB/s

I have a headless media server that I’ve been using for several years now. It’s been entirely reliable, but some time ago 2 of the 4 hard drives started running very slowly. The two slow functioning ...
user avatar
  • 111
5 votes
2 answers
8k views

HDD Power-Up in Standby: prevent from spinning up

On my Linux Mint 17.1 system I am using a Western Digital WD20EZRX HDD for backup. To minimize power consumption and to extend drive endurance, I want the HDD to normally be in spun-down standby state,...
user avatar
  • 153
0 votes
0 answers
1k views

How do I make HDParm or equivalent settings persist in Windows?

I have a laptop with a harddrive that spins down so aggressively (after ~10s of inactivity) that it causes performance problems in games and various other apps that have frequent but spread out drive ...
user avatar
2 votes
1 answer
1k views

How identify a Virtual Hard Disk how unique in Linux?

I'm get the Hard Disk serial number with "hdparm, sdparm, /sbin/udevadm and lshw" is possible in a physical drive, but when i use the "Hyper-V" i don't have the serial number. How i can get the ...
user avatar
7 votes
1 answer
15k views

What is an alternative to Linux utility hdparm on Windows 8? [closed]

Is there a utility similar to hdparm that can be run natively on Windows 8?
user avatar
3 votes
4 answers
22k views

Safe to manually spin down hard drive with hdparm?

I have a laptop with a ssd for primary OS drive, and a large Spinning disk for storage. I currently have an alias I use for manually spinning down the drive when I'm not using it (after umount of ...
user avatar
  • 153
0 votes
0 answers
2k views

HDPARM Security Erase issue

I have bought a used Agility 3 SSD. And I wanted to wipe out data from my Linux box using hdparm. But it was not OK. Here are the steps I followed: # hdparm --user-master u --security-set-pass 1 /...
user avatar
  • 309
4 votes
2 answers
12k views

How to set the spin down timeout on WD Green HDDs

My internal WD20EARS disk does not spin down autoamtically. I tried hdparm -S 1 (5 seconds), but nothing happens. I disabled the IntelliPower headparking with wdidle3 from the Ultimate Boot CD. hdparm ...
user avatar