General :: Ubuntu - Change Swap Disk Priority Permanently?

Aug 8, 2010

I'm using two swap disks. Changing the order they are in in /etc/fstab and using "pri" in fstab doesn't have any effect. This is what it looks like /etc/fstab

#swap on other disk
UUID=90a1550c-84d6-4bde-8bc1-7c15292980f1 none swap sw,pri=-1 0 0
#swap on same disk
UUID=13b70e65-f1c3-4728-920f-9e92467d1df0 none swap sw,pri=-2 0 0

[Code]...

Its opposite of what it is in fstab, and changes to fstab have no effect.

View 1 Replies


ADVERTISEMENT

Server :: Swap Files Priority Values?

May 14, 2010

As mentioned in "man swapon" priority value is between 0 and 32767. BUT usually if we add swap devices without giving the priority, their priorities are set as -2, -3, -4 and so on; values which does not fall between 0 and 32767.Why is it so ? Any ideas ? However, I know we can change them through "swapon -p". But, if do not wish to do so, it uses -2, -3, -4 only. Like below,

Code:
[root@server ~]# swapon -s
Filename Type Size Used Priority

[code]....

View 2 Replies View Related

Ubuntu :: How To Turn On Swap Permanently

Jul 3, 2011

I created the swap partition, but the problem is, that i have to turn on swaf every time when i turn on my computer. How to turn swap on permanently?

View 9 Replies View Related

General :: X: Warning; Priority Set To -1 Instead Of Requested Priority 0?

Dec 9, 2010

I have BT4 as an iso image and start it up by booting from cd, when i try the command root@bt~:startx it comes up with this fatal error. what can i do to get this work? and of course im new at this.

View 5 Replies View Related

Debian Configuration :: How To Disable Swap Permanently

Apr 3, 2011

So from a web server stand point if we start using swap for httpd or mysql its bad and performance goes down the drain. So would it be a good or bad idea to disable swap entirely?

View 2 Replies View Related

General :: How To Change Permanently A Script

Apr 28, 2010

I play MAME in Ubuntu 9.10 and every time i boot my PC I calibrate my joystick with jscal. The correction values are stored in a script ( /etc/joystick.cal ) but when I reboot, the old values are written again in so I have either to repeat calibration or open the script and give the right correction values (which I have stored somewhere). So , what is the way to save my changes in this script permanently ?

View 6 Replies View Related

General :: Any Way To Permanently Change Terminal Font Size

Jul 10, 2011

I installed Ubuntu on my Netbook. I like it to use the Terminals. I don't mean the "GUI-Terminal-Emulators", I mean those I can open with "Alt+FX". There the font size is to big, so I changed it with "dpkg-reconfigure console-setup". It worked, but after restart the font were "reseted" and big. Is there a way to permanently change the font size?

View 4 Replies View Related

Red Hat :: How To Change Os Booting Priority

Mar 27, 2011

I have installed Windows XP ,then Redhat but now when i am opening my system it automatically takes redhat . I want to change the priority to Windows XP . I want when I swich on the system it should open Windows Xp .. Is it possible to change this priority now .or I have to agin install redhat and change priority then during installation.

View 4 Replies View Related

Ubuntu :: Change Nice Priority At Launch?

Jan 12, 2010

I'm currently running on a really old computer with one proc and little memory. It's just enough to get skype running but it only works well enough if I change the nice level to -5 or lower. Now the person that uses skype in the house is really the wife, I don't want to teach her how to open htop in command line, fine the pid and then use the correct command to change the nice.What I am looking for is a script (sorry I don't know thing one about programming/scripting) that will change the nice priority periodically for all pid that are skype. This way call processes will get reniced as well. I know better then to run it as root/sudo, but I am at a loss (even searches came up with not much) on how to do this.

View 1 Replies View Related

General :: Swap Partition To The Back Of The Disk By Default?

Sep 8, 2011

As far as I know hard drives are faster at the beginning of the disk. If this is true, why does Ubuntu put the swap partition to the back of the disk by default?

View 1 Replies View Related

Ubuntu :: Boot Priority Change With Every Restart After Shutdown

Mar 4, 2010

Whenever I start my PC, the information of 'First Boot device' in BIOS changes from hard disk to CD-Rom. It happens with new start, I mean, if I restart my computer after resetting First boot device to hard disk, then priority does not change. Just as I switch on computer, a black screen appears with the message:
CMOS - checksum error - defaults loaded
press F1 to continue, DEL to enter setup

