This is a discussion on Enabling Swap Space - Redhat within the Linux software forums, part of the Linux Getting Started category; Hi All, i had problem with enabling swap space on " Boot Time ". while my Redhat Linux Booting into ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi All,
i had problem with enabling swap space on "Boot Time". while my Redhat Linux Booting into run level 3 , then it suddenly got struck up with swap space enabling. i couldn't find out the reason. anybody can suggest me how to resolv this issue? The time is takes to enable swap space is unpredictable. thanks, aaru |
| Sponsored Links | ||
|
|
|
|||
|
hi nixcraft,
thanks for ur reply. after this pbm happend, 1st step i did is using "single user" to boot the system.while the time we are entering into single user mode, its easily enable the swap space.means "Enabling Swap Space [ok] ".but, if i am trying to run into multi user mode say runlevel 3, it just hangs up. i couldn't able to find out the reason. my /etc/fstab file is edited properly.if u need i can paste into this forum.give me any solution for this.b'cz i am trying to find out this answer from past 1 & half year. thanks, aaru |
|
|||
|
Hi nixcraft,
thanks for your reply.i didn't format my swap partition.my fstab file is below, # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/mnt/gp1 /mnt/gp1 ext3 defaults 1 2 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/sda5 swap swap defaults 0 0 /dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 thanks, aaru. ~ |
|
||||
|
Just format swap partition using mkswap and turn on swap using swapon command it should work
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
|||
|
I got the same problem on compiling new kernel..
its hangs on swap space i tried to format mkswap -a /dev/hda5 but swapon /dev/hda5 says its busy... mount shows no swap partition is mounted!!! bu fstab has SWAP-hda5 entry.. Try to solve the problem asap?? Thanks... |
|
|||
|
Hi Sandeep,
Before formatting swap partition please disable that partition.To do that, #swapoff /dev/hda5 (your /etc/fstab entry for swap). To Create new swap partition do the follow, step1: Create new partition by using "fdisk".Say here "/dev/hdaX" step2: Create Swap signature on that partition.to do that, #mkswap -v1 /dev/hdaX step3: Enable swap partition, #swapon /dev/hdaX step4: Check the status of swap partition. #swapon -s Filename Type Size Used Priority /dev/hdbX partition 1052248 0 -2
__________________
thanks, aaru |
|
|||
|
create an extra swap partition. these days we got 500 GiB external and 1 TiB internal and max 32 TiB internal hdd. so if you are running mission critical things like database then you need 4x RAM = swap. yeah you may also have extra swap partitions. if you dont use them? disable them. or create a temporary swap space.
http://www.redhat.com/docs/manuals/l...ap-adding.html man fstab on how to add more than one swap space. besides you got enough space my friend 40-80-120-300 GiB for swap. imagine me working on a 2 GiB USB which is encrypted and NO SWAP. dang! if muhammad cant go to mountain, bring the mountain to muhammad? hell no, tie muhammad in a bed and carry muhammad to mountain. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why Swap=2 x RAM | diptanjan | Getting started tutorials | 5 | 03-25-2008 02:14 AM |
| Swap | piggy | Getting started tutorials | 3 | 07-17-2007 10:44 AM |
| Enabling Audit logs using psacct | ccubed | Getting started tutorials | 1 | 06-25-2007 10:07 PM |
| Difference between Linux Swap partition & Swap file | hrishikesh | Linux software | 9 | 03-16-2007 03:08 AM |
| enabling sshd ubuntu | rajk | Linux software | 2 | 12-24-2005 12:21 AM |