Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: billy_gates on 20 May 2003, 07:27
-
Is it possible for me to make my RH 8 use the / parition as the swap instead of a seperate dedicated partition?
-
Yes, however it's strongly disrecommended.
___________________________________
Live Free or Die: Linux
(http://www.otakupc.com/etsig/dolphin.gif)
"There: now you'll never have to look at those dirty Windows anymore"
--Daffy Duck
-
It's not recommnended b/c frequent writes to / will cause it to need to be defragmented.
-
quote:
Is it possible for me to make my RH 8 use the / parition as the swap instead of a seperate dedicated partition?
Sure. Even though as it was already said it's not the best solution. Actually you'll need to create a file of certain size (approximately two times bigger than your memory size) for swapping that's filled with zeroes by copying it from /dev/zero (that is a special device where zeroes are kept for further usage) with dd command. After that you'll have to find swapon command in your scripts (guess it was in rc.sysinit in RH) and make it turn your swap file on on start up OR (better) edit your /etc/fstab and put the appropriate line that your swap file is on by swapon -a command.
Err... Not very clear? Than do
man swapon
man swapoff
man kswapd
man dd
man fstab
...ad finitum
-
quote:
Originally posted by jtpenrod:
disrecommended
hmm, because that's a real word...
;)
[ May 21, 2003: Message edited by: Tux ]
-
quote:
Originally posted by JH:
Sure. Even though as it was already said it's not the best solution. Actually you'll need to create a file of certain size (approximately two times bigger than your memory size) for swapping that's filled with zeroes by copying it from /dev/zero (that is a special device where zeroes are kept for further usage) with dd command. After that you'll have to find swapon command in your scripts (guess it was in rc.sysinit in RH) and make it turn your swap file on on start up OR (better) edit your /etc/fstab and put the appropriate line that your swap file is on by swapon -a command.
Err... Not very clear? Than do
man swapon
man swapoff
man kswapd
man dd
man fstab
...ad finitum
I'll see if I can make any sense of that... Thanks for your help