system crashes when try to hibernate

Asked by wyverndany

When I try to hibernate my system some letters appear and then the system just stays still, without hibernating and without doing anything.

I also noticed that when I lock the screen or put the system to sleep and then restore the system then the screen just vibrates and i have to restart the system to get this fixed.

I'm running Ubuntu 9.10 Karmic Koala 64 bits and using NVIDIA drivers 185.

Any ideas...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
wyverndany
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

Hi :)

Is Swap > Ram ? For sleep mode you really need to make swap larger than ram. You can compare the sizes by getting to a command-line and typing

free -m

Good luck and regards from
Tom :)

Revision history for this message
wyverndany (wyverndany) said :
#2

Hi I resized my swap to 4 Gb.
I have 4 Gb on ram and then I tried to hibernate

The computer just goes to black and then theres no way to get back I have to reboot by disconnecting from electricity ...

Any other ideas?

Revision history for this message
Tom (tom6) said :
#3

Hi :)

Please let us know the output of

free -m

Assuming that is ok tho the next most likely cause is that you have installed Ubuntu inside Windows which is removing most of the advantage of using a linux system. The Wubi install is great as a slightly longer-term demo version of Ubuntu but it relies on Windows systems working well and co-operating with a rival OS. If you have done this then part 8 of section 8 in this guide
https://wiki.ubuntu.com/WubiGuide

To find out if you have installed Ubuntu inside Windows please let us know how many options you get for booting into Ubuntu when you switch the machine one. Do you get just 1 choice for Ubuntu and 1 for Windows?

Good luck and regards from
Tom :)

Revision history for this message
wyverndany (wyverndany) said :
#4

OK

I installed Ubuntu from boot live cd not with Wubi !
When the computer starts I get 2 options for Ubuntu LInux (Normal and recovery). and I get 2 for windows too.

and here's the output you requested :

total used free shared buffers cached
Mem: 3953 1309 2644 0 59 486
-/+ buffers/cache: 763 3189
Swap: 0 0 0

Thanks

Daniel

Revision history for this message
Tom (tom6) said :
#5

Hi :))

Ahah, for some reason your swap is not getting mounted. Easiest way i cn think of is to open GPartEd

System - Administration - GPartEd

and right-click on the red swap partition and choose "SwapOn" from that right-click menu. If you still have problems then it might be worth trying to sort it out in the fstab but general wisdom says to steer away from the fstab if at all possible.

If you could give us the output of

sudo fdisk -l
sudo blkid

& also copy&paste the contents of your fstab then we could have a look to see if something sensible can be done safely. Note the "-l" is a lower-case "-L". I would do the 2 commands below to back-up the fstab even before opening it as read-only

sudo cp /etc/fstab /etc/fstab.140410
gedit /etc/fstab

So that you have the back-up with a date-stamp so it's easy to spot if you ever need it. "fstab.140410" make so much more sense than "fstab.bak" imo.

Good luck and regards from
Tom :)

Revision history for this message
wyverndany (wyverndany) said :
#6

I tried to suspend the computer after mounting the swap and no success again ...

I don't want to mess up te system trying to fix this either way I plan to update to lucid as soon as it is released the final version.

Thanks for your help either way...

I have a question about gparted though:

I tried to resize my home and my system partitions but I can't because they are mounted.
I tried booting directly to gparted live usb and the same error appears. When I try to resize this partitions an error occuers and it doesn't allow me to resize.

Revision history for this message
Tom (tom6) said :
#7

Hi :)

Yeh, to re-size the partitions it's better from a LiveUsb or LiveCd session and then in GPartEd just right-click on the partition and choose "Umount" or "SwapOff" then you should be able to do the resizing. After the resizing is finished you might want to remount the partitions, or "SwapOn" if it's a swap partition.

I t would still be handy to have the output of those especially the

sudo fdisk -l

Just to see how it looks at the moment.
Good luck and regards from
Tom :)

Revision history for this message
wyverndany (wyverndany) said :
#8

Well I tried to resize the partitions but as I tell you gparted wouldn't allow me :(

The disk space isn't really a problem so I will leave it that way for now.
Then I will reinstall if needed :)

Thanks for your help.

By the way i returned the swap to 2 Gb but still here's the output you requested me.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbefb4d1c

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 192 1536000 27 Unknown
/dev/sda2 192 29912 238729216 7 HPFS/NTFS
/dev/sda3 59453 60802 10833920 17 Hidden HPFS/NTFS
/dev/sda4 29913 59452 237280050 5 Extended
/dev/sda5 29913 30168 2056288+ 82 Linux swap / Solaris
/dev/sda6 30169 33815 29294496 83 Linux
/dev/sda7 33816 59452 205929171 83 Linux

And thanks again for your help :)

Revision history for this message
Tom (tom6) said :
#9

Hi :)

That swap really needs to be larger than Ram. Even if it doesn't completely fix the problem right now having it less than Ram is going to cause problems and might even be one 1 contributory factor causing the problem.

I guess that sda6 is your / partition? There must be a huge amount of empty space there. Some people argue that Ubuntu only needs 3-4Gb of space for it's / but i usually give it just enough to accommodate a full install just in case something goes wrong during install. The great news about the way you have done it is that there is plenty of space for an extra partition to have a play around with the 10.04 beta in a "sandboxed" area so that your main install and data can stay safe, hopefully :)

If you can back-up the fstab and also open it in read-only mode to give us a copy then that would be really great. But don't worry if you still feel edgy about doing this

sudo cp /etc/fstab /etc/fstab.150410

this is to back-up the fstab with today's date at the end instead of something unhelpful like ".bak". This is the important command & i would do this even if you don't end up opening the file. This next command should open the fstab in read-only mode so that you can't accidentally change anything

gedit /etc/fstab

But as i said, this is the one that you might not want to do, if so then leave it.
Good luck and regards from
Tom :)

Revision history for this message
wyverndany (wyverndany) said :
#10

Ok Thanks.

I will make the swap 4 Gb just in case :)
and with respect to the other problem i rather don't mess my system right now doing somethign like changing the fstab file.

I already installed once the Beta 1 of 10.4 and it seem to work good, so maybe I will wait for the final release to go definitively to 10.4.

Either way thanks a lot for all your help Tom.
Really appreciate it.

Thanks

Revision history for this message
Tom (tom6) said :
#11

Hi :)

You are welcome. Sorry i keep pushing for changes. One of the great things about linux is it is sooo much safer to play around with and tweak endlessly. With the LiveCd you can recover from situations that would have effectively ruined a Windows machine.

Here is a guide about the fstab
https://help.ubuntu.com/community/Fstab

Any new install needs the Medibuntu page to be worked through so here's the link for that
https://help.ubuntu.com/community/Medibuntu

Good luck and enjoy, regards from
Tom :)