Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-15-2003, 08:59 PM
|
#1
|
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
command to check swapfile?
I need to see the info for my swap to make sure Slack is using the correct partition. In ksim, it shows my swap as 12mb, while I setup that partition as 512mb.
What command would provide the info I need?
|
|
|
|
09-15-2003, 09:07 PM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,704
|
Look your fstab file and see which line has /swap. Then compare that with the output of fdisk -l
|
|
|
|
09-15-2003, 09:15 PM
|
#3
|
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Original Poster
Rep:
|
fstab:
/dev/hda6 / reiserfs defaults 1 1
/dev/hda7 /home reiserfs defaults 1 2
/dev/hda5 /mnt/fat vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
fdisk -l
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2328 18699628+ 7 HPFS/NTFS
/dev/hda2 2329 4866 20386485 f Win95 Ext'd (LBA)
/dev/hda5 2329 3093 6144831 b Win95 FAT32
/dev/hda6 3094 3519 3421813+ 83 Linux
/dev/hda7 3520 4248 5855661 83 Linux
/dev/hda8 4802 4866 522081 82 Linux swap
Apparently, it's not set up to mnt the swap.
Would adding: /dev/hda8 ??? defaults 1 ? to fstab fix it? What belongs where the ? are.
Thanks!
|
|
|
|
09-15-2003, 09:32 PM
|
#4
|
|
Moderator
Registered: Aug 2002
Posts: 10,704
|
Add to your fstab
/dev/hda8 swap swap defaults 0 0
Then just to be on the safe side
mkswap /dev/hda8 ( to format)
swapon /dev/hda8 ( to turn it on)
Next time you boot the swap partition will be enabled automatically
I'm not familar with Ksim. I wonder where its getting the info from?
What does the output of the console command free show for swap?
|
|
|
|
09-15-2003, 09:36 PM
|
#5
|
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Original Poster
Rep:
|
#free shows 0 (for swap). I guess on this install I set the swap partition up, but didn't tell Slack to use it during the install process. Oops
Thanks for the help.
Last edited by Scruff; 09-15-2003 at 09:40 PM.
|
|
|
|
09-15-2003, 09:47 PM
|
#6
|
|
Moderator
Registered: Aug 2002
Posts: 10,704
|
Your welcome.
After you turn swap on look at the free command again and you should see something other than 0 for total swap. With 512mb of RAM you will probably not see much swap if any being used for normal desktop usage.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|