Questions tagged [hdparm]
The hdparm tag has no usage guidance.
69
questions
1
vote
0
answers
84
views
nvme performance difference (OS dependent)
My laptop has two nvme drives:
WDC PC SN730 SDBPNTY-512G-1101 (512GB)
Samsung SSD 970 EVO Plus (1TB)
I guess I have performance issue under Linux Mint 21.1 (5.15.0-56-generic). To determine ...
0
votes
1
answer
57
views
High HDD load-count after short smart test
I use an old laptop as a DIY NAS with Debian 9.6 with a HGST HTS541010B7E610 HDD.
The HDD had Power_On_Hours of more than 37k with a Load_Cycle_Count of only 380.
After doing a short smart test with ...
0
votes
0
answers
185
views
Cannot set/enable HPA on SSD using hdparm (SG_IO: bad/missing data)
I am trying to set up a HPA on a new 2TB Patriot P210 SATA SSD:
$ sudo hdparm -Np3600000000 --yes-i-know-what-i-am-doing /dev/sda
/dev/sda:
setting max visible sectors to 3600000000 (permanent)
...
6
votes
1
answer
827
views
Is the “idle3” timeout mess still relevant on Western Digital WD Blue hard drives from 2022?
THE QUESTION:
Is the “idle3” timeout still relevant for 2022 Western Digital Blue hard drives, and specifically for their WD40EZAZ line? Or should I take hdparm -J reporting an invalid exchange as ...
0
votes
1
answer
2k
views
Spin-Down not working on WD-Red
I am using a WD Red drive
Model Family: Western Digital Red
Device Model: WDC WD120EMFZ-11A6JA0
I have set it to spin down after 10 minutes:
hdparm -S 120 /dev/sdc
/dev/sdc:
setting ...
0
votes
1
answer
207
views
hdparm: Are parameters (like spindown time set using -S) saved on machine or on the hard disk?
Say, I connect my external hard drive to a machine/computer and set the spindown time to 5 seconds using:
hdparm -S1 <disk dir>
I test this setup, and the disk does spin down after it is ...
0
votes
0
answers
351
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/...
1
vote
0
answers
2k
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 ...
0
votes
0
answers
20
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
0
votes
0
answers
3k
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 ...
1
vote
1
answer
180
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
1
answer
410
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 ...
2
votes
1
answer
3k
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
0
answers
224
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
0
answers
5k
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
1
answer
557
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
2
answers
9k
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
1
answer
928
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
1
answer
2k
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
3
answers
817
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 ...
18
votes
1
answer
26k
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
0
answers
576
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
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 ...
0
votes
2
answers
355
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 ...
1
vote
1
answer
10k
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
1
answer
2k
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
1
answer
1k
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 ...
2
votes
2
answers
5k
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
0
answers
703
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
1
answer
986
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
3
answers
17k
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
2
answers
364
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
2
answers
3k
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 ...
17
votes
6
answers
100k
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
0
answers
321
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....
1
vote
1
answer
4k
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
1
answer
3k
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 ...
8
votes
3
answers
24k
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
...
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 ...
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. ...
2
votes
0
answers
663
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 ...
1
vote
5
answers
9k
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?
...
2
votes
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 ...
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 ...
1
vote
0
answers
153
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 ...
10
votes
2
answers
10k
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
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 ...
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 ...
8
votes
1
answer
17k
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?
4
votes
4
answers
27k
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 ...