Recently it used to happen, that PC was not reading my hard disk containing GRUB. I have 2 hard disks. I switched the power cables of two hard disks. After that, both hard disks were shown by BIOS but the above mentioned error started appearing. Also grub takes too much time to load. It takes almost 20 seconds. Earlier I was using 'Puppy Linux'. In that, Grub was loading in fraction of second.

View 6 Replies View Related

Programming :: Change Priority When Creating New Thread?

Feb 21, 2010

I have created an error logger thread in my application using pthread_create(), I want this thread to have a lower priority than my application's priority so that the application would run properly. Is there an easy way to do this? I know that we can change priority for thread created with policies FIFO or RR, since I don't set the policy for my application, I don't know what to set for my thread.

View 4 Replies View Related

Ubuntu Networking :: Change The Network Card Priority With Multiple Cards?

Sep 26, 2010

I've got two network card interfaces on my computer, one wireless and one wired. The wireless card is connected to the Internet and the wired is connected to the LAN. When only the wireless card is active, Internet works. As soon as i enable the second wired card, Internet stops working. And it seems like Ubuntu chooses the wired card for Internet as soon as it's enabled.

Are there any ways to solve this? So my Ubuntu box always chooses the wireless card for Internet traffic and let me use the wired device for LAN only?

View 1 Replies View Related

General :: Set The Limits For Unlimited Virtual Memory With Limited Ram And Swap Space On Disk??

Apr 6, 2010

clarify me with ulimit output and memory limit?

ulimit -a output:
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 1572864

[code]...

View 2 Replies View Related

OpenSUSE Hardware :: Change The Priority Order Of The Sound Cards In Yast?

Apr 10, 2010

I've tried googling, but can't manage to figure out how to change the priority order of the sound cards in yast. From yast > hardware > sound, I can see the (default) internal audio from the motherboard, and I can see the usb headset that I would like to be using as the default. How should I go about changing the priority order on these devices?

View 3 Replies View Related

Ubuntu :: How To Change The Timezone Permanently

Jan 3, 2010

So, here's my problem. Every time I'm trying to change my timezone, it last until I'm restarting my comp again, it seems like it doesn't save the changes permanently.I'm using Ubuntu v9.10 installed through Wubi. My timezone is set currently via BIOS.

View 8 Replies View Related

Ubuntu :: Priority To Hard Disk Containing Kubuntu Login To Kubuntu But Can't Get In To Windows7?

Sep 15, 2010

I have two OS in my system. Windows& and Kubuntu. Both are in separate hard disks. I was using both. In between i have upgraded my system. now when i am giving priority to hard disk containing kubuntu, i can login to kubuntu, but cant get in to windows7. i have upgraded grub but not working. when i am giving priority to hard disk containig windows7 it enters and work properly. but not working in the previous.

View 1 Replies View Related

Ubuntu :: Change Resolution Permanently Of Second Monitor?

Apr 13, 2011

I use a laptop and Ubuntu 10.10 x86. Problem is I have a second monitor with 1280x1024 native resolution, and that resolution is not displayed in modes.So I solved my problem temporarily using this: Code:xrandr --newmode 1280x1024_60.00 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

xrandr --addmode VGA1 1280x1024_60.00 The 1280x1024 mode appears and I do "apply" -> all OK. And then I press "make default" (where I get a pop screen confirmation warning me that will be the default config after reboot) - nice! Problem is: "make default" don't work! And I have to add a new mode after each login.

View 3 Replies View Related

Ubuntu Networking :: Change Eth1 Mac Address Permanently 9.10?

Jan 22, 2010

how can I change eth1 mac address permanently in an easy way?

View 1 Replies View Related

Red Hat / Fedora :: Change Umask Value Permanently ?

Jun 16, 2009

How to change Umask value permanently for all user in Red hat Version

View 1 Replies View Related

Ubuntu :: Change The Default Format Of Openoffice Files Permanently?

Apr 2, 2011

i want to change the default format of open office files permanently. Like if i save a file it saves as .odt i want to change it to .doc

View 4 Replies View Related

Fedora :: Permanently Change Default Source?

Oct 17, 2010

my last Fedora installation, the pulseaudio source is wrong. The default sink is:

[code]...

How can I permanently change the Default source to be:

[code]...

When I change it on desktop login as regular user to the right thing, then log out or reboot, I have to change it again when I log back in again. This is with an Audigy2 card, and onboard audio chip. I switch between the two for various reasons.

