LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2008, 12:47 PM   #1
Mleahy
Member
 
Registered: Jan 2004
Posts: 43

Rep: Reputation: 15
F7: Hibernate using new swap partition


Hello,

I just resized my swap partition to give it more space (hibernating sometimes couldn't allocate enough space on the swap partition). After I did that, I ended up with /dev/sda5 and /dev/sda6 partitions being switch (i.e., /dev/sda5 used to be the swap, but now it's /dev/sda6). The other partition (my home partition) was mounted based on the partition's label, so it worked without problems. I had to edit my fstab to get the swap partition working again though. After that, I enabled swap with /sbin/swapon -a. Now, if I enter 'free', I can see that I have my swap partition enabled...but none of it is used, and my ram is now entirely full with cache (I never saw happening this before on startup, or when my machine was idle). So it looks like maybe the swap partition isn't being used, despite the successful use of swapon, and apparent output from free.

At any rate, I can hibernate fine - it writes the memory to the swap disk okay (or at least appears to), but when I try to restore the machine, it seems to be unable to find the swap partition, so it starts booting normally...which of course causes the disks to appear corrupt and I spend 20 minutes waiting for them to be scanned.

Does anyone know where I would find the configuration for hibernate that tells it where to look for the swap partition? Or perhaps I've missed something in the setup/configuration of the swap drive?

Last edited by Mleahy; 07-26-2008 at 12:49 PM.
 
Old 07-26-2008, 01:59 PM   #2
Mleahy
Member
 
Registered: Jan 2004
Posts: 43

Original Poster
Rep: Reputation: 15
After some more searching, I found my answer: http://forums.fedoraforum.org/showthread.php?t=111565
 
Old 07-26-2008, 02:16 PM   #3
garrettderner
LQ Newbie
 
Registered: Jul 2008
Location: Chicago IL, USA
Distribution: Devuan
Posts: 14

Rep: Reputation: 0
Thanks for posting what you found.

BTW if you ever want to restore the normal partition order, this worked for me:

fdisk /dev/sda (or whatever drive)
x (expert mode)
f (fix partition order)
w (write and exit)
 
  


Reply



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
luks encryption, swap and hibernate BCarey Slackware 6 04-15-2008 05:48 PM
Expanded Swap for Hibernate, now what? sixsidepentagon Linux - Newbie 12 10-06-2007 12:58 PM
Some questions about swap and hibernate Ryzol Linux - Desktop 1 08-29-2007 07:34 AM
Hibernate/suspend with two swap partitions ordealbyfire83 Linux - Hardware 8 07-30-2007 12:11 PM
quick question: Does hibernate requires swap partition? carboncopy Linux - Laptop and Netbook 5 09-18-2005 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:49 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
Open Source Consulting | Domain Registration