LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-20-2004, 07:37 AM   #1
tiki
LQ Newbie
 
Registered: Oct 2004
Location: Scotland
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
forgot swap


Hi Everyone,

I recently installed Slack 10, and when installing I forgot to allocate swap space is there any way I can correct this. I have a second HD installed which has data and music on it, first of all is there anyway to allocate swap with the HD I have the root installed. Secondly if that is not possible, can I allocate some of the free space on the 2nd HD to swap...?

All help is greatly appreciated


tiki
 
Old 10-20-2004, 08:48 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
if you can get free partition space, you can make swap out of it. you can try partedit.
if you want, you can just make a swap file.
dd if=/dev/zero of=/swapfile bs=1M count=400
mkswap /swapfile
swapon /swapfile

other stuff would need to be done to make that load automatically.
 
Old 10-20-2004, 05:21 PM   #3
tiki
LQ Newbie
 
Registered: Oct 2004
Location: Scotland
Distribution: Slackware 10
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks whansard,

I have free space on my 2nd HD, which hold the data and music. Could I create a folder, or file that i could swap too..?

Thank you in advance.

tiki
 
Old 10-20-2004, 08:32 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you can create a file wherever you wish to swap to with that command above. on the second hard drive, you can run that command or, mkdir swapdir, cd swapdir, dd stuff-whatever size you wish, then swapon the file. that command makes a 400 meg empty file, then mkswap formats it as swap, then swapon tell the system to use it.
 
Old 10-20-2004, 08:49 PM   #5
tiki
LQ Newbie
 
Registered: Oct 2004
Location: Scotland
Distribution: Slackware 10
Posts: 3

Original Poster
Rep: Reputation: 0
whansard it worked a treat... Thanks a lot your help is greatly appreciated


tiki
 
  


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
Forgot to create swap partiton J_stuart Linux - General 5 09-01-2005 04:43 PM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM

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

All times are GMT -5. The time now is 01:43 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