Questions tagged [hdparm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
31 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 ...
0
votes
1answer
49 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 ...
1
vote
1answer
194 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 ...
0
votes
0answers
64 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&...
2
votes
0answers
2k 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 ...
1
vote
1answer
251 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 ...
1
vote
2answers
4k 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 ...
0
votes
1answer
541 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 ...
1
vote
0answers
550 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 ...
1
vote
4answers
459 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 ...
12
votes
1answer
14k 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 ...
1
vote
0answers
338 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 ...
1
vote
0answers
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 ...
0
votes
2answers
79 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 ...
0
votes
2answers
5k 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?
1
vote
1answer
947 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 ...
2
votes
1answer
589 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 ...
1
vote
1answer
1k 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 ...
0
votes
0answers
402 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 ...
1
vote
1answer
692 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, ...
0
votes
3answers
12k 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. ...
0
votes
2answers
280 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 ...
3
votes
1answer
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 ...
13
votes
5answers
64k 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=...
1
vote
0answers
223 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....
0
votes
1answer
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 ...
3
votes
1answer
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 ...
3
votes
3answers
14k views

How to un freeze 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 ...
0
votes
1answer
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 ...
0
votes
0answers
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. ...
2
votes
0answers
521 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 ...
0
votes
4answers
7k 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? ...
1
vote
0answers
3k 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 ...
3
votes
1answer
2k 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 ...
1
vote
0answers
136 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 ...
4
votes
2answers
7k 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,...
0
votes
0answers
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 ...
2
votes
1answer
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 ...
7
votes
1answer
14k 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?
3
votes
4answers
19k 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 ...
0
votes
0answers
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 /...
4
votes
2answers
11k 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 ...
1
vote
1answer
1k views

Why do I need to “hdparm -r” in order to mount a Sony camcorder read/write and why is it dangerous?

When I plug my Sony camcorder into my Linux systems, the file system gets mounted read-only. I cannot simply mount it read-write, I first have to use "hdparm -r0" to make the "device" read-write. Why ...
0
votes
1answer
2k views

Hard disk very slow, failing with more and more errors

Since a couple days, my Seagate Momentus 7200.4 has been failing more and more, possibly because of a power outage. After the "WARNING: Your hard drive is failing" (I'm using fedora), the main symptom ...
0
votes
2answers
10k views

How do I make a USB flash drive writable on Linux? [duplicate]

I want to reformat a SanDisk Cruzer Edge USB flash drive but it appears read-only: $ sudo dd if=/dev/zero of=/dev/sdg dd: failed to open ‘/dev/sdg’: Read-only file system I checked the readonly ...
0
votes
2answers
1k views

Connect a ssd externally such that hdparm is fully supported

I am just trying some hdparm magic with my new ssd (samsung 840 pro). However I don't want to change my drive over and over so it would be great if I could connect it externally to my laptop. I have ...
4
votes
2answers
17k views

HDPARM Keeps giving Input/Output Error

I've been trying to set the password on my Seagate drive: sudo hdparm --user-master m --security-set-pass pwd /dev/sda I get Issuing SECURITY_SET_Pass command, password="pwd", user=master, mode=...
-1
votes
2answers
4k views

How to run hdparm at startup so that it sets apm to 254?

I downloaded hdparm from here: https://sites.google.com/site/disablehddapm/ and so far it's been great, it successfully stopped rapid increase in load/unload cycle count. The only problem is that I ...
3
votes
1answer
2k views

How do hdparm's -S and -B options interact?

These two options seem confusing. For example: according to the man page -B 254 "does not permit spin-down". However, testing with -B 254 -S 1 the drive does spin down after 5 seconds. -B Query/set ...
0
votes
1answer
6k views

hdparm -I does not work for logical volumes; HDIO_DRIVE_CMD(identify) failed: Invalid exchange

Does anyone know if hdparm works for logical volumes? [root@qlnx053 home]# pvdisplay --- Physical volume --- PV Name /dev/sdb1 VG Name vg01_sas PV Size ...