Questions tagged [hdparm]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
129 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
1answer
275 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 ...
0
votes
0answers
147 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
1answer
775 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
1answer
1k 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
1answer
993 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
1answer
2k 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
0answers
283 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 ...
7
votes
1answer
5k 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
1answer
1k 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
1answer
4k 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
2answers
5k 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
3k 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
777 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 ...
10
votes
3answers
27k 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
870 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
2answers
1k 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 ...
4
votes
4answers
10k 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
2answers
8k 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
1answer
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
1answer
919 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 ...
10
votes
4answers
17k 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
3answers
4k 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
663 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
316 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 ...
7
votes
2answers
4k 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 ...
2
votes
2answers
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
2answers
258 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
2answers
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
2answers
1k 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
10k 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 ...
24
votes
6answers
15k 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
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?...