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.
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
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.