You are not logged in.

#1 2009-01-07 21:53:50

nirvanix
Member
From: Saskatoon
Registered: 2005-01-31
Posts: 193

SWAP partition problem [SOLVED]

Hi,

I've got a 1 Gb memory system, and for some reason  I had a 4 Gb swap partition on my hard drive. I used cfdisk to redefine it to 2Gb and free up some disk space. It's the same partition /dev/sda3. In fstab it was using the UUID string, but after I made the change the system was complaining about the UUID being incorrect, so I changed the entry in fstab to:
/dev/sda3     swap    swap    defaults 0 0

and got rid of the UUID. I still get a FAIL on bootup of turning on the swap. When I try to do it manually using the 'swapon -a' command or 'swapon /dev/sda3' I get an error message: /dev/sda3 invalid argument.

If I do the 'swapon -s' it shows that I have no swap partition turned on.

thanks.

Last edited by nirvanix (2009-01-08 23:36:57)


I've got a lovely bunch of coconuts...

Offline

#2 2009-01-07 22:27:42

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: SWAP partition problem [SOLVED]

You re-sized the partition but not the filesystem. Try running "mkswap /dev/sda3" (man mkswap for info) to recreate the swap filesystem.


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#3 2009-01-07 22:29:53

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: SWAP partition problem [SOLVED]

If you need it, you can find the UUID with

 ls -l /dev/disk/by-uuid/

Last edited by Xyne (2009-01-07 22:31:45)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2009-01-08 04:26:25

nirvanix
Member
From: Saskatoon
Registered: 2005-01-31
Posts: 193

Re: SWAP partition problem [SOLVED]

Thanks pointone and Xyne! Shit I'm gettin' old, I forgot to mkswap!


I've got a lovely bunch of coconuts...

Offline

Board footer

Powered by FluxBB