On Sat, 2010-07-17 at 20:57 +0600, Junayeed Ahnaf Nirjhor wrote:
Hello, Recently installed opensuse but made a mistake while installation. I've installed without any swap partition. So the system is sluggish. Went to google and found out this command will create a 512 MB file and use it as a swap: dd if=/dev/zero of=/swapfile bs=1k count=524288 && mkswap /swapfile && sync && swapon /swapfile Question is, As My ram is 2 GB I need a swap partition of at least 4 GB (It is stated on that site). What'll be the necessary changes to turn that 512 MB into 4GB file? I know it's not about ubuntu, but this command is not distro based, it's general Linux command.
Correct; all this labeling articles "How the files in a directory on Ubuntu" has risen to a level of absurdity.
Can anybody help me out?
swapoff /swapfile
dd if=/dev/zero of=/swapfile bs=1k count=4194304 && mkswap /swapfile &&
sync && swapon /swapfile
Of course how much swap you actually need is a topic of much [mostly
pointless] debate. Just make "a lot" and don't worry about it. But for
the record - the RAM x 2 rule doesn't really have much 'science' behind
it. But it isn't a bad idea either.
--
Adam Tauno Williams