LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2016, 09:20 PM   #1
tenTons
LQ Newbie
 
Registered: Oct 2016
Location: USA
Distribution: Elementary OS
Posts: 4

Rep: Reputation: Disabled
Question Filesystem errors after waking up from hibernation


I'm dual-booting Elementary OS Loki and Windows 10. When I try to hibernate my laptop... usually it works. But every once in a while (about 15% of the time), things will seem ok. Then at some point I will either notice that all of my files and folders are read-only or the entire system just stops responding. While all of this is going on, dmesg has some lines like these:
Code:
[24966.962483] EXT4-fs error (device sda7): ext4_iget:4389: inode #1051637: comm updatedb.mlocat: bogus i_mode (0)
[24966.992891] Aborting journal on device sda7-8.
[24967.012781] EXT4-fs (sda7): Remounting filesystem read-only
[24967.012820] EXT4-fs error (device sda7): ext4_iget:4389: inode #1051638: comm updatedb.mlocat: bogus i_mode (0)
[24967.037617] EXT4-fs error (device sda7): ext4_iget:4389: inode #1051639: comm updatedb.mlocat: bogus i_mode (0)
[24967.048450] EXT4-fs error (device sda7): ext4_journal_check_start:56: Detected aborted journal
And from the most recent episode:
Code:
[ 4117.360874] ata1.00: exception Emask 0x0 SAct 0x7fffffff SErr 0x0 action 0x0
[ 4117.360905] ata1.00: irq_stat 0x40000008
[ 4117.360921] ata1.00: failed command: READ FPDMA QUEUED
[ 4117.360942] ata1.00: cmd 60/08:c8:50:b0:c0/00:00:44:00:00/40 tag 25 ncq 4096 in
                        res 41/40:00:50:b0:c0/00:00:44:00:00/40 Emask 0x409 (media error) <F>
[ 4117.360990] ata1.00: status: { DRDY ERR }
[ 4117.361006] ata1.00: error: { UNC }
[ 4117.364365] ata1.00: configured for UDMA/133
[ 4117.364417] sd 0:0:0:0: [sda] tag#25 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 4117.364419] sd 0:0:0:0: [sda] tag#25 Sense Key : Medium Error [current] [descriptor] 
[ 4117.364422] sd 0:0:0:0: [sda] tag#25 Add. Sense: Unrecovered read error - auto reallocate failed
[ 4117.364425] sd 0:0:0:0: [sda] tag#25 CDB: Read(10) 28 00 44 c0 b0 50 00 00 08 00
[ 4117.364426] blk_update_request: I/O error, dev sda, sector 1153478736
[ 4117.364469] ata1: EH complete
[ 4117.364478] EXT4-fs error (device sda7): ext4_wait_block_bitmap:503: comm kworker/u16:1: Cannot read block bitmap - block_group = 682, block_bitmap = 22020106
[ 4118.249693] Aborting journal on device sda7-8.
[ 4118.827126] EXT4-fs (sda7): Remounting filesystem read-only
[ 4118.827211] EXT4-fs error (device sda7) in ext4_writepages:2614: IO failure
After all that I try to restart normally if I can, otherwise I just hold the power button. Ether way, I can't boot linux or windows until I run fsck from a live usb.

Why does this keep happening and how do I prevent it? So far I've reinstalled and even reformatted the linux partition to no avail. Looking up the messages suggests that this could be a hard drive problem but I'm still not sure or maybe I'm in denial...
 
Old 10-29-2016, 09:02 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Hi welcome to LQ.

It appears your power manager does not know where your swap drive is.
Try to configure the power manger correctly and test hibernate again.

Good luck.

m.m.
 
Old 10-29-2016, 06:52 PM   #3
tenTons
LQ Newbie
 
Registered: Oct 2016
Location: USA
Distribution: Elementary OS
Posts: 4

Original Poster
Rep: Reputation: Disabled
I'm not sure how to configure that. My swap partition is active so I assumed that would be enough for the system to hibernate correctly.
Sorry if I'm missing anything obvious - I'm still getting used to linux!

Edit: Followed the advice over here and added resume=/dev/sda8 to my boot options. It will take a few tries to see if it really works but thanks for the advice and I'll let you know how it goes!

Last edited by tenTons; 10-29-2016 at 09:17 PM.
 
Old 11-01-2016, 10:18 AM   #4
PurePenguin
LQ Newbie
 
Registered: Nov 2016
Posts: 10

Rep: Reputation: 0
Please, let us know, whether it has worked
 
Old 11-01-2016, 07:57 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The hibernate partition must be at least as large as the ram memory.
 
Old 11-01-2016, 08:27 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by AwesomeMachine View Post
The hibernate partition must be at least as large as the ram memory.
That would work if and only if there was ZERO pages swapped... Unfortunately, that is rarely the case, though not impossible. The usual suggestion is closer to twice the RAM to cover what may already be paged out.

And this gets worse as more systems are using tmpfs mounts for /tmp. By default, a tmpfs mount is limited to half your memory, and anything in /tmp must be paged out, and this DOESN'T include any of the processes already running. Thus for a (single) tmpfs mount with defaults is 1/2 your ram - which may be paged out to swap in favor of active processes (ie, your GUI+applications...) which may take up more than half your ram (assuming 4GB memory) - thus you would need a MINIMUM of 6GB in swap to be relatively safe. Now, if your applications are rather large (and most GUI systems are rather large)parts of it will already be swapped...

And that brings it up to about 8GB for a swap file.

Then you get to add the other tmpfs mounts... :-)

Last edited by jpollard; 11-01-2016 at 08:38 PM.
 
Old 11-03-2016, 08:32 PM   #7
tenTons
LQ Newbie
 
Registered: Oct 2016
Location: USA
Distribution: Elementary OS
Posts: 4

Original Poster
Rep: Reputation: Disabled
I've gone through quite a few hibernate/resume cycles and while most worked fine, there were a few cases where the system either froze on a black screen while resuming or gave me some dramatic looking stack trace (I tried to attach an image, if you can't see it let me know).

On one hand I haven't had any of the ext4-fs errors that I had before, so I think that's been solved. But the freezing while resuming is still a problem and the message in the picture is new.

Quote:
The hibernate partition must be at least as large as the ram memory.
I have 8gb of ram and 9.5gb of swap.
Attached Thumbnails
Click image for larger version

Name:	20161031_181619.jpg
Views:	42
Size:	284.0 KB
ID:	23443  

Last edited by tenTons; 11-03-2016 at 08:55 PM. Reason: 9.5gb swap not 9
 
  


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
Filesystem errors, how do I tell which volume its on from log errors? anon091 Linux - Newbie 5 03-09-2011 03:20 PM
filesystem errors after backup with dd integrale16 Slackware 12 06-15-2010 03:15 PM
Filesystem errors linuxmandrake Linux - Newbie 12 02-02-2008 07:56 PM
ext2 filesystem errors time112852 Linux - Software 12 12-25-2005 06:51 PM
filesystem errors graziano1968 Linux - Software 1 09-27-2004 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration