Hibernation doesn't do anything but just lock screen

Hi, I posted a thread about a month ago complaining about boot being really slow and the computer just refusing to hibernate.

Well, I assumed that with the hibernate menu option back in the Kickoff then hibernating would be OK. Until today I haven’t actually hibernated the computer yet, so I tried and all I got to is the lock screen.

Typing in s2disk in the terminal comes up with this:


s2disk: Could not stat the resume device file. Reason: No such file or directory

fdisk output (if this is helpful):


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x499904f7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   515330047   257664000   83  Linux
/dev/sda3       515332094   976771071   230719489    5  Extended
/dev/sda5       960036864   976771071     8367104   82  Linux swap / Solaris

Thanks!

On 2012-03-04 13:06, islandape wrote:

> Typing in s2disk in the terminal comes up with this:
>
> Code:
> --------------------
>
> s2disk: Could not stat the resume device file. Reason: No such file or directory
>
> --------------------
>

Verify that you have a swap partition, that it is properly listed in fstab,
and in the kernel boot entry “resume=” (grub).

Also verify that the partition of type swap is really a swap partition.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Noticed and fixed problem, thanks!

The resume flag directed s2disk to part6 (which doesn’t exist anymore). I’ve changed it to part5.

On 2012-03-04 15:16, islandape wrote:
>
> Noticed and fixed problem, thanks!
>
> The resume flag directed s2disk to part6 (which doesn’t exist anymore).
> I’ve changed it to part5.

Good! :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hi
After installing OpenSuse 13.1 hibernate (suspend to disk) is failing.
The process nevers ends and I have to reboot and shutdown.

I’ve checked that the swap partition specified in grub is correct, in my case /dev/sdb4, which is a swap partition.
Optioanl kernel command line parameter
resume=/dev/disk/by-id/ata-ST3250820AS_5QE05JVL-part4

I set “splash = n” in /etc/suspend.conf in order to get some insight to what is happening
It seems to prepare the snapshot but fails to write it to disk.
This is what I see on the screen:

Read_error on swap-device
Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK

But I don’t know how to interpret this.
Any help welcome.

BR and happy new 2014, Eduardo

32 or 64 bit OS??

On 2013-12-31 16:56, ehjhsuse wrote:
> Read_error on swap-device

Run the long test via smartctl on that disk.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

Hi

This is a 64 bit system.

Linux linux-b6v0 3.11.6-4-desktop #1 SMP PREEMPT Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64 x86_64 x86_64 GNU/Linux

Carlos, what do you mean with “Run the long test via smartctl on that disk.” ?
I executed the pm-hibernate command but I don’t know how to log the output and attach it here.
Is that what you are referring to ?

R/ Eduardo

no the smartctrl command

man smartctrl to get manual

On 2014-01-02 19:06, ehjhsuse wrote:

> Carlos, what do you mean with “Run the long test via smartctl on that
> disk.” ?

I suspect hardware problem with your hard disk. There is a technology included with all hard disks
to self-verify them while on use, called SMART.

http://en.wikipedia.org/wiki/S.M.A.R.T.

There is a program in Linux to read the SMART log and initiate tests. I suggest you run first the
short test, read the log, then initiate the long test, then read the log.


smartctl --help

There is also a GUI in gnome that can do some of this, but I don’t remember the name at the moment.
Palimpsest perhaps. Yes, that’s the name, but I can’t find the package name. Ok, yes, it is
“gnome-disk-utility”.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

I’m running the long test right now.
Need about 90 mins.

smartctl --test=long /dev/sdb

It’s running, need about 80 mins.
I’ll post result in a while.

gracias

Here are the results.
Apparently no errors.

R/ Eduardo

linux-b6v0:~ # smartctl --test=long /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11.6-4-desktop] (SUSE RPM)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, smartmontools

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: “Execute SMART Extended self-test routine immediately in off-line mode”.
Drive command “Execute SMART Extended self-test routine immediately in off-line mode” successful.
Testing has begun.
Please wait 92 minutes for test to complete.
Test will complete after Thu Jan 2 21:08:09 2014

Use smartctl -X to abort test.

linux-b6v0:~ # smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11.6-4-desktop] (SUSE RPM)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, smartmontools

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.10
Device Model: ST3250820AS
Serial Number: 5QE05JVL
Firmware Version: 3.AAC
User Capacity: 250,059,350,016 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-7 (minor revision not indicated)
Local Time is: Thu Jan 2 21:24:30 2014 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 92) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 109 095 006 Pre-fail Always - 97371254
3 Spin_Up_Time 0x0003 090 090 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 093 093 020 Old_age Always - 7997
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 082 060 030 Pre-fail Always - 199714930
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 5177
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 093 093 020 Old_age Always - 7709
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 061 052 045 Old_age Always - 39 (Min/Max 30/42)
194 Temperature_Celsius 0x0022 039 048 000 Old_age Always - 39 (0 15 0 0 0)
195 Hardware_ECC_Recovered 0x001a 063 057 000 Old_age Always - 163591825
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 116
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 Data_Address_Mark_Errs 0x0032 100 253 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error

1 Extended offline Completed without error 00% 5176 -

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

On 2014-01-02 21:36, ehjhsuse wrote:
>
> Here are the results.
> Apparently no errors.
>
> R/ Eduardo
>

Just a comment - next time please put that computer text inside a code block. You get them clicking
on the ‘#’ on the forum editor.

I’ll try to recompose your post.



> *linux-b6v0:~ # smartctl -a /dev/sdb*
> smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.11.6-4-desktop] (SUSE RPM)
>
> Copyright (C) 2002-13, Bruce Allen, Christian Franke, 'smartmontools'
> (http://www.smartmontools.org)
>
>
>
> === START OF INFORMATION SECTION ===
>
> Model Family:     Seagate Barracuda 7200.10
>
> Device Model:     ST3250820AS
>
> Serial Number:    5QE05JVL
> Firmware Version: 3.AAC
> User Capacity:    250,059,350,016 bytes [250 GB]
> Sector Size:      512 bytes logical/physical
> Device is:        In smartctl database [for details use: -P show]


> === START OF READ SMART DATA SECTION ===
> SMART overall-health self-assessment test result: PASSED


> SMART Attributes Data Structure revision number: 10
> Vendor Specific SMART Attributes with Thresholds:
> ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE UPDATED  WHEN_FAILED RAW_VALUE
>  1 Raw_Read_Error_Rate      0x000f   109   095   006    Pre-fail      Always -       97371254
>  3 Spin_Up_Time             0x0003   090   090   000    Pre-fail     Always  -       0
>  4 Start_Stop_Count         0x0032   093   093   020    Old_age      Always  -       7997
>  5 Reallocated_Sector_Ct    0x0033   100   100   036    Pre-fail     Always  -       0
>  7 Seek_Error_Rate          0x000f   082   060   030    Pre-fail     Always  -       199714930
>  9 Power_On_Hours           0x0032   095   095   000    Old_age      Always  -       5177
> 10 Spin_Retry_Count         0x0013   100   100   097    Pre-fail     Always  -       0
> 12 Power_Cycle_Count        0x0032   093   093   020    Old_age      Always  -       7709
> 187 Reported_Uncorrect      0x0032   100   100   000    Old_age      Always  -       0
> 189 High_Fly_Writes         0x003a   100   100   000    Old_age      Always  -       0
> 190 Airflow_Temperature_Cel 0x0022   061   052   045    Old_age      Always  -       39 (Min/Max 30/42)
> 194 Temperature_Celsius     0x0022   039   048   000    Old_age      Always  -       39 (0 15 0 0 0)
> 195 Hardware_ECC_Recovered  0x001a   063   057   000    Old_age      Always  -       163591825
> 197 Current_Pending_Sector  0x0012   100   100   000    Old_age      Always  -       0
> 198 Offline_Uncorrectable   0x0010   100   100   000    Old_age      Offline -       0
> 199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age      Always  -       116
> 200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age      Offline -       0
> 202 Data_Address_Mark_Errs  0x0032   100   253   000    Old_age      Always  -       0
>
> SMART Error Log Version: 1
> No Errors Logged
>
> SMART Self-test log structure revision number 1
> Num  Test_Description    Status                  Remaining LifeTime(hours)  LBA_of_first_error
> # 1  Extended offline    Completed without error       00%      5176             -


Well, the disk appears healthy, that was not the problem. Nevertheless, it is a good idea to run the
long test now and then.

The parameters I was interested are #5, 197 and 198, mainly.

Well, what I would do now is recreate that swap partition (re-format with mkswap), and verify that
the entries in fstab and kernel boot line are correct.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

Thanks Carlos

I already did as you propose.

Here is my fstab

> cat /etc/fstab
/dev/disk/by-id/ata-ST3250820AS_5QE0CPYP-part1 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST3250820AS_5QE05JVL-part1 /backup              reiserfs   defaults              1 2
/dev/disk/by-id/ata-ST3250820AS_5QE0CPYP-part3 /home                reiserfs   defaults              1 2
/dev/disk/by-id/ata-ST3250820AS_5QE05JVL-part4 swap                 swap       defaults              0 0


and this is the content of the Boot Loader Options > Optional Kernel Command LineParameter

resume=/dev/disk/by-id/ata-ST3250820AS_5QE05JVL-part4 splash=silent quiet showopts

By the way, when I open the Boot Loader it takes a very long time to Initialize.

cheers

Just a thought…

I have seen the same symptoms in the past caused by bad RAM.

Check it, in case.

-fb

Thanks for the tip.
Any idea how to test the RAM from console ?

I think it can also be tested with the installation CD.

regards / Eduardo

Yes, Memtest+ is on the install CD.

I’ve run memtest for a while, until test #8 and there are no errors.

On 01/03/2014 06:26 PM, ehjhsuse wrote:
>
> I’ve run memtest for a while, until test #8 and there are no errors.

No memtest run is complete until it has done a complete pass, and some error
conditions may require several passes. I always run the test for at least 12
hours, and prefer 24.