LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-28-2004, 10:40 AM   #1
ntduongntd
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
problem with lacking of swap partition


Hi everybody.

My red hat Linux 9 currently does not have the swap partition since when I installed the red hat. it kept prompting me that it was unable to create the swap partition.

My red hat now is now very unstable. After running several programs that consume quite a lot of memory, the system is automatically logout. And sometimes, the x server ( xfs ) is switch off and must manually restart.

I am running my Final Year Project on Linux platform. So those problems are really big obstacles for me.

Very appreciate if anyone could help.

Regards,

Andy
 
Old 11-28-2004, 10:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need to create a swap partition... it should be easiest to shrink your last partition by say, 250mb using resize2fs or resize_reiser depending on your choice of fs, then partition the newly freed space as linux swap in cfdisk or fdisk. then use mkswap /dev/hda9 (for example) to create the swap. you should then be able to test it using "swapon /dev/hda9" and if that works and "free" reports that right amount of swap, add an /etc/fstab entry:
Code:
/dev/hda9               none            swap            sw                      0 0
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing YaST, SWAP partition jlukasavige SUSE / openSUSE 10 12-02-2004 03:01 PM
problem creating swap partition during installation kristof Red Hat 11 07-03-2004 01:25 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
swap partition problem jaysan Linux - Newbie 3 03-24-2002 06:16 PM
installation - partition / swap problem catch Linux - Software 3 03-10-2002 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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