Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: swap?< Next Oldest | Next Newest >
DonttPanic Offline





Group: Members
Posts: 95
Joined: July 2004
Posted: Aug. 12 2004,02:37 QUOTE

i want to use swap file, but dsl does not seem to recognise my swap partition. i have hda1 set up as my boot partition (Linux ext2), and hda2 partitioned for a swap (Linux swap). the first partition is 1550.36 MB and the second partition is 561.52 MB. i'm also unable to get hda2 to mount. any suggestions?
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Aug. 12 2004,03:04 QUOTE

You can't mount a swap partition..
It's type 82=swap , not type83=ext2

Did you run mkswap /dev/hda2 ?
Did you run swapon /dev/hda2 ?

Does cfdisk show the 2nd primary partition as type 82=swap ?

Did you do all of these items as root ?

Your post spoke of a "swapfile".....
Do you mean a "swap partition" . right ?

73
ke4nt
Back to top
Profile PM 
DonttPanic Offline





Group: Members
Posts: 95
Joined: July 2004
Posted: Aug. 12 2004,03:11 QUOTE

thanks, that worked perfectly. i didnt know the commands

[ im still such a noobie ]
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Aug. 12 2004,04:16 QUOTE

Me too !  :)

73
ke4nt
Back to top
Profile PM 
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: Aug. 12 2004,15:55 QUOTE

You can also create a SwapFile in case you dont want to partition the harddrive.

http://www.cis.ksu.edu/~aruljohn/linuxGuide/swapSpace.html

Quote

Swap files

   Swapping to files is usually slower than swapping to a raw partition, so this is not the recommended permanent swapping technique.  Creating a swap file, however, can be a quick fix if you temporarily need more swap space. You can have up to 8 swap files, each with size of up to 16 MB. Here are the steps for making a swap file:
   - Create a file with the size of your swap file:
   dd if=/dev/zero of=/swapfile bs=1024 count=8192
   This physically creates the swap file /swapfile, the block size is 1024 bytes, the file contains 8192 blocks, the total size is about 8 MB. [The dd command copies files. In the example above, the input file (if) was /dev/zero, the output file (of) was /swapfile . You cannot use the cp (copy) command for creating a swap file because the swap file must be physically continuous on the hard drive.]
   - Set up the file with the command:
   mkswap /swapfile 8192
   - Force writing the buffer cache to disk by issuing the command:
   sync
   - Enable the swap with the command:
   swapon /swapfile
   When you are done using the swap file, you can turn it off and remove:
   swapoff /swapfile
   rm /swapfile


Hope this helps

Brian
AwPhuch


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
5 replies since Aug. 12 2004,02:37 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: swap?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code