You are not logged in.

#1 2008-08-03 23:44:12

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

[SOLVED] Cannot "mount swap"

Hi

I cannot mount my swap partition! It stopped working some time ago (I don't know when exactly, I just saw this now).
When I try to mount it manually, I receive this error message: "Unknown filesystem type 'swap'".

Here is my fstab (I'm synchronized with the stable repo):

# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
UUID=1137358e-63f7-4d63-a98a-34d03ac5be0b /boot ext2 defaults,noatime 0 1
UUID=1ce2a0be-3cb7-45f1-aef9-83214ceb3d6a swap swap defaults
UUID=8e33d82d-b7bb-4ea4-aa58-99806a705328 /home reiserfs defaults,noatime 0 1
UUID=954fcd95-c5cc-452d-bd1c-efb8b76aeb22 / reiserfs defaults,noatime 0 1

Thanks in advance.

Last edited by Kknd (2008-08-04 15:19:00)

Offline

#2 2008-08-04 00:31:40

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [SOLVED] Cannot "mount swap"

Linux does not permit mounting swap...only filesystems are mounted with the mount command.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2008-08-04 02:37:18

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: [SOLVED] Cannot "mount swap"

What does the output of `free -m` show you in the "Swap" row?

You 'mount' swap by using the `swapon` command. Have a look at the man page to find out more smile

man swapon

Offline

#4 2008-08-04 02:52:50

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: [SOLVED] Cannot "mount swap"

Ahhhhhh.

Thanks.

Last edited by Kknd (2008-08-04 02:55:08)

Offline

#5 2008-08-04 02:57:01

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: [SOLVED] Cannot "mount swap"

Can you update the original post to have [SOLVED] in the subject please if you're happy that it's solved? smile

Offline

#6 2008-08-04 02:59:42

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: [SOLVED] Cannot "mount swap"

Actually, I still can't solve it. The problem is that the swap partition isn't activated by default, ie, swapon -a doesn't work.

I've tried editing my fstab, without success (man fstab doesn't gives much inf about this).

Offline

#7 2008-08-04 05:09:30

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: [SOLVED] Cannot "mount swap"

Can you post the output of `free -m` please? smile

Offline

#8 2008-08-04 06:38:23

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Cannot "mount swap"

My swap broke after I unsuccessfuly tried to hibernate so I run mkswap /dev/sdaX for x being my swap partition. And then swapon -a and it works. However I don't know whether the disk UID changes after making a new swap file system.(I got rid of BY-UID things in my configs since /dev/sdaX is so much easier to read.)


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#9 2008-08-04 06:39:58

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: [SOLVED] Cannot "mount swap"

You are using the UUID to mount the partition, have you tried using the /dev/sd? entry to mount the drive instead?

My fstab entry for swap reads the following:

/dev/sdc3 swap swap defaults

Offline

#10 2008-08-04 15:18:39

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: [SOLVED] Cannot "mount swap"

Thanks for the suggestion, it worked.
I was strange, because it was working before!

Offline

#11 2008-08-04 18:27:55

sidc
Member
Registered: 2008-06-19
Posts: 76

Re: [SOLVED] Cannot "mount swap"

Wow even I accidentally disabled swap somehow and I tried everything, but it would not work ( http://bbs.archlinux.org/viewtopic.php?id=52252 ) . But, changing the line in fstab worked like a charm. Thanks! smile 

(Maybe this is some sort of a bug? )

Offline

Board footer

Powered by FluxBB