Questions tagged [hdparm]
A command line program to set and view parameters and test performance of storage devices.
39 questions
1
vote
0
answers
24
views
I remember that there is a utility for providing English explanations for SG_IO: bad/missing sense data, sb[]: f0 00 05 04 71 40 01 0a 00 from hdparm
I remember using a Ubuntu Linux utility to interpret (in English) the following:
SG_IO: bad/missing sense data, sb[]: f0 00 05 04 71 40 01 0a 00 00 00 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 ...
0
votes
0
answers
577
views
NVMe very slow speeds INTEL SSDPEKNW512G8L
need some help to identify why this disk is running so slow:
sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1962 MB in 2.00 seconds = 982.96 MB/sec
Timing buffered disk reads: 90 MB in ...
0
votes
0
answers
323
views
SSD feels very Slow
ORIGINAL QUESTION
I kind of get the feeling that my hard disk is a bit slow so I looked it up and I found this website (https://www.howtoforge.com/faq/how-to-verify-hard-disk-speed) that told me to ...
0
votes
0
answers
446
views
Can HDPARM Secure Erase only one partition?
My question is not about how to erase an SSD with HDPARM. I have already done that but I am not sure if the process was completely successful (due to my own fault).
When performing the enhanced secure ...
2
votes
0
answers
89
views
How to automaticaly power off hdd
I have laptop with two hard drives. First is SSD (with system) and the second is HDD with my private files. So I would like to setup to automatically power off of disk after 4 minutes. I set hdparm -S ...
1
vote
1
answer
6k
views
hdparm standby after X time doesn't work
I have an external WD 8TB hard drive connected to my Dell Wyse 5070 via USB 3.0. Recently I've done a full Ubuntu Server reinstall (on internal SSD). Now when I'm trying to configure everything as I ...
1
vote
0
answers
639
views
Setting readonly on a USB stick
I want to create a USB stick with a tool to scan for viruses. I installed the software and after that I set:
hdparm -r1 /dev/sdc1
When I check the USB stick I get this:
hdparm -r /dev/sdc1 /dev/sdc1: ...
0
votes
0
answers
514
views
limit maximum concurrent systemd "start jobs" at boot time (ubuntu 20.10)
At boot time I am getting 18 start jobs all trying to start which causes failures. I want to limit the maximum concurrent start jobs to either 1 or 2. How do I do this.
I have increased all the timers ...
0
votes
0
answers
166
views
Laptop-mode-tools and hard disk
I use laptop-mode-tools to save battery on my Asus TUF A17. I works fine but not for the hard disk : this one is going too much to sleep and wake up after every 10 seconds. So the Load_Cycle_Count is ...
1
vote
1
answer
3k
views
My media storage HDD is constantly spinning in my laptop even when I'm not using that
My laptop has two drives: An SSD for the operating system (Kubuntu 20.10) and an HDD for media storage. Under windows my HDD only spins up when it's necessary but under linux it's spinning constantly ...
0
votes
1
answer
376
views
How can I make my disk not spin down while writing backups to it?
I use a 1TB hard drive to store backups for my system. I write backups once every night.
I have tried to configure my hdparm.conf to spin down after 30 mins of being inactive
/dev/disk/by-uuid/...
2
votes
0
answers
485
views
What's the difference between hdparm APM and spindown?
When I check hdparm man page, I see two options which looks similar to reduce power usage by hard drive. One is -B which sets APM (Advanced Power Management) and other one is -S which is the standby (...
3
votes
1
answer
759
views
Equivalent of hdparm -t for home directory?
I want to test the read speed on an Ubuntu Server hard drive like one would do with hdparm -t, but I need to automatically this on multiple machines where I don't know beforehand what dev the main HDD ...
2
votes
1
answer
3k
views
hdparm.conf has no effect in 20.04 [closed]
I recently did a clean install of 20.04 on my server. In 18.04, I could spin down my mechanical drive with this line in hdparm.conf:
/dev/sda {
spindown_time = 25
}
Now, the config file doesn't ...
1
vote
1
answer
3k
views
nvme SSD problems - Cannot format - HDPARM permision denied
My Kingston 240G SSD has suffered some strange errors. While it had Windows 10 installed on it, it just reset to previous state after every re-boot (meaning no file changes whatsoever, uninstalled ...
2
votes
0
answers
1k
views
gnome-disk-utility or hdparm to spin down hdd permanently → issues
I used to use this hdparm -Y /dev/sda under KDE to spin down hdd disk but this stopped to work as disk started to spin up by itself, I couldn't find a way to correct this by using other hdparm ...
0
votes
1
answer
3k
views
Speed of HDD getting extremly slow
I have two hard drives in my system one SSD for the OS and a HDD for data storage.
After a fresh restart I check the reading speed of my HDD via:
sudo hdparm -t /dev/sdb
and I get quite varying ...
0
votes
1
answer
2k
views
ssd not working after failed hdparm
So I followed the instructions (exactly) from this article but when I typed the last command:
"If the drive DOES support Enhanced Security Erase, type:"
hdparm --user-master u --security-...
-1
votes
1
answer
1k
views
How do you disable disk write cache on Ubuntu Core?
Since hdparm is not available, is there another way on core?
I'm using ubuntu core devices in an IoT application where we cannot risk losing data due to loss of power. This can be done on classic ...
1
vote
1
answer
3k
views
hdparm secure-erase error: "ERASE_PREPARE: Invalid argument"
(Although I'm playing with fire, please pitch advice to a Noob... Thanks)
Now then,
Trying a low level format of a 2TB damaged HDD so that it can use SMART to self mark bad sectors/blocks.
...
1
vote
1
answer
1k
views
How to format a USB drive with non-removable media?
I have a USB drive with non-removable media inside of it.. I want to format the USB drive and get it working again.
here is the output of the hdparm command:
hdparm -I /dev/sdb
/dev/sdb:
SG_IO: ...
0
votes
1
answer
921
views
Use of hdparm state in script works only manually and not by cron
I use the following if ... then test in an auto shutdown script which is started every 15 minutes by cron.
# Check if disk1 is currently spinning
if [ "$(hdparm -C /dev/sdb1 | grep -o "active/...
1
vote
2
answers
9k
views
How to wipe existing SSD prior to fresh Ubuntu install?
I'm running Ubuntu Server 16.04 LTS on a system with a single drive, an SSD. When 18.04 releases in April, I intend to do a fresh install using a USB installer. I'd like to safely wipe the SSD prior ...
0
votes
1
answer
3k
views
Hard drives do not want to go to sleep/standby automatically on Ubuntu 16.04 server with LXD/LXC 2.0
I have small server with five drives put in following layout:
Physical drives
/dev/sda (SSD EVO 850)
/dev/sdb (HDD TOSHIBA DT01ACA300)
/dev/sdc (HDD TOSHIBA DT01ACA300)
/dev/sdd (HDD WD1502FAEX-...
4
votes
3
answers
9k
views
secure erase with hdparm - can still see file content
I downloaded latest stable Ubuntu (ubuntu-16.04.3-desktop-amd64.iso image that I double checked for authenticity) and used it to boot my new Win10 system which I wanted to wipe. I followed the ...
0
votes
1
answer
186
views
hdparm executed wrongly [BOOT LOADER CANNOT READ DISK] [closed]
I had malware on a drive device (even if stagnant) I wanted to low level format the device to get rid of. So I hacked your tool hdparm and wore my own poor results. What I did:
hdparm --user-master u ...
1
vote
1
answer
6k
views
hdparm spin down time not persisting between reboots
If enter the following commands on the command line it works as expected and spins down in the specified time.
sudo hdparm -S 120 /dev/sda
sudo hdparm -S 120 /dev/sdb
Putting this in /etc/hdparm....
1
vote
1
answer
921
views
HDPARM - Secure erase SSD over pxe boot
I have been using hdparm fine for ssd's by booting a live debian or ubuntu from usb. Even if the device is frozen, sleeping the computer works fine because the os was loaded from usb.
But what if i ...
0
votes
2
answers
3k
views
(Low Level Format?) Encrypted Hidden Partition On USB Disc
My USB disc has a hidden encrypted partition. I can't even see it in no software. I tried almost everything in windows. I want to format the whole disc at low level and reuse all the capacity. is ...
0
votes
2
answers
3k
views
How to set a USB drive to read-only mode
I want to set my usb drive to read-only mode bo avoid files being modified by others.
root@test-OptiPlex-360:~# hdparm -r /dev/sdc
/dev/sdc:
readonly = 0 (off)
root@test-OptiPlex-360:~#
root@...
2
votes
1
answer
685
views
My pc says it reads 4633MB/s from SSD drive cache over SATA 6Gb/s, how is that possible?
I got this number using:
jdoe@jdoe:~$ sudo hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 9260 MB in 2.00 seconds = 4633.30 MB/sec
Timing buffered disk reads: 978 MB in 3.00 seconds = 325....
1
vote
3
answers
623
views
Is there a way to make a hdparm setting "stick" over boots AND suspend/resumes?
I have a system here where I set a an idle (low-power) timeout for one hard-drive, as it is not used that much. For this, I have the command hdparm -S6 /dev/sdc in /etc/rc.local.
However, I've found ...
1
vote
2
answers
11k
views
secure erase returns input/output error
I've already given a detailed description of my predicament in my previous question.
Now I've got this:
sudo hdparm --user-master u --security-erase my_password /dev/sda
returns:
...
0
votes
1
answer
452
views
issue setting a password before erasing ssd in what seems like the proper way
I think I've reached the conclusion that I need to format my ssd-drive.
What I believe has happened is that once I updated my antivirus-software to the latest version it somehow detected that the copy ...
2
votes
1
answer
11k
views
ATA Secure Erase - password set - not locked
Today I tried to wipe my ssd using ATA Secure Erase (with an Ubuntu live sytem). I basically followed the description here: What is the recommended way to empty a SSD?
However, I think I made a ...
1
vote
3
answers
1k
views
Problems restoring damaged sectors on hdd
I have some problems with my laptop hdd, due to a lack of electricity during a critical update.
Since then, I have been able to reboot with little to no further issues, but recently, possibly due to ...
1
vote
1
answer
1k
views
Ubuntu keeps resetting HDD APM level to 1 on wakeup from suspend
I have a problem with my Ubuntu 15.10 amd64 system on my ASUS R513C laptop.
I am setting the APM level on my HDD to 254 by running sudo hdparm -B 254 /dev/sda by hand and this fixes a problem with ...
0
votes
1
answer
2k
views
How to set hdparm in boot? 14.04+
I want to disable the Advanced power management of the hard disk in Ubuntu 14.04.
The hdparm command is working:
costales@desktop:~$ sudo hdparm -I /dev/sdb | grep -i "Advanced power management ...
3
votes
1
answer
2k
views
What is so dangerous about --trim-sector-ranges?
I have an SSD that I want to TRIM before installing Ubuntu on it. It has been suggested to me, that I leave some unpartitioned space, such that the wear leveling will have free blocks to work with. ...