LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2005, 06:05 PM   #1
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Rep: Reputation: 15
DamnSmall Swap file


I ran the Live CD of DSL and ran the install to HD. I'm worried though that I don't have a swap file since I didn't have the option of setting one up during the install. In the SLIT i think its called that monitors your cpu usage and memory and swap file. In the Swap section it says

Swap 0
0 0%

Will it only use the swap if all of my RAM gets used. I want it to be able to run fast without crashing for only having 32MB ram. Is there anyway to set up a swap file if I don't currently have one, because I think I dont I have a swap file set up if it is it is very small.

under my /mnt directory i have

/auto 4096 bytes
/cdrom
/floppy
/hd/ 4096 bytes
/hd1/ 4096 bytes
 
Old 07-02-2005, 07:10 PM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Swap setup:

make swap partition or swap file
mkswap <partition or file name>
swapon <partition or file name>
add the partition/file to /etc/fstab

For detailed instructions, look at:

http://www.redhat.com/docs/manuals/l...ap-adding.html for a swap partition

http://www.netadmintools.com/art1.html for a swap file
 
Old 07-03-2005, 12:24 AM   #3
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
hey i did it! wow

Thanks for the link on how to make a swapfile. I decided to make a swapfile instead trying to make a swap partition. I'm running DSLinux on an old p233, 2GB hd, 32MB RAM, just for a computer to play music and type on, its not networked or anything.

Now my ancient computer runs good and is my first nix box. Thanks for pointing me in the right direction.
 
Old 07-03-2005, 12:42 AM   #4
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
Smile how i did it

First I created the swapfile in /root and it worked when i was logged in as root, but when I restarted I noticed I must have created the swapfile somewhere I shouldn't have because even though I added the entry /swapfile swap swap defaults 0 0 to my fstab file, it didnt load the swapfile when I logged on as a user. So then I redid the whole process and created a swapfile in /opt and changed the fstab entry respectivley.

To remove the first swapfile I made i just..
Code:
root@box:rm swapfile
i deleted the first now unused swapfile i created and i freed up the hdspace.

dsl is cool, but it doesnt even do the info bash command, the info isnt there, what a weird way to learn linux.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
in need of small (smaller than damnsmall) distro dongmin Linux - General 5 05-30-2004 03:12 PM
damnsmall linux .... problems....help b3nj4m1n1254 Linux - Newbie 0 05-12-2004 02:57 PM
Contributing to the DamnSmall Linux project LinuxSeeker DamnSmallLinux 8 04-28-2004 11:34 AM
Using DamnSmall through another distro LinuxSeeker Linux - General 4 04-11-2004 12:00 PM
SWAP File TJ60515 Linux - Newbie 4 07-30-2003 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration