LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-23-2011, 10:26 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Rep: Reputation: 48
Configure Debian to use lost SWAP Partition


hi

During the second OS (CentOS) setup, the shared SWAP partition was formated and now I get the following under Debian:
Code:
# free
             total       used       free     shared    buffers     cached
Mem:        507524     251436     256088          0      11488      78332
-/+ buffers/cache:     161616     345908
Swap:            0          0          0
Howto configure Squeeze to use again this SWAP partition?
 
Old 01-23-2011, 11:01 PM   #2
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware, Debian
Posts: 93

Rep: Reputation: 25
I hope someone corrects me if I'm wrong here, but I believe you're looking for the swapon (and mkswap, if needed) commands.
Make sure your /etc/fstab looks alright, in respect to your swap partition. If you have the partition identified by UUID, confirm that the UUID is still what it's supposed to be (blkid).
 
1 members found this post helpful.
Old 01-23-2011, 11:22 PM   #3
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,018

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
You probably have to modify the UUID in the line for your swap partition on your /etc/fstab file. To know the UUID, type:

Code:
ls -l /dev/disk/by-uuid
and see which UUID points to your swap partition (then change the old UUID for the new one, on your /etc/fstab file, reboot and your done).
 
1 members found this post helpful.
Old 01-24-2011, 06:04 PM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Original Poster
Rep: Reputation: 48
Thx a lot, I've done and now it works well.
 
Old 01-24-2011, 10:16 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Original Poster
Rep: Reputation: 48
BTW blkid command shows UUID as well.
 
Old 01-25-2011, 08:59 AM   #6
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,018

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Yeah, blkid returns the UUID of all the partitions in the system (I "discovered" it recently for another post here in the forum) .
 
  


Reply

Tags
configure, partition, squeeze, swap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian install - swap partition allelopath Debian 13 01-04-2007 07:39 PM
How to start debian install cd with a predefined swap partition? stormrider_may Debian 5 03-07-2006 06:10 PM
Swap partition not available/on on Debian sarge JoeneB Linux - General 5 01-26-2006 05:46 AM
lost grub AND swap partition Frelov Linux - Newbie 3 03-10-2005 12:06 AM
swap partition not mounted after Debian installation codeape Linux - Hardware 4 02-12-2004 04:11 PM


All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration