LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2007, 03:23 PM   #1
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Rep: Reputation: 15
Expanded Swap for Hibernate, now what?


I'm using Ubuntu Fiesty Fawn, and wanted to use the hibernate function. I was told to make my swap partition bigger, so I made it 1 gig in size (my ram is 512).

Now what? I went to the gconf editor, it told me that I can't rewrite the can_hibernate variable.

Also, I shrunk my Windows partition to grow my Swap, but now Ubuntu can't read the windows partition! I save everything to that partition, how can I get it back?

Thanks in advance, sixside.
 
Old 09-30-2007, 04:52 PM   #2
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
I just booted from a liveCD, and its gParted could read from the windows partition perfectly. Is it because it's formatted as ntfs? But before ubuntu could read from it just fine. How does resizing affect it?
 
Old 09-30-2007, 05:02 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Did you run the editor with sudo ???.
As regards the NTFS, does Windoze see it all right ???.
 
Old 09-30-2007, 05:24 PM   #4
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Did you run the editor with sudo ???.
As regards the NTFS, does Windoze see it all right ???.
Yep, I ran it with sudo. It said that it was not writable.

Edit: Uh, turns out I just needed to reboot Windows, which had to do a disk check. That's all better now

Last edited by sixsidepentagon; 09-30-2007 at 08:18 PM.
 
Old 09-30-2007, 09:47 PM   #5
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
A couple of other things I've tried:
When I tried to install uswsusp, it told me it didn't have access to a swap file, though I definitely have one, and it shows up on gParted.
When to the log in menu, selected hibernate from there. The screen just turned black, then white, then came back to the log in menu. Tried to suspend, didn't even do anything. When I got back in, my backgrounds and Nautilus got messed up, had to reboot.
 
Old 09-30-2007, 09:51 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Issue "swapon -s" - then you'll really know if you have an active swap. Should be messages in dmesg as well.
Did you issue mkswap against the bigger swap partition ???. If so the UUID will have changed, and fstab will be wrong and it won't mount. One of the things I didn't like about Feisty.
 
Old 09-30-2007, 10:33 PM   #7
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Aha! swapon -s didn't return anything, so this is the culprit!
I tried that mkswap thing, it told me nowhere to set up swap on. Tried mkswap -a, gave me:
swapon -a
swapon: cannot stat /dev/disk/by-uuid/723a6cea-136d-470a-aa30-c66cf5829c94: No such file or directory
Edit: Woops, looks like gParted can do the job, all I had to do was right click and enable swapon. Still can't hibernate though.
Thanks for your help,
Sixside

Last edited by sixsidepentagon; 09-30-2007 at 10:46 PM.
 
Old 09-30-2007, 11:15 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Won't help - you'll drop it at the next reboot. Do a "ls -al /dev/disk/by-uuid/" and pick the one that corresponds to your swap partition.
Update /etc/fstab with the new UUID.
 
Old 10-01-2007, 04:34 PM   #9
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Won't help - you'll drop it at the next reboot. Do a "ls -al /dev/disk/by-uuid/" and pick the one that corresponds to your swap partition.
Update /etc/fstab with the new UUID.
I don't know if I sound like I know what I'm doing, but I don't I put in that command you showed, and my swap partition (sda5) showed up, but I don't have a clue how to select it.

And I don't have a clue what a UUID is and where to put it in fstab, could you help me out?

This is my current fstab file:

proc /proc proc defaults 0 0
# Entry for /dev/sda4 :
UUID=bdd40363-72a6-4256-b520-75683d73e6d7 / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/sda2 :
UUID=42546B9C546B9209 /media/host0 ntfs-3g defaults 0 0
# Entry for /dev/ !! UNKNOW DEVICE !! :
UUID=723a6cea-136d-470a-aa30-c66cf5829c94 none swap sw 0 0
Thanks for your time,
Sixside

Last edited by sixsidepentagon; 10-01-2007 at 04:49 PM.
 
Old 10-02-2007, 04:52 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
O.k., even the Ubuntu installer had issues - that comment for "UNKNOWN DEVICE" is for your swap. You need to replace that UUID value in the following line (yes, all of it) with the number that corresponds to your swap partition from the "ls" above. Note that the number won't necessarily be the same length.
You will have to do this any time you issue "mkswap" on this partition - from any system.
 
Old 10-02-2007, 06:57 PM   #11
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
O.k., even the Ubuntu installer had issues - that comment for "UNKNOWN DEVICE" is for your swap. You need to replace that UUID value in the following line (yes, all of it) with the number that corresponds to your swap partition from the "ls" above. Note that the number won't necessarily be the same length.
You will have to do this any time you issue "mkswap" on this partition - from any system.
Thanks for all your help, syg00!

So I tried what you said (and by "all of it" did you mean that part that said swap 0 0?) Even when I use that mkswap and swapon -a command, gParted doesn't show it as enabled.

Any steps I'm forgetting?
 
Old 10-02-2007, 07:06 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Nope - this bit ===> 723a6cea-136d-470a-aa30-c66cf5829c94 (in fstab)
needs to be replaced by
this bit ===> 7ccs23sdcea-1456786d-cf45 -> ../../sda5 (from the ls). Whatever that value is (after the time field) plug it into the fstab entry
 
Old 10-06-2007, 12:58 PM   #13
sixsidepentagon
Member
 
Registered: Sep 2007
Posts: 41

Original Poster
Rep: Reputation: 15
O.K, that worked, so now my swap is mounted on startup

But when I sudo gconf-editor, it still says that I can't rewrite the can_hibernate variable, because it's read only.
 
  


Reply


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
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
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM
Hibernate/Suspend issues on opensuse10.2 with swap on LVM tea of evil SUSE / openSUSE 3 03-26-2007 11:14 AM
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 - Newbie

All times are GMT -5. The time now is 07:51 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