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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-19-2009, 06:17 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Rep:
|
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.
|
|
|
|
04-19-2009, 06:24 PM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
What output do you get when you run:
|
|
|
|
04-19-2009, 06:40 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
|
04-19-2009, 07:40 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
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
|
|
|
|
04-19-2009, 08:06 PM
|
#5
|
|
LQ Newbie
Registered: Apr 2009
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
|
04-19-2009, 08:40 PM
|
#6
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,231
|
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.
|
|
|
|
04-19-2009, 09:18 PM
|
#7
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Quote:
Originally Posted by sabroo2
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
on your machine instead of
Code:
Swap: 3903752 0 3903752
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:54 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|