View 2 Replies View Related

Slackware :: Clocks Won't Remain Set - How To Change It Permanently

May 18, 2010

I had to reinstall Windows recently, which reset my clock under Linux. No problem, I set the clock, and then set the hardware clock to the system clock. Rebooted under Windows, and both were fine. After rebooting into Slack, it is again a few hours off. How can I change this permanently?

View 6 Replies View Related

OpenSUSE Hardware :: How To Change Screen Resolution Permanently In 11.3

Jul 21, 2010

I upgraded my opensuse from 11.2 to 11.3, but after it, I have several problem with it.

Firstly: My graphic card is intel hd4500 and motherboard chip's is intel G41. After upgrading, I understood suse 11.3 didn't have sax2. at a result. I have problem with graphic card driver and consequently can't change screen resolution, therefore after each restart, my resolution automatically fix to 1600x1200 but I would like to set it in 1280x1024? What can I do to change it permanently?

Secondly: I installed vmware workstation 6.5 and after it, I see a message that say vmware need to Kernel Header 2.6.34-12- desktop. I install kernel-syms, kernel-source, gcc and make but doesn't run yet. What happen for it?

View 9 Replies View Related

Debian :: Permanently Change Locale From POSIX To En_GB?

Apr 3, 2010

All my LC environment variables are currently set to POSIX at boot, though I can't find the startup script that does this. I've grepped through /etc/rcS.d and /etc/rc2.d but no luck. In /etc/default/locale, LANG is set to en_GB.UTF-8, which is my preferred locale. But this doesn't stop all the LC's being set to POSIX. Consequently, my dates follow the American convention, which I find hard to read.

I tried resetting with update-locale LC_TIME=en_GB.UTF-8. This changed all the locales to en_GB but only for the session. When I rebooted, everything went back to POSIX. The only change is that en_GB.utf-8 is now in the /etc/default/locale file as the value of LC_TIME as well as LANG.

View 2 Replies View Related

Software :: Permanently Change Background Color Of Vi Editor?

Jul 12, 2010

How can I permanently change the background color of vi editor so that every time I open a document the editor has my default background color?

View 2 Replies View Related

Ubuntu Installation :: Swap Disk Not Being Used?

Mar 25, 2011

am using 10.10 maverick and after installing ubuntu on an 8gig sd card the swap partition (1.55 gigs) is not being used, i am not sure what to do

View 9 Replies View Related

OpenSUSE Hardware :: Permanently Change Printer Margins In CUPS?

Feb 16, 2009

With the printer I am using, the text always extends part of the way into the margins, resulting in it getting cut off. Is there any way to change the margins for a printer?

View 7 Replies View Related

Ubuntu :: Encrypted Swap And Suspend-to-disk

Feb 15, 2010

I have installed ubuntu via the alternate installer, activating encrypted home directories, which in turn enabled to have encrypted swap partitions and disabled hibernation (suspend-to-disk). I understand the arguments for having an encrypted swapspace in these cases. However, I'd like to be nevertheless able to hibernate. Now that the system is already set up, I cannot change and completely encrypt my harddisk via LUKS+LVM as it is suggested in numerous places.Instead, I tried the following. I created two swap partitions (sda7 and sda: one being encrypted via cryptsetup, to be used as a 'real' swap (sda7). Another without encryption, which is not listed in /etc/fstab, so that it is not normally used by the system. I have then configured uswsusp in order to use sda8 as a resume partition:

[code]...

I have decided to encrypt the resume image - I don't care entering a password once every time I resume, it just shouldn't be at every boot. And this way, I can have hibernation without the uncomfortable solution of having my decrypted, open files on the disk as clear text. However, as sda8 is not 'mounted' when I want to suspend, I get the following error:

[code]...

When I try to suspend now, it works. The image seems to get correctly written to sda8. However, on reboot, the image does not seem to be detected and the system is not resuming. I end up with a fresh login screen. would be also to unmount sda8 upon resume, is this better done by entering a hook in /etc/pm/sleep.d or can I just continue in the wrapper script above by executing s2disk.unwrapped only by calling it (without 'exec'), and entering a swapoff line behind it?

View 1 Replies View Related

General :: Use Windows Pagefile.sys (swap) As Swap?

Feb 19, 2010

I know it's possible, but does anyone have a URL or tutorial on how to do this?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved