Swap partition not working [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Swap partition not working [Solved]

Postby splippity » Tue Apr 21, 2009 22:25

I installed sabayon using the graphical installer and the 4.0 r1 dvd....... I decided not to use lvm since I dont really understand it and figure I should stick with something a little simpler......
I created all appropriate partitions and no matter what I check I have swap unavailable in system settings and what not.

Wanted to know if anyone knows a solution.... I guess I could always reinstall using the new 4.1 but would rather not.... thanks.
Also included a copy of what fdisk states.
Code: Select all
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x335702d4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1             145       30401   243039352+  83  Linux
/dev/sda2   *           1          13      104391   83  Linux
/dev/sda3              14         144     1052257+  82  Linux swap / Solaris

Partition table entries are not in disk order
splippity
Simple Hen
 
Posts: 64
Joined: Fri Apr 17, 2009 21:29

Re: Swap partition not working

Postby WarraWarra » Tue Apr 21, 2009 23:16

You should be able to do it old school style / text:
First see if it is mounted likely not but might be.

mount
unmount /dev/sda3
umount /dev/sda3
unmount /dev/sda3
I do it 3 times just in case it is stubborn.

Next if not mounted create a swap file system on it:
mkswap /dev/sda3

Then activate it:
swapon /dev/sda3
It should likely be listed in /etc/mtab or /etc/fstab , check gentoo.org handbook all in one x86 or one of their wiki's about /etc/mtab and /etc/fstab for detailed layout options and how-what-where to be listed to be correct and used by default.
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Re: Swap partition not working

Postby splippity » Wed Apr 22, 2009 1:24

your suggestion for swapon and everything worked like a champ.
Im guessing you talking about checking those locations /etc/mtab or /etc/fstab would be to make it auto mount on boot????

Anyone who can tell me how to do it would be appreciated.... Ill try and look in the handbook myself.
splippity
Simple Hen
 
Posts: 64
Joined: Fri Apr 17, 2009 21:29

Re: Swap partition not working

Postby splippity » Wed Apr 22, 2009 1:39

my fstab looks like

Code: Select all
UUID=99219ef4-6cdc-4951-b825-7a63a86a2396 /                       ext3    user_xattr      1 1
UUID=37deebc5-2e74-4a0d-ae3b-64ce551090a4 /boot                   ext3    user_xattr      1 2
/dev/shm                /dev/shm                tmpfs   defaults        0 0
UUID=wASbwb-AZf8-vzpe-3X85-xa1A-2cVB-Iy3hn9 swap                    swap    defaults        0 0


I have no clue what any of that stuff means........ nothing like when I installed gentoo back in the day.

Whats all that uuid stuff lol.

Thanks.
splippity
Simple Hen
 
Posts: 64
Joined: Fri Apr 17, 2009 21:29

Re: Swap partition not working

Postby kodiakmax » Wed Apr 22, 2009 5:49

Found this with google.

http://www.unixtutorial.org/2008/05/ubuntu-uuid-how-to/

Even though it says ubuntu it applys to all *nix systems. It will also tell you how to list your UUID's for your devices.
If you check the wiki, use the search function and google you can find the answer to most of your questions.

Remember to mark your thread [Solved] if your issue is fixed.
User avatar
kodiakmax
Advanced Hen
 
Posts: 278
Joined: Thu Oct 16, 2008 23:46

Re: Swap partition not working

Postby wolfden » Wed Apr 22, 2009 6:11

kodiakmax wrote:Found this with google.

http://www.unixtutorial.org/2008/05/ubuntu-uuid-how-to/

Even though it says ubuntu it applys to all *nix systems. It will also tell you how to list your UUID's for your devices.


ours don't work?
http://wiki.sabayonlinux.org/index.php? ... nd_Volumes
User avatar
wolfden
Sharecropper
 
Posts: 8824
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Swap partition not working

Postby splippity » Wed Apr 29, 2009 23:05

does anyone know why it doesnt auto mount when I boot???
I pasted my uuid stuff before..... but it seems like it is listed in the fstab currently....
any help would be appreciated currently everytime I boot I have to run swapon /dev/sda3 from a terminal.


thanks for the help
splippity
Simple Hen
 
Posts: 64
Joined: Fri Apr 17, 2009 21:29

Re: Swap partition not working

Postby splippity » Wed Apr 29, 2009 23:28

also when I do the vol_id command for /dev/sda3 I get nothing where as sda2 works fine for a uuid #

thanks.
splippity
Simple Hen
 
Posts: 64
Joined: Fri Apr 17, 2009 21:29

Re: Swap partition not working

Postby kodiakmax » Wed Apr 29, 2009 23:30

splippity: can you post your fstab for us?
and
"fdisk -l"
and
"blkid"

wolfden wrote:ours don't work?


I guess I totally missed that one in the wiki! hehe just goes to show newbies there's more than one way to skin a cat(find information needed).
If you check the wiki, use the search function and google you can find the answer to most of your questions.

Remember to mark your thread [Solved] if your issue is fixed.
User avatar
kodiakmax
Advanced Hen
 
Posts: 278
Joined: Thu Oct 16, 2008 23:46

Re: Swap partition not working

Postby splippity » Sat May 02, 2009 17:33

Code: Select all
# fdisk -l

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1             145       30401   243039352+  83  Linux
/dev/sda2   *           1          13      104391   83  Linux
/dev/sda3              14         144     1052257+  82  Linux swap / Solaris

Partition table entries are not in disk order

Code: Select all
# blkid
/dev/sda1: UUID="99219ef4-6cdc-4951-b825-7a63a86a2396" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: UUID="37deebc5-2e74-4a0d-ae3b-64ce551090a4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: TYPE="swap" UUID="7a581b47-c7b7-472e-84b5-2ea55227acab"


fstab is located further up thread. thanks
splippity
Simple Hen
 
Posts: 64
Joined: Fri Apr 17, 2009 21:29

Next

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 0 guests