Ubuntu :: Making Hdparm Settings Permanent?
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
ADVERTISEMENT
Jan 24, 2011
I have recently used PowerTop to get information about what settings I could tweak to make my laptop more power efficient. However, my problem is that all such changes seem to dissapear as soon as I reboot my machine. For example, if I run:
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
This value will have been rewritten to 500 when I reboot. Is there any way to change this, and make sure that any and all changes I do to my system remain permanent until I change them to something else? This question is of course not limited to Powertop, I would also like changes I do via for example cpufreq to be permanent as well.
View 5 Replies
View Related
Jan 25, 2011
Is there any way of making nomodeset permanent one has to reinstall? I know at least 1 distro has an etc/sysconfing/kernel file you can edit to make the value NO_KMS_IN_INITRD=yes
then mkinitrd makes nomodeset permanent Otherwise its a real bind to have to keep burrowing into the grub2 menu each time to make sure it loads.. :>(
View 2 Replies
View Related
Feb 9, 2009
I am using RHEL4 server in my network. I have configured VLAN in my network. i am using two gatways to access my Network. I also add two gateways to both the network. but only one gateways will work. Then I added a route for the other netowrk. but when i restart my computer my route is deleted. i used this command to add the route
route add -net 10.0.0.0 netmask 255.255.0.0 gw 10.0.0.1
what i should do that my route should remain permanent either i restart my computer.
View 3 Replies
View Related
Apr 8, 2010
I don't want ubuntu to clean /var/cache/apt/archives directory automatically... is it possible to make it permanent by editing any conf file?
View 5 Replies
View Related
Jun 26, 2011
I'm seeking to make permanent a selection in openSUSE-11.4 LXDE between english and Thai keyboards. And I need help here, as I have only succeed partially. After installing Thai via YaST regional settings, I followed the advice in an LXDE forum here LXDE.org Forum - View topic - How to add layouts to keyboard preferences in LXDE? and on the LXDE Panel I righted click on LXPanel->Add/Remove Panel Items->Panel Applets->Add->Keyboard Layout Switcher. Upon a restart of X that gave me a US flag symbol (for US keyboard) in lower right hand corner. No other language selection. I then as a regular user sent the command
Code:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,th
and I then had a choice between Thai and US keyboard which worked well. That unfortunately is only temporary until the next reboot. HOW to make it permanent ? I tried, and I was unable to make that permanent. I tried adding .Xkbmap to /home/user (restarted/tested) and when that failed I tried adding .Xmodmap to /home/user (restarted/tested) and when that failed I tried adding /etc/X11/Xkbmap (restarted/tested) and when that failed I added same line to /etc/X11/Xmodmap (restarted/tested) and that also failed. The line in all cases was
Code:
-option grp:ctrl_shift_toggle,grp_led:scroll us, th
I also tired editing the /etc/X11/xorg.conf.d/90_keytable.conf file, changing it to
Code:
Section "InputClass"
Identifier "LocalKeyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us, th"
[code]....
I could create a script with my 1st successful effort (and have that run when LXDE starts up) but surely there is a more elegant way? I am also NOT keen to have this system wide (even thou I tried that system wide (unsuccessfully) at the end) but I would rather only have this for one LXDE user.
View 8 Replies
View Related
Jul 5, 2011
Im trying to setup my configuration but i don't know how.I got dvi-hdmi adapter on Eee pc box 202 and when monitor(19lcd tv) is connected to power source everything is fine but if is switched off doesn't.Mean starting and stopping probably something with auto configuration (video),because when i connect dvi-vga adpater even on off monitor it's does work.Any idea how to correct pernament setting in Kde?So when connected via dvi-hdmi and off monitor -doesn't start fully system..If connected via dvi-vga does work fine
View 2 Replies
View Related
Jun 8, 2011
The hardware is a Toshiba Satellite 755 with Nvidia graphics. An external monitor is connected via HDMI. The aim is to disable the laptop screen and only use the external monitor. This is no problem with Windows 7. With openSuse 11.4 (64bit), this can also be done via systemsettings. However, after each restart the laptop screen is again enabled and the HDMI only a clone (with the correct resolution), although the settings should have been made permanent. Is there a way to fix this?
View 7 Replies
View Related
Feb 24, 2010
I'm having some difficulty setting my txpower setting on my atheros wifi card. I am using ath_pci driver on ubuntu 8.1 64 bit. I can set the txpower to whatever, 12dBm for example, it accepts the change but quickly reverts back to a default value of 8dBm. Power saving is off. How can I make these changes permanent, or adjust the default value?
View 2 Replies
View Related
Jan 17, 2010
I'm wanting to use some Emerald themes. I start the compiz icon and do the settings then when i restart the settings don't stick. Does anyone know how to make them permanent?
View 5 Replies
View Related
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
View Related
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
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
May 19, 2010
I'm running Ubuntu 10.04 and I've been looking to customize what's given as my command prompt, and I learned how to do this by entering PS1="desired text" which is remarkably straight forward.
I'm a little stuck on how to make this permanent though. If you just type in that command, then when you close that terminal session and open a new one, it resets to the old/default prompt. I read the tutorial at:
http://www.cyberciti.biz/tips/howto-...up-prompt.html
and it referred to editing the .bashrc file in ubuntu. I found the bash.bashrc file in /etc/ and edited the line that said PS1=, however it didn't change my command prompt. I searched for other files relating to bash and in clear instances that PS1= was given, I changed it to see if the command prompt would change. This has been to no avail so far though.
Does anyone know which file needs to be edited/what needs to be done in order to make a customization of the command prompt permanent?
View 6 Replies
View Related
May 29, 2010
I have ufw on a 8.04 LTS machine and I have vsftp running on it. Now, I have a standard deny all but when I do ufw allow ftp and restart ufw is ok, I can reach my ftp. But... after reboot I can't and the 21 and 20 ports are not open anymore. I know it is a shame but I solved it in a very very dirty way. I have a script that takes ip ranges from a list file at boot and makes a blackhole routing for them and then, I included two lines in it commanding ufw to open ftp and restarting it. It works, but I want to know why were my changes not permament.
View 9 Replies
View Related
Dec 9, 2010
I read this article as a way to do a non-permanent of something. I saw 2 problems. The first that my rm is located at /bin/rm. I would assume I would change the location to /bin/rm. The second my rm is a executable file and not a text file. So will replacing my rm file with the shellscript below work? I would think they would need to be the same type of files.
[Code]...
View 1 Replies
View Related
May 20, 2010
Http://ubuntuforums.org/showthread.php?t=961324
In this link, the last poster describes a way to disable tap click which I find VERY useful, but the thing is, after I reboot it goes away. Is there anyway to make this command permanent?
View 2 Replies
View Related
Aug 13, 2010
I use Ubuntu 10.04 and after installing the driver for my onboard video card, I can no long boot into Ubuntu. I'm thinking that if I was somehow able to remove it, this might fix the problem. Is there a way to do this, possibly from the boot cd?
View 4 Replies
View Related
Jan 31, 2010
Did you play too much with compiz and after-a-while you realize that certain functions are not working anymore?
Well, just follow the steps below:
Quote:
gconftool-2 --recursive-unset /apps/compiz
Then,
Quote:
Restart your PC / lappy
[URL]
View 4 Replies
View Related
Aug 21, 2011
i have a computer with 3 users on it, and a folder using samba that everyone on the network has access to. Lets say that, the folder is stored in /etc/sharedfolder. What happens is, when user1 puts a folder in it, then logs off, user 2 attempts to modify it and fails, because permission is set to 755, and they are not in the same group. (even if they were, it should still need to be 775) Anyway, my current solution is, every 5 minutes a crontab changes permission like so: chmod 777 -R /etc/sharedfiles && chown useradmin:superadmin -R /etc/sharedfiles Which works, but seeing as there is getting close to a gig in there, this is a bad solution, as it eats up the computers resources. Solutions that i think might work:
1) create a script that only changes permissions that need be changed.
2) change file permission settings to force all documents to inherit parent document settings
View 9 Replies
View Related