problem about hdparm-Collection of common programming errors


  • Tensigh
    centos disk hdparm tuning
    I’m running CentOS 5 with a PATA hard drive. I’ve used hdparm to tune the hard disk for better performance, but there are 2 settings that don’t work:hdparm -M 254 /dev/hda gives the error “HDIO_DRIVE_CMD:ACOUSTIC failed: Input/output error”hdparm -d1 /dev/hda gives the error “HDIO_SET_DMA failed: Operation not permitted”What do I need to check to set these? It’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

  • user283120
    hard-drive hardware-failure filesystem-corruption fsck hdparm
    Since a couple days, my Seagate Momentus 7200.4 has been failing more and more, possibly because of a power outage. After the “WARNING: Your hard drive is failing” (I’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’t even boot at some point, kernel panic), I did some smartctl tests long and short, I left it alo

  • fredley
    hdparm
    I’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 -> 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

  • MealstroM
    ubuntu raid mdadm uuid 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/sdcblkid:/dev/sda: UUID=”3e502de5-696d-f4b4-470e-XXX” TYPE=”linux_raid_member” /dev/sdb1: UUID=”4ba40aae-65e2-416b-8f17-XXX” TYPE=”ext2″ /dev/sdb5: UUID=”LNt5uO-ZFik-eQ0g-BEhP-FDLi-XXX” TYPE=”LVM2_member” /dev/md0: UUID=”a7eb2443-c3be-45e6-a3eb-XXX” TYPE=”ext4″ /dev/mapper/mydev-root: UUID=”b560f808-db97-4a56-bbf1-XXX” TYPE=”ext4″ /dev/sdc: UUID=”3e502de5-696d-f4b4

  • jonny
    ssd macbook-air io ioctl hdparm
    I’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 –user-master u –security-set-pass Eide /dev/sdasecuri

  • lzap
    hardware hard-drive disk hdparm
    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 works, it’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:

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money