LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2004, 03:18 AM   #1
kaN5300
LQ Newbie
 
Registered: Sep 2004
Location: Russia
Distribution: Slackware linux 10
Posts: 27

Rep: Reputation: 15
swap partition by /dev/hands :)


I set up my slack 10 without a swap prtition, now i wanna set it up, i used fdisk, created a swap patrition, then, mkswap... then i wrote this line in /etc/fstab:
Code:
/dev/hda5        swap             swap        defaults         0   0
fdisk:
Code:
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       18000   144584968+  83  Linux
/dev/hda2           18001       19000     8032500   83  Linux
/dev/hda3           19001       19457     3670852+   5  Extended
/dev/hda5           19001       19457     3670821   82  Linux swap

Command (m for help):
But, #top:
Code:
Mem:    384768k total,   354984k used,    29784k free,   117260k buffers
Swap:        0k total,        0k used,        0k free,    79208k cached
I cant find my swap

Last edited by kaN5300; 09-13-2004 at 03:29 AM.
 
Old 09-13-2004, 03:20 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Did you try with swapon -a ?
 
Old 09-13-2004, 03:45 AM   #3
kaN5300
LQ Newbie
 
Registered: Sep 2004
Location: Russia
Distribution: Slackware linux 10
Posts: 27

Original Poster
Rep: Reputation: 15
Thnx a lot =)
Code:
root@portal:/home/kan5300# mkswap /dev/hda5
Setting up swapspace version 1, size = 3758915 kB
root@portal:/home/kan5300# swapon -a
root@portal:/home/kan5300#
Code:
Mem:    384768k total,   285188k used,    99580k free,   101232k buffers
Swap:  3670812k total,        0k used,  3670812k free,    16420k cached
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/dev/hda2 not a valid block device KeithKessler Slackware 13 02-10-2005 09:10 AM
grub-install /dev/hda2 Please help !! mickeyboa Fedora 3 01-16-2005 02:41 AM
/dev/hda2 negative size? yozd Linux - Hardware 4 07-24-2004 08:41 PM
What causes my /dev/hda2 to remount in read only mode? matsen Linux - General 1 03-01-2004 04:05 PM
error in /dev/hda2??? Volcom Slackware 1 06-12-2003 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration