hdparm is a command-line tool on Unix/Linux platforms used to adjust or inspect hard drive configuration parameters.

learn more… | top users | synonyms

1
vote
1answer
670 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 ...
0
votes
2answers
413 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
0answers
598 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
1answer
236 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 ...
2
votes
3answers
5k 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
1answer
390 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 ...
0
votes
1answer
688 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 ...
0
votes
2answers
2k 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 ...
0
votes
2answers
3k 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" ...
1
vote
1answer
665 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
1answer
549 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 ...
5
votes
3answers
5k 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 ...
0
votes
3answers
951 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
2answers
549 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
1answer
229 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 ...
4
votes
2answers
1k 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 ...
1
vote
2answers
2k 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
2answers
192 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 ...
1
vote
2answers
2k 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: ...
1
vote
2answers
922 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
2answers
7k 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 ...
16
votes
6answers
5k 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 ...
2
votes
1answer
2k 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 ...