Questions tagged [hdparm]

The tag has no usage guidance.

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

read-only sd card / hdparm missing sense data [duplicate]

I have a micro SD card that used to be on an android tablet as internal storage, by mistake it was ejected. Android says the sd is not supported, formating it as external/internal storage does nothing....
1
vote
0answers
200 views

How to erase a locked SSD

I received 2 locked SSDs. I managed to unfreeze them w/ a powercycle. hdparm reports: supported enalbed locked not frozen not expired: security count supported: enchanced ...
0
votes
0answers
30 views

Cannot issue security erase enchanced command

Good afternoon, So I uploaded the Hdparm -I log. Basically this drive got locked through a Lenovo bios with a password. Currently at this state: locked, not frozen and with both user and master ...
0
votes
1answer
117 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 ...
0
votes
0answers
77 views

hdparm APM settings not working with external hard drive

I'm using hdparm on my external hard drive on raspbian to change the time until it enters standby. However the drive still goes into standby way too early (sometimes after as early as 5 minutes). I'...
0
votes
2answers
1k 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
307 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
377 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
3answers
238 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 ...
6
votes
1answer
7k 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 ...
1
vote
0answers
275 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 ...
0
votes
0answers
1k 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
66 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
3k 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?
0
votes
1answer
626 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
362 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 ...
0
votes
1answer
671 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 kown what was the last setting? Sadly, the info ...
0
votes
0answers
294 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
612 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
8k 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
249 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 ...
2
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 ...
6
votes
4answers
46k 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
180 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
2k 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
1k 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
10k 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
1k 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 ...
1
vote
0answers
30 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
475 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
5k 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
135 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
5k 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
935 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 ...
4
votes
1answer
12k 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?
2
votes
4answers
14k 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
0answers
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
1k 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
9k 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
912 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
15k 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
1k 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 ...
24
votes
2answers
38k views

What do different values of hard drive's Advanced Power Management feature (hdparm -B) affect, except spin-down?

hdparm's -B parameter is documented as: Get/set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better per‐ ...