LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-18-2004, 08:42 PM   #1
MegaGeoff
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Distribution: RedHat 9
Posts: 4

Rep: Reputation: 0
Slackware 9 Creating new swap partitions after installation without destroying data


Hi, my name is Aaron and I am using Slackware 9.0 on an 18XL20 compaq presario laptop (6 GB HD and 64 mb physical ram). I am relatively new to linux and uncommon data size units such as cylinders and blocks. So, upon being asked to specify them on installation, I freaked out and asked a friend, who ran various *nix systems to help me out.

I assumed that his knowledge was competent, but after running my system for a month or so, I began to be plauged by gross memory shortages. It turns out that my swap partition was grossly undersized. Instead of the recommended default of 128 MB (double physical memory) it was instead a paltry 24 MB.

My question is whether there is a way to create new swap partitions using the free space on my hard disk, keeping the remaining data intact, and if so, how I would go about it (assuming minimum knowlege of console usage.)

Your help would be greatly appreciated.
Thank you
-Aaron
 
Old 01-18-2004, 09:44 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
If you have unallocated disk space i.e. space that is not part of a partition you can use fdisk, cfdisk or parted to create a swap partition. Next you want to format it, activate it and then add it to your /etc/fstab file. I do not have any good tutorials on how to create a partition but here is the man pages for cfdisk.

http://www.debian.org/releases/stable/alpha/cfdisk.txt

http://www.justlinux.com/nhf/Filesys...lesystems.html


linux can use multiple swap partitions and swap files (8 total). So need no need to remove the existing one.

If you do not have unallocated disk space and do not want to resize then use this method:

http://www.justlinux.com/nhf/Filesys..._Swapping.html
 
  


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
Does the Suse 10.0 installation resize fat32 partitions without data loss? augu2000 SUSE / openSUSE 4 10-26-2005 06:28 PM
problem creating swap partition during installation kristof Red Hat 11 07-03-2004 02:25 PM
Creating partitions at install vs root+swap Thaidog Linux - General 3 07-02-2004 08:49 AM
Installation gives dual swap partitions timsch75 Slackware 3 03-19-2004 05:03 PM
Re-Install RH 7.1 w/o destroying old partitions Neelix Linux - Software 2 11-19-2001 06:01 PM


All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration