LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Cant hibernate 9.3 (https://www.linuxquestions.org/questions/suse-opensuse-60/cant-hibernate-9-3-a-346544/)

alaios 07-25-2005 10:01 AM

Cant hibernate 9.3
 
Hi i use suse 9.3 with the default kde..... The problem is that from the Kpowesave when i use the hibernate functionality dont hibernates the pc always. it justs tries to stop the tasks and then returns to the kde asking for a password... do u face this problem or not?
Thx a lot

Amr_not_Amr 07-26-2005 10:34 AM

I faced the same problem >>
but not as with u
it starts to suspend the computer then the progess bar reaches 100% then the black sreen appears .. then it it turn again to the X ..
but I think it's because of old hardware .. i've a Pentium 3, 800 Mhz processor, with 256 Mb RAM ..



I guess also it's because of using more than one swap partition or too small swap .. maybe .. try to increase ur swap partition size and use only one .. and it should be at least double of the RAM size ..
try and tell me

alaios 07-26-2005 08:40 PM

No i dontt think thats a problem of old hardware...... I have 1gb ram with 700mb swap.. I dont know why but i think thats a s very bad implementation of hibernate functionality

Amr_not_Amr 07-27-2005 04:30 AM

Quote:

I have 1gb ram with 700mb swap
the swap is much much less than the ram size ..
enlagre the swap partition to be at least 1250 mb
the swap should always be largaer than the ram to be able to hibernate .. because when u try to hibernate it dumps the *used* ram to the swap .. so if there is no enough space on the swap it can't do the job ..

if u don't know how to enlarge the swap partition I can help u

alaios 07-27-2005 05:43 AM

Yea if u can help me with this task,,,,

gokulagiridaran 07-27-2005 11:08 AM

hey its working fine for me, i have 256MB RAM with 300 MB Swap.

Kdr Kane 07-27-2005 11:49 AM

Unfortunately, you'll probably have to rebuild to increase the swap partition.

You can't use a swap file, it must be a partition and it must be larger than your total RAM memory. These are the requirements for hibernation.

Amr_not_Amr 07-27-2005 05:24 PM

I'm not on suse right now >> so u have to guess if i'm not using exact words

open yast ... then open system page from the left menu ..
then open partitioner
then it will ask u whether u r aware of what u r doing so click on YES
then the partitioner window will open
so select the swap partition then delete it by clicking on the delete buttom
then select the partition just after or before it which has some free spoce then click on resize buttom and resize it to a size of 400 mb less at least (u can resize it to a 500 to 600 mb lesser size for optimum performance) .... then create new partition by clicking on the new buttom and choose the filesystem to be swap ..and use the maximum allowed size ..

then make sure of the swap size not less then 1200 mb
then apply by clicking on finish then apply
then it will take sometime to accomplish the job so be patient ..
when it finishes click on abort .. the make sure the new swap partition is active by checking /etc/fstab


I hope i could help u ..

Beranger 07-28-2005 03:52 AM

My fix
 
I had the same issue the first time I put SuSE 9.3 on this PC, having RAM=512 MB, swap=520 MB.

My fix was to add

Code:

acpi=force
to the boot string.

Now it works.

alaios 08-15-2005 11:32 PM

Oh boy now i am confused.... what should i do??
Put the string acpi=force or chagne the size of swap partition?
Is i change the partition this cant harm my pc so it cant boot anymore?

Beranger 08-16-2005 02:06 AM

Quote:

Originally posted by alaios
Oh boy now i am confused.... what should i do??
Put the string acpi=force or chagne the size of swap partition?
Is i change the partition this cant harm my pc so it cant boot anymore?

Changing the size of your swap partition won't harm anything!!!
(actually, I made mine 1.5 GB for 512 MB of RAM)
That is... if you have unpartitioned space or you can take space from another partition, not from the one you're having Linux on!!!
On the other hand, 'acpi=force' would not harm either, try it first.
Are you having the swap at least 1.5 times your RAM, anyway?

alaios 08-16-2005 02:42 AM

What do u mean that wont harm anything? If i resize the partition in such way so as to overwrite some files that the other partition has?

Beranger 08-16-2005 02:54 AM

Quote:

Originally posted by alaios
What do u mean that wont harm anything? If i resize the partition in such way so as to overwrite some files that the other partition has?
Actually, you can't resize it!
If you delete it and then recreate it, you have to have free unpartitioned space.
If you don't, try getting some free space from a windoze partution -- with Partition Magic or something.

Amr_not_Amr 08-16-2005 09:17 AM

you can resize the partion just after or before it using the partitioner in YAST
then delete the swap partition
and then recreate it using all the available space

Beranger 08-16-2005 09:39 AM

Quote:

Originally posted by Amr_not_Amr
you can resize the partion just after or before it using the partitioner in YAST
then delete the swap partition
and then recreate it using all the available space

You're confusing the user...
It depends of what is before and after the partition...

Amr_not_Amr 08-16-2005 09:42 AM

no .. not confusing
he can resize any type of partition to a smaller one if it has free space

Beranger 08-16-2005 09:50 AM

Quote:

Originally posted by Amr_not_Amr
no .. not confusing
he can resize any type of partition to a smaller one if it has free space

To resize a smaller partition to a smaller one, that partition has to be unused, or else he will lose data.

Stuff like Partition Magic can move data to accomodate this IF that filesystem is FAT32 or NTFS AND IF it's defragged, but YaST has no chance here.

alaios 08-16-2005 11:07 PM

Thx for your answer... I also think that resizing a partition with free space it s easily to damage the data of the partition...
I want now to divert your attention to something else

I have 1gb ram with 1,6GB swap (swap space never used)
Why i cant hibernate!!!!!!!!!!!! check my first post plz
Have a nice day

Amr_not_Amr 08-17-2005 06:53 PM

Quote:

Originally posted by Beranger
To resize a smaller partition to a smaller one, that partition has to be unused, or else he will lose data.

Stuff like Partition Magic can move data to accomodate this IF that filesystem is FAT32 or NTFS AND IF it's defragged, but YaST has no chance here.

hello
man .. it's not my 1st time to resize a partition using YAST .. I'm not saying to delete then recreate on a smaller space ...
NO .. there is an option in the YAST partitioner to select a partion (e.g. of 12 GB with 4 GB free space) then resize it to a smaller one (e.g. to be just 9 GB) if it has enough free space ..
I've already made this on reiserfs, fat32, ext3 and ext2 filesystems .. IT lost no data .. as it move the data away from the space need to be free then reedit the partition table and this way it loses NO DATA ...


this can even be done using command line if it's ext2 or 3 without losing any data ..

Beranger 08-18-2005 02:29 AM

You are right.

I'm not a YaST afficionado, nor a SuSE one -- although I also use SuSE 9.3 now.

I don't know what YaST use internally to play with partitions.

Other distros use qtparted (that is, parted + resize2fs, parted + ntfsresize, parted + progsreiserfs for resizing partitions), which actually works... but now always!

If YaST is not worse than that, it should work too.

Amr_not_Amr 08-18-2005 12:08 PM

YAST uses these tools too
when it's working on a partition u can open a terminal and type this command ps -aux
it will show u all the processes u will find parted and such stuff .. the partitioner uses these tools in the background ..


All times are GMT -5. The time now is 09:42 AM.