Results 1 to 10 of 10
Well I need to make a swapfile
Since when I do emerge (Gentoo) it says it doesnt have Enough Virtual memory.
I cant make a Swap Partition. So I thought ...
- 11-26-2007 #1
root isnt allowed to make swapfile?
Well I need to make a swapfile
Since when I do emerge (Gentoo) it says it doesnt have Enough Virtual memory.
I cant make a Swap Partition. So I thought Id make a swap file.
I knew how to do it, but I did check it with google looking here: GNU/Linux - Adding Swap Space on the Fly in Linux
I found out I made one small Mistake (not chmodding) but still after that I am not allowed to turn swap on when I do:
swapon /swapfile
I just get:
swapon: swapfile: Operation not permitted.
So, how can this been done?
I really need this swap file since I want to remerge something badly.
Cheers,
Robin
- 11-26-2007 #2
Are you trying to run swapon on a directory or is that a typo? What's the name and location of the file you're trying to use for swap?
- 11-26-2007 #3
- 11-26-2007 #4
What's the output of ls -l?
- 11-26-2007 #5
- 11-26-2007 #6
And the mkswap command was successful? Then I'm stumped. It might be best to delete the file and start again from scratch to be sure the steps are done in correct order.
- 11-26-2007 #7Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
Is there something different about your configuration? You're not running any virtualization are you? (Xen or something else?)
Please send the contents of /etc/fstab...
- 11-26-2007 #8
Well I was Stumped as well.. I did it about 5 times now. And yet still Unsuccessful and the swap is made successfully.
I am running in OpenVZ. But that shouldnt matter.
Originally Posted by mrjohnson
What does /etc/fstab to do with this? I am not trying to turn swap on during boot..
Anyhow Ill drop it for you anyhow:
Code:proc /proc proc defaults 0 0
- 11-26-2007 #9Just Joined!
- Join Date
- Nov 2007
- Location
- Camp Pendleton
- Posts
- 55
- 11-26-2007 #10


Reply With Quote

