Ubuntu :: How To Compile The New Hdparm
Apr 19, 2010
I've been using ubuntu for the past year now but unfortunately I have to confess I never had to compile anything from scratch. I bought a new intel SSD drive and I've been running some benchmarks on it with various fs. The new hdparm version has a few features that I'd like to test (TRIM/wiper) but I don't know how to install it as it's not in the repositories. I've been googling for almost 4hrs now but I still haven't found a way to do it.
I've downloaded the tar.gz file from sourceforge and I've decompressed it. Inside, it was a debian folder but there was no .deb file in it. Anyway I did a "make hdparm" and it compiled with no errors. It gave me an "hdparm" executable which works fine if I call it with the full path. what's the proper way to install it in place of the already apt-get installed package?
View 2 Replies
ADVERTISEMENT
Dec 12, 2010
Im wanting to put HDD's to sleep using hdparm after 20min of activity (a 4x disk raid5 array and two single disks). I have edited /etc/hdparm.conf, adding the following lines at the end of the file:
Code:
#6TB RAID5 POWER DOWN
/dev/disk/by-id/scsi-SATA_ST32000542AS_5XW0T1R6 {
spindown_time = 240
[code]....
Code:
sudo hdparm -y /dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWQ411622
The HDD's will sleep with out issue. Ive looked around my log files and cant seem to find anything to do with hdparm, or the HDD's sleeping. Have I make a mistake in the .conf file? Is there some place hdparm logs, or if I can activate some sort of verbose mode? Or does hdparm need to be activated on boot?
EDIT: I'm using ubuntu 10.04.1 x64 last updated today.
View 5 Replies
View Related
Mar 2, 2010
I'm trying to make sure I don't screw anything up. When I type in the following into the terminal:
sudo hdparm -M 128 /dev/sda
Are the changes permanent, even if I restart? If not, how can I make sure it is permanent? I've read of going into the /etc/hdparm.conf file and editing it, but what exactly do I type and where should it be put in the file?
View 3 Replies
View Related
Jan 11, 2011
can hdparm do secure erase on just a partition or does it have to be the whole drive?
View 5 Replies
View Related
Feb 6, 2011
I'm using hdparm -Y /dev/sda1 to force one of my HDDs to sleep upon system startup, but some process accesses it and it is turned on again. How can I disable the automatic startup of HDDs?
View 1 Replies
View Related
May 25, 2010
I am running Xebian on my old Xbox. Currently I am trying to fit an old hdd that is locked (to a mo-bo that has expired). I have connected it up instead of the dvd drive and booted with it as slave. The OS can access it using hdparm -I /dev/hdb, but it showing as locked I have the key which is:
HDDLockDisablePassword 76 1d d3 2b e9 df 17 96 64 3b 5c 5f d9 95 ba 4e 74 f5 e5 0e 00 00 00 00 00 00 00 00 00 00 00 00
I am trying to input this using hdparm I have tried:
hdparm --security-mode U --security-unlock 761dd32be9df1796643b5c5fd995ba4e74f5e50e000000000000000000000000 /dev/hdb
which doesn't work. What format does the password need to be in. I suspect ASCII but I can't type some of the characters. Is the rest of the syntax correct? EDIT I have another key:
XboxHDKey d0 f3 f9 9a 03 20 41 b7 a4 70 bd eb 1b b3 cc ac
Should I be using this one?
View 1 Replies
View Related
Feb 17, 2011
I've just put together a 10.04 server using a GA-D525TUD atom board. I've installed gnome desktop too. I'm trying to get 4 sata drives to go into standby, but hdparm seems to be ignoring the settings. If i issue hdparm -y /dev/sdx the drive duly goes into standby and stays in standby until accessed. I've put entries in rc.local along with the hdparm.conf settings, but still no joy.
Hdparm.conf:
/dev/sdb {
spindown_time = 244
}
[code]....
View 9 Replies
View Related
Sep 17, 2010
I have hdparm running and see the reading in gkrellm
.dev/sda = 36 celcius
in messages
smartd[2895]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 108 to 107
Where to change that smartd reading?
View 1 Replies
View Related
Jan 7, 2010
I have SSDs connect to my Linux machine through the LSI SAS/SATA 1068E controller. I've been trying to issue a ATA secure erase command to my SSDs, but I keep getting error. In fact even hdparm -i fails.
# hdparm -i /dev/sda
/dev/sda:
HDIO_DRIVE_CMD(identify) failed: Invalid exchange
HDIO_GET_IDENTITY failed: Invalid argument
Initially I thought there was some kernel configuration issue, so I tried connecting a SSD to the on board SATA and I no longer get errors. The secure erase worked. It seems there is some compatibility issue with hdparm and the LSI controller/driver I'm using. Any way to make hdparm play nice with my LSI controller? Has anyone had success getting hdparm to work with drives connected to an LSI controller?
Additianal info:
Linux Kernel: 2.6.30
hdparm: v9.27
LSI driver: Fusion MPT SAS Host driver 3.04.07
View 4 Replies
View Related
Jan 26, 2016
I have set up a hdparm configuration file ( /etc/udev/rules.d/50-hdparm.rules ) with :
Code: Select allACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN+="/usr/bin/hdparm -B 255 -S 0 /dev/sda" .
This works correct when I power on my system, however after waking my computer from sleep mode , /dev/sda appears to operate with APM .
Is there a way I can make this setting to be persistent ,i.e. APM disabled when waking up from sleep mode?
I am running Debian Jessie x64.
View 3 Replies
View Related
Oct 13, 2010
I have some general question with with quite an impact for the system I use I have a media server with 2 raid1 mirrors of 2 1 To disk aggregated with lvm and used by a big 2 To ext3 partition.A few days ago, munin (awesome!) started to send me notifications about smart attributes of some disks. Fyi, here's my hdparm.conf:
/dev/sda {
spindown_time = 54
}
/dev/sdb {
[code]...
regarding reliability and disk longevity, is it recommended to have them spin down while not used (most of the day, as these are storage unit for movies, pictures, documents..) or let them spin whatever.. ? Those are WD green and according to Tom' Hardware, the consumption is only slightly greater in idle compared to standby. The other question, (boat one as we say in french ) what is the best configuration here ? My 2 raid 1 stripes, or a raid 5 ? I know that two disks kill the raid 5, and they have to be of the same stripe to kill the lvm on the raid1, but what are the odds ?
View 3 Replies
View Related
Jan 23, 2009
I have tried issuing this command:
[root@C5 ~]# hdparm -a 256 -d 1 -r 0 -k 0 -u 0 -c 1 -A 1 -K 0 -P 0 -X 66 -W 0 -S 0 /dev/sda
/dev/sda:
setting fs readahead to 256
setting 32-bit IO_support flag to 1
[code]....
Note that setting most of the parameters fails - and it still appears to be in 16 bit PIO mode. Am I using the wrong tool here - or incorrect parameters - or are the results misleading? Is there some other interpretation?
View 4 Replies
View Related
Sep 10, 2011
On a Powerbook G4, I set hdparm to set the filesystem readahead (-a) to the maximum 2048 on boot. This produces a visible increase in performance... But today the hard drive started acting up - first generating I/O errors when trying to access various system binaries, and the second time bringing the desktop to a standstill and emitting loud clunking noises.In both cases the drive worked normally after a reboot... Even so, these are not what I'd consider good signs. However, the computer was working perfectly up until now, so I'm wondering if my tweaking was responsible. Can overly aggressive filesystem readahead settings damage an IDE hard drive?
View 2 Replies
View Related
Jul 16, 2010
I'm testing OpenSUSE 11.3 on a server and I'd like to disable the write cache on all of my drives. In Ubuntu Server I was able to accomplish this with hdparm by adding the appropriate settings to /etc/hdparm.conf
As far as I can find the only thing that OpenSUSE offers is /etc/sysconfig/ide which allows you to force particular DMA modes. I could just put the hdparm commands in /etc/init.d/boot.local but I'd prefer to do it the right way if there is a right way to do this in OpenSUSE.
View 2 Replies
View Related
Mar 19, 2010
I wanted to try installing the Metisse window manager, and it depends on Nucleo. I got Nucleo from the AUR, but it fails to compile:
Code:
PNGenc.cxx: In function �void nucleo::png_memory_write_data(png_struct*, png_byte*, png_size_t)�:
PNGenc.cxx:38: warning: �png_struct_def::io_ptr� is deprecated (declared at /usr/include/libpng14/png.h:1125)
PNGenc.cxx:38: warning: �png_struct_def::io_ptr� is deprecated (declared at /usr/include/libpng14/png.h:1125)
PNGenc.cxx: In function �void nucleo::png_memory_read_data(png_struct*, png_byte*, [Code].....
View 14 Replies
View Related
Jul 20, 2010
I too have one of those nagging "stdio.h file or directory not found" things when I try to compile with gcc.
I do the following:
gcc hello.c
which gives:
hello.c:1:20: error: stdio.h: No such file or directory
hello.c: In function 'main':
[Code]...
View 6 Replies
View Related
Oct 12, 2010
I want to learn how to compile vim from the sources, because there are some additions that I want to add, and learn how to deal with this situations, but until now I didn't have success doing it, I can compile vim, but without its GUI I think it's a dependencies problem, but I can't figure out which packages I have to install, what are the dependencies to compile vim with its gui? how to compile gvim, but I don't have the packages for install in my ubuntu 10.10 repositories.
View 1 Replies
View Related
Nov 14, 2010
this may be the wrong forum but how do i compile a .DEB from a tarball? and give me full step by step instructions preferebly for checkinstall since im not gonna distribute anything. none of that
"./configure make sudo checkinstall" crap plz cuz i dont understand it i rly wanna switch from win 7 completely but ill need ur guyz help or im stuck with it T-T.
View 9 Replies
View Related
Mar 27, 2011
I suddenly can't compile anything using gcc - it just stalls (even with a basic Hello World program). I'm very stumped by this in terms of what might be wrong or how to go about finding out, so the best I can do for the minute is post the trace output (attached) and ask for some pointers.
View 1 Replies
View Related
Jan 4, 2010
I can't compile a C program form terminal using gcc by Code Blocks 8.02 is able to do so.
Code:
#include<stdio.h>
int main(void)
{
printf("Hello World
[Code]....
View 9 Replies
View Related
Feb 24, 2010
I have been using Ubuntu 9.10 Karmic for abt 3 months now. I wanted to know how do i complie tar.gz files.
View 4 Replies
View Related
Aug 14, 2010
I'm trying to compile GNU chess from the website, and I get this for the output:
[Code]...
View 2 Replies
View Related
Sep 1, 2010
I've installed babl and gegl and I've already successfully ran ./configure for Gimp 2.7.1
However, when attempting to make, I get this:
Code:
...
CC gimpcolorbutton.lo
CC gimpcolordisplay.lo
CC gimpcolordisplaystack.lo
[Code].....
View 2 Replies
View Related
Oct 22, 2010
I just did a fresh install of Ubuntu 10.10 and i thought I'll just compile the latest version of conky.
So i did:
Code:
./configure --prefix=/usr --enable-audacious=yes --enable-iostats --enable-curl --enable-rss --enable-weather-metar --enable-weather-xoap --enable-imlib2 --enable-lua-imlib2 --enable-lua --enable-lua-cairo --enable-wlan All good. I finally install everything and manage to get configure to finish but once I type make it exists in the middle.
Code:
[...]
mv -f .deps/conky-ccurl_thread.Tpo .deps/conky-ccurl_thread.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE="/usr/etc/conky/conky.conf" -DPACKAGE_LIBDIR="/usr/lib/conky" -pthread -[code]....
View 1 Replies
View Related
Oct 24, 2010
i recently downloaded the Cinelerra Software(not Community version)from [URL].php#download but the problem is : how to compile it.
note : i have ubuntu 10.10
View 5 Replies
View Related
Dec 10, 2010
I am trying to install v4l on my ubuntu 10.10 and kernel 2.6.35-22 and i get this
Code:
make -C /home/saeed/dvb/v4l-dvb/v4l
make[1]: Entering directory `/home/saeed/dvb/v4l-dvb/v4l'
creating symbolic links...
[Code].....
View 3 Replies
View Related
Jan 19, 2011
I'm slowly getting used to the terminal and some of the basic commands i can use, and when to use them. When i was first introduced to ubuntu about 3 months ago i had no idea of the learning curve i was about to embark on, now it has brought me here which was probably inevitable anyway. I have a vps from vpsland it runs ubuntu 10.04 and should hopefully run my private server with ease, which brings me to my topic.
I have my private server source which goes onto my vps to host the server, it contains a few .bat files which i need to convert into !bash so i can run the source on the vps and then direct the client ip to my vps so it goes public. Inside the source there are 3 main files bin, cmd and src. Some of the .bat files we need to !bash and set as executables are in cmd, so lets take a look at one.
[Code]....
View 4 Replies
View Related
Apr 20, 2011
im writing from ubuntu i have made a c program and im wondering how can i compile it for being able to run on mac
View 2 Replies
View Related
Jul 18, 2011
I followed the steps from the this website [URL]..but after I run: sudo make I got this output:
[Code]...
View 2 Replies
View Related
Aug 13, 2011
I need to downgrade my firefox from 5 to 3.6 I downloade the tar.bz2 file but after I extracted and cd to the file I got these errors when trying to install code...
View 1 Replies
View Related