{"id":7481,"date":"2014-06-19T04:03:18","date_gmt":"2014-06-19T04:03:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/problem-about-hdparm-collection-of-common-programming-errors\/"},"modified":"2014-06-19T04:03:18","modified_gmt":"2014-06-19T04:03:18","slug":"problem-about-hdparm-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/problem-about-hdparm-collection-of-common-programming-errors\/","title":{"rendered":"problem about hdparm-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/96278ad40181cc4a376ac1e8b0ebde01?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTensigh<br \/>\ncentos disk hdparm tuning<br \/>\nI&#8217;m running CentOS 5 with a PATA hard drive. I&#8217;ve used hdparm to tune the hard disk for better performance, but there are 2 settings that don&#8217;t work:hdparm -M 254 \/dev\/hda gives the error &#8220;HDIO_DRIVE_CMD:ACOUSTIC failed: Input\/output error&#8221;hdparm -d1 \/dev\/hda gives the error &#8220;HDIO_SET_DMA failed: Operation not permitted&#8221;What do I need to check to set these? It&#8217;s already old hardware so anything I can do to squeeze out more performance would be helpful.Thanks.By request, here is the output of hdp<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2ec35ca45d668fb32f9beea1b9d8c61f?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser283120<br \/>\nhard-drive hardware-failure filesystem-corruption fsck hdparm<br \/>\nSince a couple days, my Seagate Momentus 7200.4 has been failing more and more, possibly because of a power outage. After the &#8220;WARNING: Your hard drive is failing&#8221; (I&#8217;m using fedora), the main symptom was the slowness: constant 100 % CPU wait for hours, almost impossible to do anything. I made a backup, then I restarted and I had to do an e2fsck -y (lots of output), which I had to repeat later (didn&#8217;t even boot at some point, kernel panic), I did some smartctl tests long and short, I left it alo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d8d1d62f89cf41fb5ff7a06e1b5c22fb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nfredley<br \/>\nhdparm<br \/>\nI&#8217;m having problems with a 2TB drive being visible as a 1TB drive in the BIOS. A little research suggests this is due to HPA.I have booted off a live-CD. The syslog contains the following:[ 2.800165] ata3.00: HPA unlocked: 3907027055 -&gt; 3907029168, native 3907029168I tried using hdparm:ubuntu@ubuntu:~$ sudo hdparm -N \/dev\/sda\/dev\/sda:max sectors = 3907029168\/14715056(18446744073321613488?), HPA setting seems invalid (buggy kernel device driver?) ubuntu@ubuntu:~$ sudo hdparm -N p390702916<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cbcc505723cd62ea55ca49028da2b0a9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMealstroM<br \/>\nubuntu raid mdadm uuid hdparm<br \/>\nive 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\/sdcblkid:\/dev\/sda: UUID=&#8221;3e502de5-696d-f4b4-470e-XXX&#8221; TYPE=&#8221;linux_raid_member&#8221; \/dev\/sdb1: UUID=&#8221;4ba40aae-65e2-416b-8f17-XXX&#8221; TYPE=&#8221;ext2&#8243; \/dev\/sdb5: UUID=&#8221;LNt5uO-ZFik-eQ0g-BEhP-FDLi-XXX&#8221; TYPE=&#8221;LVM2_member&#8221; \/dev\/md0: UUID=&#8221;a7eb2443-c3be-45e6-a3eb-XXX&#8221; TYPE=&#8221;ext4&#8243; \/dev\/mapper\/mydev-root: UUID=&#8221;b560f808-db97-4a56-bbf1-XXX&#8221; TYPE=&#8221;ext4&#8243; \/dev\/sdc: UUID=&#8221;3e502de5-696d-f4b4<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/13f26389b775a61e897262fb2751eede?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njonny<br \/>\nssd macbook-air io ioctl hdparm<br \/>\nI&#8217;m trying to debug my Macbook Air SSD but am getting IO_support errors. hdparm -c \/dev\/sda\/dev\/sda:IO_support =-2130557184 (???)hdparm -c0 \/dev\/sda\/dev\/sda:setting 32-bit IO_support flag to 0IO_support =-2130557184 (???)hdparm -c1 \/dev\/sda\/dev\/sda:setting 32-bit IO_support flag to 1HDIO_SET_32BIT failed: Invalid argumentIO_support =-2130557184 (???)So then I attempt to Secure Erase my SSD anyway which seems to work. sh-4.1# hdparm &#8211;user-master u &#8211;security-set-pass Eide \/dev\/sdasecuri<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/76b76089c6a9c79573f07123b8050303?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nlzap<br \/>\nhardware hard-drive disk hdparm<br \/>\nI 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 works, it&#8217;s all the same.Please help what values should be proper for it. I do not want it to spin down at all.\/dev\/sda:ATA device, with non-removable mediaModel Number: SAMSUNG HD154UI Serial Number: S1Y6J1KZ206527 Firmware Revision: 1AG01118 Standards:Used:<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tensigh centos disk hdparm tuning I&#8217;m running CentOS 5 with a PATA hard drive. I&#8217;ve used hdparm to tune the hard disk for better performance, but there are 2 settings that don&#8217;t work:hdparm -M 254 \/dev\/hda gives the error &#8220;HDIO_DRIVE_CMD:ACOUSTIC failed: Input\/output error&#8221;hdparm -d1 \/dev\/hda gives the error &#8220;HDIO_SET_DMA failed: Operation not permitted&#8221;What do I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7481","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7481"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7481\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}