Linux - NewbieThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You have a couple of options. You can create a swap file similar to what windows uses or create an additional swap partition.
The swap file will be slower then a new partition but easier to configure.
To create a 20MB swap file:
dd if=/dev/zero of=/usr/local/newswap bs=1000000 count=20
chmod 600 /usr/local/newswap
mkswap /usr/loca/newswap
swapon /usr/local/newswap
Add to your /etc/fstab file
/usr/local/newswap swap swap defaults 0 0
You can change the file name and location as desired.
To create an additional swap partition you will need to resize an existing partition to create some free space and then create the swap partition. linux as a couple of apps to resize, parted or the GUI qtparted. Once the swap partition is created you can use the previous steps starting with the mkswap command but instead of the file name use the swap partition ID i.e.
mkswap /dev/hdax. (Where x is the partition ID number)
Distribution: Fedora Core 1, Red Hat 9, SUSE 9.2 Pro
Posts: 10
Original Poster
Rep:
Okay,
You've given me re-assurance that I don't need to format! So, since I'm a newbie, is the second option how I would resize my SWAP partition? Also, on the first option do I just type in what you typed? THANKS ALOT!
QTparted should work with RH but you can not modify partitions that are mounted. You can use the RH 1st install CD and boot to rescue mode but you will only be able to run the command line parted. I think that QTparted is included on knoppix which is a liveCD linux version.
You can resize swap but I my suggestion was to create a 2nd swap partition just to make things easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.