LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 09:26 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
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, 10:01 PM   #2
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
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, 10:22 PM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
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, 05:04 PM   #4
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

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

Original Poster
Rep: Reputation: 51
BTW blkid command shows UUID as well.
 
Old 01-25-2011, 07:59 AM   #6
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
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



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 06:39 PM
How to start debian install cd with a predefined swap partition? stormrider_may Debian 5 03-07-2006 05:10 PM
Swap partition not available/on on Debian sarge JoeneB Linux - General 5 01-26-2006 04:46 AM
lost grub AND swap partition Frelov Linux - Newbie 3 03-09-2005 11:06 PM
swap partition not mounted after Debian installation codeape Linux - Hardware 4 02-12-2004 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:35 AM.

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
Open Source Consulting | Domain Registration