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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-30-2007, 04:23 PM
|
#1
|
Member
Registered: Sep 2007
Posts: 41
Rep:
|
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.
|
|
|
09-30-2007, 05:52 PM
|
#2
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
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?
|
|
|
09-30-2007, 06:02 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
Did you run the editor with sudo ???.
As regards the NTFS, does Windoze see it all right ???.
|
|
|
09-30-2007, 06:24 PM
|
#4
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
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 09:18 PM.
|
|
|
09-30-2007, 10:47 PM
|
#5
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
09-30-2007, 10:51 PM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
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.
|
|
|
09-30-2007, 11:33 PM
|
#7
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
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 11:46 PM.
|
|
|
10-01-2007, 12:15 AM
|
#8
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
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.
|
|
|
10-01-2007, 05:34 PM
|
#9
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
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 05:49 PM.
|
|
|
10-02-2007, 05:52 PM
|
#10
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
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.
|
|
|
10-02-2007, 07:57 PM
|
#11
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
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?
|
|
|
10-02-2007, 08:06 PM
|
#12
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286
|
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
|
|
|
10-06-2007, 01:58 PM
|
#13
|
Member
Registered: Sep 2007
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|