Results 1 to 7 of 7
while using ubuntu 8.04
please tell me!!!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-09-2008 #1
how to increase my swap area while...
while using ubuntu 8.04
please tell me!!!Dual Booting Ubuntu 10.04, Windows 7
Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card
You are registered Linux user number 490788
Happy Linuxing
- 07-09-2008 #2
how much swap do you want? the basic idea is to create a file of the size you need, and then add it as a swap file
you would do something like this
that would add a 1 gb swap fileCode:sudo dd if=/dev/zero of=/swap1.swp bs=1024 count=1048576 sudo swapon /swap1.swp
- 07-09-2008 #3dude i believe the first line went sweet but the second command!!!!abed@abed-laptop:~$ sudo dd if=/dev/zero of=/swap1.swp bs=1024 count=1048576
[sudo] password for abed:
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 27.0363 s, 39.7 MB/s
abed@abed-laptop:~$ sudo swapon /swap1.swp
swapon: /swap1.swp: Invalid argument
abed@abed-laptop:~$ sudo swapon /swap1.swp
swapon: /swap1.swp: Invalid argument
abed@abed-laptop:~$
and can u explain it for me ? even the numbers??Dual Booting Ubuntu 10.04, Windows 7
Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card
You are registered Linux user number 490788
Happy Linuxing
- 07-09-2008 #4
sorry i made a booboo
it should be
bs=1024, this is specifying a block size of 1024 bytes or 1 kilobyteCode:sudo swapon -a /swap1.swp
count=1048576
this is how many blocks you want to have the file to be, 1048576 blocks * 1024 bytes/block = 1 gigabyteLast edited by coopstah13; 07-09-2008 at 08:25 PM. Reason: i messed it up AGAIN
- 07-09-2008 #5
thnx bro u were helpful thnx

and about my first command line did u go well?Dual Booting Ubuntu 10.04, Windows 7
Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card
You are registered Linux user number 490788
Happy Linuxing
- 07-09-2008 #6dude wut's wrong?abed@abed-laptop:~$ sudo swapon -a /swap1.swp
swapon: /swap1.swp: Invalid argument
abed@abed-laptop:~$Dual Booting Ubuntu 10.04, Windows 7
Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card
You are registered Linux user number 490788
Happy Linuxing
- 07-10-2008 #7
sorry, i was just kind of making it up as I went hoping it would work
add this to the end of fstab fileCode:gksu gedit /etc/fstab
then runCode:/swap1.swp none swap sw 0 0
I've only added swap file on running solaris, i hope this works this timeCode:sudo swapon -a


Reply With Quote
