Posts: 4
jono
Joined: 06 Jun 2012
#1
I have installed the new M12 antiX-486.iso both on harddisk and on a 32GB persistent live-usb-stick including a swap-partition.

On harddisk hibernation works fine but I would like to know a way for use of hibernation on the live-stick as well.

On the live-stick the necessary

> dpkg-reconfigure uswsusp

failed by leaving initrd.gz unchanged.

So on reboot the resume-partition was not found after hibernating with the antixhibernate.sh script.

Therefore I tried to create a new ISO from the correctly hibernating harddisk-installation using the"antixsnapshot" script. I tried special values for some variables in /etc/antixsnapshot.conf at no avail (I have excluded the mounted partition on /media/sda5/ in /usr/lib/antixsnapshot/snapshot_exclude.list):

work_dir="/media/sda5/m12versions/work"
snapshot_dir="/media/sda5/m12versions/snapshot"

kernel_image="/boot/vmlinuz-3.3.5-antix.1-486-smp"
initrd_image="/boot/initrd.img-3.3.5-antix.1-486-smp"

The special paths to the kernel and the initrd were ignored in the generated ISO. Instead the defaults for vmlinuz an initrd.gz were put into the generated snapshot-ISO. So the method"antixsnapshot" failed as well.

What I didn't try yet is a full antix remaster.

Any help much appreciated.
Posts: 1,139
masinick
Joined: 26 Apr 2008
#2
I am hardly an expert on this topic, particularly with regard to hibernation when used in conjunction with a Live USB stick, but I can tell you this much: In the past, when I have experimented with either using suspend or hibernate in a hard disk configuration, I found that unless I had a swap partition defined and loaded containing AT LEAST as much space as the memory available on the system - and usually twice that amount, neither hibernation nor suspend would work at all. Having double the amount of swap space as recognized memory isn't a guarantee that hibernation will work, but unless the requirements have changed, I'd suggest at least as much swap space as memory available is a necessary condition for hibernation to work properly.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.linux.com/news/hardware/laptops/8253-how-to-suspend-and-hibernate-a-laptop-under-linux"
linktext was:"https://www.linux.com/news/hardware/lap ... nder-linux"
====================================
offers some background, and may give you a few clues on the operation of both suspend and hibernate.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.brighthub.com/environment/green-computing/articles/9738.aspx"
linktext was:"http://www.brighthub.com/environment/gr ... /9738.aspx"
====================================
offers some similar suggestions, so chances are high that these two articles will put you on the right track.

I hope that they help you out!
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Just my experience with flash drives. The read and write cycles are to slow on flash drives vs a internal hardrive install.

The only fast usb installs i have are Puppy Linux because Puppy runs in ram. Haven't never tried Tiny core Linux yet.

My test with a Antix SD card install (this is a full install. Not live flash with persistence) vs a internal hardrive install was miles apart with the same test for hibernation and suspend. The poor flash drive just could not stand the strain I guess with the poor read and write speeds.

Not sure if my situation applies to yours jono. Just passing on what I found out with my flash installs.

Edit: Found my posts. Look above and below that post link on what I found out.

post24652.html#p24652