Questions tagged [hdparm]
hdparm is a command-line tool on Unix/Linux platforms used to adjust or inspect hard drive configuration parameters.
39
questions
0
votes
0
answers
70
views
HDD bricked after hdparm --sanitize-overwrite (SG_IO: bad/missing sense data)
On my HDD (WD RED Plus) I have performed SANITIZE using below command:
hdparm --yes-i-know-what-i-am-doing --sanitize-overwrite-passes 1 --sanitize-overwrite hex:11111111 /dev/sda
It was running fine,...
1
vote
1
answer
243
views
Why does `hdparm -t` take so long to produce accurate results on my EC2 instance?
I'm profiling a data-processing program that I wrote and I want to understand the theoretical throughput of the machine I'm on. Specifically, I want to measure what disk read speed my g4dn EC2 ...
1
vote
1
answer
411
views
"hdparm -s 1" on USB disk -> bricked? - USB drive is on power on in standby mode which cannot be reverted with hdparm
I have a disk which was apparently put into PUIS mode with hdparm.
As the disk does not spin up on power on automatically, I think I need to send it directly to the USB device (which is not even ...
1
vote
1
answer
1k
views
Spin up all raid drives at the same time
Here is the configuration:
4 HDDs in a RAID-5 array (mdadm)
hdparm spin_down_time set for all disks
Debian jessie 8.11
When the drives are in standby mode and the RAID array is requested, they wake ...
1
vote
1
answer
3k
views
Unlock SATA SSD locked with Dell's HDD password option in BIOS
Latest problem is a locked SATA disk. It is a Samsung 870 QVO SSD. It has been locked a long time ago with the Dell BIOS password utility. But because an admin password was set, the system never ...
2
votes
1
answer
553
views
HDD spins up spuriously for no reason
I have four HDDs in my NAS.
Three (Western Digital, all the same model) are put in standby mode (spin down) by hd-idle and they stay in standby until I use them. The reason I use hd-idle and not the ...
0
votes
1
answer
984
views
Spin down of Icy Box Raid Enclosure not working
I am running Ubuntu server 18.04 and I am using an ICY BOX IB-RD2253-U31 enclosure with two WD Black disks (no NAS disks) in RAID 1 mode (mirror).
The external enclosure is connected via USB to the ...
1
vote
0
answers
555
views
raid not spinning down - mdadm issuing syncs?
I have an issue with an archival server that is running a RAID 5. The server is being accessed only every couple of days, so I want these disks to spin down when there is no activity for a while.
...
1
vote
1
answer
2k
views
"UNMAP not supported" error on a device that supports UNMAP
I was playing with trim/unmap commands on a Samsung SSD (MZ7WD240 model).
To check the unmap support on this device i ran the following command:
hdparm -I /dev/sda | grep TRIM
And as expected the ...
0
votes
2
answers
3k
views
Why does udevadm not provide me a disk serial number when hdparm can?
Compare:
root@home:~# hdparm -I /dev/sdb | grep Serial
Serial Number: WCJ025C8
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3....
2
votes
1
answer
1k
views
How to undelete a moved file on Linux
I accidentally moved a file onto an existing file and need to recover the old file.
original file: /mnt/FILE (was around 1 GB)
new file: /mnt/FILE (now is 17 bytes)
command:
mv SOMEFILE /mnt/FILE
...
2
votes
1
answer
4k
views
hdparm unlock ssd with correct password encoding
I have an old password protected SSD connected via USB to my Linux System. I'm trying to unlock it with hdparm.
Problem is my password was ./perspective (it doesn't matter now because I only used it ...
4
votes
0
answers
380
views
Bad sector on disk, part of a LVM over RAID1 array, which files are affected?
My RAID1 array /dev/md1 is rebuilding after one of the disks has been replaced.
Problem : the source disk has Unrecoverable Errors, and my only choice if I do not want to lose the whole data set (no ...
20
votes
3
answers
126k
views
How to unlock an SSD disk with hdparm?
I have an SSD disk with password protection, but the password was lost long time ago... so I tried to erase the ATA security with the hdparm command.
With "hdparm -I", the disk information ...
7
votes
1
answer
8k
views
How to send "ATA Secure Erase" command to SSD?
A very good way to erase a SSD which have SED support is to change the password/key. But what to do with those that doesn't have SED support?
This article says
Fortunately it is possible to erase ...
2
votes
1
answer
2k
views
hdparm serial number is garbage
I'm trying to read the model and serial number from a drive using "hdparm -I /dev/sda" and I find on some systems (eg: VMware virtual machines) the serial number and model often return garbage (see ...
2
votes
1
answer
6k
views
How to erase a SSD to restore factory performance in Linux?
Due to big performance issues with an mdraid-1 array I'd like to pull down from the array one of the devices (Samsung 840 Pro), erase it to restore factory performance and re-add it to the array. The ...
1
vote
2
answers
6k
views
Disk Cached IO very slow
I have two boxes with exactly same hardware configuration. Both having RAID0 (created using mdadm) over SATA disks. But I am getting different cached reads while testing using hdparm command.
$ ...
1
vote
0
answers
4k
views
Differences between hdparm --read-sector and dd with "Current Pending Sectors"
This was originally an "answer" to How to use hdparm to fix a pending sector?
I'd been getting SMART notifications for the same "Current Pending Sector" for days.
The dd solutions around weren't ...
2
votes
1
answer
903
views
Replacement raid1 drive is one block smaller. What to do?
Apparently once should always leave a bit of empty space at the end of each raid1 partition.
But if we're too late for that, what can be done if a replacement RAID1 drive is slightly smaller than the ...
15
votes
3
answers
36k
views
How to use hdparm to fix a pending sector?
SMART is stating one pending sector on of my server's hdd. I've read lot's of articles recommending using hdparm to "easily" force the disk to relocated the bad sector, but I can't find the correct ...
-1
votes
1
answer
1k
views
linux "hdparm -B" what is a good power management value? [closed]
I run a home server with Linux (ubuntu). Data (not the os, not swap, not /home) is stored on a large software RAID5 array.
The server is on 24/7, but to reduce noise I would like the raid drives to ...
1
vote
2
answers
2k
views
Is wiper.sh working?
I'm setting up a server running Ubuntu Precise, and I'm trying to verify if SSD TRIM is working.
fstrim is failing:
~ sudo fstrim -v /
fstrim: /: FITRIM ioctl failed: Operation not supported
So I ...
5
votes
4
answers
13k
views
How can I unfreeze an SSD connected to a remote server?
I don't have physical access to the machine, so I can't unplug the drive.
# hdparm -I /dev/sda | grep frozen
frozen
The advice I've read elsewhere is to hotplug the drive, pull the power ...
0
votes
2
answers
10k
views
how to know what is disk uuid for md raid1 and hdparm?
ive got md0 (raid 1) array and want to make write cache off on them during system boot (ubuntu 12.04 server).
md0: /dev/sda /dev/sdc
blkid:
/dev/sda: UUID="3e502de5-696d-f4b4-470e-XXX" TYPE="...
1
vote
1
answer
1k
views
Is it possible to get hdparm to report the current level of performance degradation on my SSD?
I work on a product that is a headless Debian Linux system with removable Intel X-25M solid state drives. Recently we noticed that the read/write performance of these drives degrades over time, and ...
0
votes
1
answer
1k
views
Disk is spinning down each minute, unable to disable it
I played with spindown and APM settings of my Samsung discs and now they spin down every minute. I want to disable it, but it seems it does not accept any of the spindown time or APM values. Nothing ...
15
votes
3
answers
25k
views
How to determine disc spindown time
I am able to set both APM and spindown times using the command:
hdparm -S 246 -B 128 /dev/sda
Unfortunately I can only find the APM value in the information output:
hdparm -I /dev/sda | grep ...
2
votes
3
answers
5k
views
What's a good free open source hard drive benchmark? [closed]
After a quick search on Freshmeat I found nothing. Anybody know of a good utility?
I normally use time (dd if=/dev/zero of=newfile ...) to test write speed
and hdparm -t to test read speed.
Thanks.
2
votes
2
answers
677
views
Linux Disk tuning help
I have a Software RAID1 disk that is randomly experiencing very slow read times.
hdparm -t /dev/md0
/dev/md0:
Timing buffered disk reads: 2 MB in 12.43 seconds = 164.80 kB/sec
It appears to be ...
3
votes
1
answer
358
views
Set device offset in Linux due to failed hardware RAID?
I have a failed hardware RAID card. This card had two drives in a RAID-1 mirror. Plugging one of the drives into the motherboard shows no partition table. Using a program like testdisk, I can see ...
9
votes
2
answers
6k
views
Hdparm poweron_standby is how dangerous?
jacks@Gen4:~$ sudo hdparm -s 1 -S 4 /dev/sdb
/dev/sdb:
Use of -s1 is VERY DANGEROUS.
This requires BIOS and kernel support to recognize/boot the drive.
Please supply the --yes-i-know-what-i-am-doing ...
4
votes
4
answers
3k
views
Benchmarking hard disks on Mac OS X SL
On Linux I would usually use "hdparm -tT device" when I want a quick idea of how an hard drive is performing compared to another; having switched to Mac OS X a few months back I have yet to find ...
1
vote
2
answers
266
views
Measuring disk performance for random seeks?
I'm setting up a server that involves lots of database writing during regular updates, and I have wildly varying results between different machines. I'm trying to find out what I can expect from ...
2
votes
2
answers
3k
views
How can I test hd performance on an OpenVZ container?
CentOS 5.x | VPS | OpenVZ
I'm trying out a vps that uses OpenVZ and am not sure what command to type to measure disk read performance. I thought hdparm would work but I get the following:
[root@...
1
vote
2
answers
2k
views
Hdparm slow server
My web site server is very slow and I contacted my hosting company. This company ask me to execute this command line:
hdparm -tT /dev/sda
The result is here:
/dev/sda:
Timing cached reads: 1112 ...
1
vote
2
answers
13k
views
Ubuntu seems to ignore spindown_time in config /etc/hdparm.conf
I have /etc/hdparm.conf configured to power down the external USB HDD, but it actually never spins down. When I manually turn it off (hdparm -Y or set its spindown hdparm -S 36) - everything works as ...
28
votes
6
answers
22k
views
What's the effect of standby (spindown) mode on modern hard drives?
I just assembled a new Linux file server with several Samsung HD103UJ 1TB hard drives and I am currently optimizing it.
The question I can't find an answer to is: is it reasonable to set a spindown ...
3
votes
1
answer
4k
views
Where Does Ubuntu Execute Hdparm.conf Settings
I'm looking for some info about the hdparm.conf file in Ubuntu (Jaunty). I have added some settings in there and would like to "run" them.
How can I execute the hdparm.conf file from the command line?...