LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 12-23-2005, 10:33 AM   #1
card-suse
Member
 
Registered: Dec 2005
Location: Ohio, USA
Distribution: OpenSuSE 10.2
Posts: 74

Rep: Reputation: 15
swsusp and swap on logical volume


Is there a problem with swsusp and having your swap space mounted in an LVM group? When I try to suspend to disk I get this error in my /var/log/messages:

Dec 23 10:40:20 nomad1 kernel: Freeing memory... -\|/done (41485 pages freed)
Dec 23 10:40:20 nomad1 kernel: ACPI-0212: *** Warning: Device is not power manageable
Dec 23 10:40:20 nomad1 kernel: swsusp: FATAL: cannot find swap device, try swapon -a!

My swap space is active though. Needless to say, it doesn't suspend to disk. Any suggestions greatly appreciated.

BTW, here's my fstab:

/dev/vg00/OS / reiserfs acl,user_xattr 1 1
/dev/vg00/Backup /Backup reiserfs acl,user_xattr 1 2
/dev/vg00/Data /Data reiserfs acl,user_xattr 1 2
/dev/hda1 /boot reiserfs acl,user_xattr 1 2
/dev/vg00/Users /home reiserfs acl,user_xattr 1 2
/dev/hda2 /windows/C ntfs defaults 0 0
/dev/hda5 /windows/D ntfs defaults 0 0
/dev/vg00/Swap swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
none /subdomain subdomainfs noauto 0 0


Thanks in advance.
 
Old 01-12-2006, 11:35 AM   #2
TheOracle
Member
 
Registered: Nov 2004
Posts: 87

Rep: Reputation: 15
Suspend to disk and Logical Volume Swap

Hi dude

Did you have any luck with this?
I suspect the Logical Vol is an issue as I get...

kernel: Could not suspend device 0000:01:00.0: error -1

...in the /var/log/message.

G
 
Old 01-15-2006, 08:58 PM   #3
card-suse
Member
 
Registered: Dec 2005
Location: Ohio, USA
Distribution: OpenSuSE 10.2
Posts: 74

Original Poster
Rep: Reputation: 15
Thumbs up

Nope. I plan on tackle this issue in the next few weeks. I've been busy setting up other things and put it on the back burner. I'll post here if I find anything out. Later....
 
Old 02-09-2006, 06:58 PM   #4
card-suse
Member
 
Registered: Dec 2005
Location: Ohio, USA
Distribution: OpenSuSE 10.2
Posts: 74

Original Poster
Rep: Reputation: 15
The answer is:

Do not put your swap space in an LVM group. It's ok to place it in an extended partition, but software suspend (swsusp) will not work if you do this. I moved my swap out of my LVM group and created a new swap partition. Everything works great now. If you did what I did and decide to move your swap to get suspend-to-disk to work, then don't forget to modify your boot settings. You'll have pass the write resume setting to the kernel at boot. Add:

resume=/dev/<your swap here>

For instance, mine was resume=/dev/hd5. If you use Grub, look at your /boot/grub/menu.1st file and you'll see what I mean. Hope this helps anyone else who may have experienced this problem.
 
  


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
Logical Volume Management 2 XaViaR Linux - General 5 08-20-2005 07:48 AM
swapping on a logical volume garba Linux - General 1 06-28-2005 06:36 PM
resizing a logical volume nicentral AIX 2 06-11-2005 04:03 PM
logical volume manager plythgam Linux - Software 1 11-08-2004 10:47 AM
Logical Volume Manager sidmark-2850 Linux - General 3 01-02-2004 01:25 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
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