LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-19-2009, 06:17 PM   #1
sabroo2
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
Activating Swap Fail...


I've been trolling through these forums and although I have tried several of the solutions to my problem, but I have yet to find an actually working solution.

Ubuntu Fails to Activate my Swap partition. I know the usual fstab trick, but as far as I can tell it is correct. anyway here is my information, any help would be greatly appreciated.

fdisk -l output:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800000

Device Boot Start End Blocks Id System
/dev/sda1 1 486 3903763+ 82 Linux swap / Solaris
/dev/sda2 * 487 3525 24410767+ 83 Linux
/dev/sda3 3526 20486 136239232+ 5 Extended
/dev/sda4 20487 30402 79642624 7 HPFS/NTFS
/dev/sda5 3526 20486 136239201 83 Linux



fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=db128f1e-d47d-4644-bc54-cd4d0002c3d5 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=9092d85c-f434-4aa1-877c-c0c0e3120fb3 /home ext3 relatime 0 2
# /dev/sda1
/dev/sda1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/sda1 swap defaults 0 0
/dev/sda2 /media/sda2 ext3 defaults 0 0
/dev/sda4 /media/sda4 ntfs nls=iso8859-1,users,user,owner 0 0
/dev/sda5 /media/sda5 ext3 defaults 0 0

free output:
total used free shared buffers cached
Mem: 3046004 952168 2093836 0 25452 374664
-/+ buffers/cache: 552052 2493952
Swap: 3903752 0 3903752

Last edited by sabroo2; 04-19-2009 at 06:20 PM.
 
Old 04-19-2009, 06:24 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
What output do you get when you run:

Code:
swapon -a
 
Old 04-19-2009, 06:40 PM   #3
sabroo2
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
when I run swapon -a it seems to do nothing. I have also ran it under sudo with the same thing...it just goes to another line in the command prompt and gives me no further information...but when I check free it has not done anything.
 
Old 04-19-2009, 07:40 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Code:
free output:
total used free shared buffers cached
Mem: 3046004 952168 2093836 0 25452 374664
-/+ buffers/cache: 552052 2493952
Swap: 3903752 0 3903752
What do you mean fails to activate?

It states that you have > 3GB swap, unused. How's that a failure?

Last edited by Tinkster; 04-19-2009 at 07:42 PM. Reason: added code tags
 
Old 04-19-2009, 08:06 PM   #5
sabroo2
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
The swap partition exists, but it is not being used by the operating system. During the boot process the only failure that I get is during the activating swap phase. I'm fairly sure that just because the partition exists doesn't mean that it is being used.
 
Old 04-19-2009, 08:40 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,361

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
You are badly misunderstanding the help being offered - I suggest you read it again.
You have a swap partition, it is mounted and available for use (as per Tinks post), but has not been required. So in that sense, it isn't being used - this is a good thing.

Post the error you see - and all other messages related to swap.
 
Old 04-19-2009, 09:18 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally Posted by sabroo2 View Post
The swap partition exists, but it is not being used by the operating system. During the boot process the only failure that I get is during the activating swap phase. I'm fairly sure that just because the partition exists doesn't mean that it is being used.
Ummm ... observe the different output of free:
Code:
# swapoff -a
root@wgldiggn /tmp/install_flash_player_10_linux# free                         
             total       used       free     shared    buffers     cached
Mem:       2064412    1356004     708408          0     285344     484540
-/+ buffers/cache:     586120    1478292
Swap:            0          0          0
root@wgldiggn /tmp/install_flash_player_10_linux# swapon -a                    
root@wgldiggn /tmp/install_flash_player_10_linux# free                         
             total       used       free     shared    buffers     cached
Mem:       2064412    1356972     707440          0     285380     484548
-/+ buffers/cache:     587044    1477368
Swap:      1959888          0    1959888
If your swap partition wasn't being picked up by the OS you'd
see
Code:
Swap:            0          0          0
on your machine instead of
Code:
Swap: 3903752 0 3903752
 
  


Reply

Tags
partition, swap


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
Activating swap partition VIR3NT Suse/Novell 6 05-03-2006 11:47 PM
activating swap space robertunes Linux - Newbie 2 01-22-2006 03:40 PM
activating swap partition fobius Linux - General 8 02-07-2004 10:28 AM
Swap not Activating and Sound v2-ncl Slackware 2 10-22-2003 05:29 PM
Error activating swap partition flyboy320 Linux - General 3 01-31-2002 04:22 AM


All times are GMT -5. The time now is 12:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration