LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-19-2006, 11:36 PM   #1
wetnose23
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 15
swap space: add after install?


hi.. is there a way for me to add swap space without damaging anything?

i created the partition during setup (960MB) but looks like i forgot to tell Slacky where it is located.


thankx
 
Old 05-19-2006, 11:56 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Just add to /etc/fstab:
Code:
/dev/hda4        swap             swap        defaults         0   0
Change /dev/hda4 to whatever your swap partition is.
If needed, run
Code:
fdisk -l
to let you know what partition it is.

Then, either reboot, or type
Code:
mount -a
as root to mount it.

To double check it is mounted, just type
Code:
mount
It will print a list of mounted devices

Last edited by cwwilson721; 05-19-2006 at 11:58 PM.
 
Old 05-20-2006, 08:30 PM   #3
wetnose23
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Original Poster
Rep: Reputation: 15
/dev/hda1 swap swap defaults 0 0

================================================================

Disk /dev/hda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 117 939771 82 Linux swap
/dev/hda2 * 118 14596 116302567+ 83 Linux
=====================================================================


mount -a
mount: you must specify the filesystem type

&&&&&&&
mount -a swap
mount: mount point swap does not exist
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
what am i doing wrong?

thankx
 
Old 05-20-2006, 08:48 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Read
Code:
man mkswap
And
Code:
man swapon
 
Old 05-20-2006, 09:01 PM   #5
wetnose23
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Original Poster
Rep: Reputation: 15
in creating this file from "man mkswap"
dd if=/dev/zero of=swapfile bs=1024 count=65536

the "count" would that be the blocks...
Device Boot Start End Blocks Id System
/dev/hda1 1 117 939771 82 Linux swap

...939771?

thankx

"dd if=/dev/hda1 of=swapfile bs=1024 count=939771"

is what i have written.. not implemented

Last edited by wetnose23; 05-20-2006 at 09:02 PM.
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
Activate Swap Space - Suse 10 Install mindjet SUSE / openSUSE 3 04-09-2006 01:26 PM
Too much SWAP space? Mufasa Linux - General 1 11-20-2004 09:50 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Add Hard disk for swap space with problems in boot sector rkes7 Linux - Hardware 1 01-25-2004 02:41 AM

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

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