Kernel 5.0 disk-errors on boot, can't boot up: is it just me?
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Kernel 5.0 disk-errors on boot, can't boot up: is it just me?
I just built kernel 5.0. I had been running 4.20.13. I unpatched with the 4.20.13 patch then applied the 5.0 patch. It ran without complaint. When I try to boot into it, I get hard disk errors. I can still boot into 4.20.13. e2fsck run from a boot flash drive finds no errors. I had disk errors before; this may be a problem only I have. Has it worked for everyone else?
Later: I built the kernel from the 5.0 tarball, get the same result.
Quote:
EXT4-fs error in ext4_reserve_inode_write: Journal has aborted
EXT4-fs ext4_journal_check_start [whoops! forgot to write this down, but it fails]
then it mounts read-only.
Last edited by RandomTroll; 03-04-2019 at 10:56 PM.
I just built kernel 5.0. I had been running 4.20.13. I unpatched with the 4.20.13 patch then applied the 5.0 patch. It ran without complaint. When I try to boot into it, I get hard disk errors. I can still boot into 4.20.13. e2fsck run from a boot flash drive finds no errors. I had disk errors before; this may be a problem only I have. Has it worked for everyone else?
Later: I built the kernel from the 5.0 tarball, get the same result.
then it mounts read-only.
I'm running 5.0 on 2 boxes running Slackware64-current without any hitch.
What patch did you apply?
patch-5.0.xz I later downloaded the whole source then built from that, had the same result.
Doh, I too downloaded the kernel source from here, and built it using the .config of the previous running kernel.
FYI, even the nvidia latest drivers (version 418.43) worked!
but it seems to work otherwise. Do you use journals? I don't know how to interpret this error, why udevd is involved. How much do I miss by not-journaling? Why do I get this error in kernel 5.0 but not 4.20.13?
I always get my kernel from kernel.org. I booted from a flash drive, turned off the journal, can boot, get but it seems to work otherwise. Do you use journals? I don't know how to interpret this error, why udevd is involved. How much do I miss by not-journaling? Why do I get this error in kernel 5.0 but not 4.20.13?
From what I've read this error affects SSD drives, which I don't have.
Other than that, I use the default journaling capabilities of EXT4 and the kernel is compiled with:
Code:
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_ENCRYPTION is not set
# CONFIG_EXT4_DEBUG is not set
Where have you read this? I don't have SSD drives.
Put the error you get in the search engine and the first hits were about SSD drives giving the same error.
Also what is strange is that these first hits were about ubuntu or debian distros
Put the error you get in the search engine and the first hits were about SSD drives giving the same error.
Also what is strange is that these first hits were about ubuntu or debian distros
These are old messages about old kernels. Your disk has a journal, so it's not a general problem. The journal on my other volume has no problem. I seem to have some subtle defects with my hardware. I don't need a journal on the boot volume, so I'll let it ride. Thanks for your help.
I try again every kernel update: no luck. I notice this error:
Quote:
ext4_dirty_inode:6087: IO Failure
I find this error from kernels in 2.6, relating to a bug when JBD_DEBUG isn't being used: the kernel didn't mark the inode as dirty. Could a similar error have recrudesced? I use JBD2_DEBUG. One would think this inode would get marked dirty, which would solve the problem. e2fsck finds no errors, so the inode can't have failed because the sector in which it resides is bad.
I try again every kernel update: no luck. I notice this error: I find this error from kernels in 2.6, relating to a bug when JBD_DEBUG isn't being used: the kernel didn't mark the inode as dirty. Could a similar error have recrudesced? I use JBD2_DEBUG. One would think this inode would get marked dirty, which would solve the problem. e2fsck finds no errors, so the inode can't have failed because the sector in which it resides is bad.
Perhaps you should run a smartctl check on the disk, because getting different errors any time could mean a hardware problem
Perhaps you should run a smartctl check on the disk, because getting different errors any time could mean a hardware problem
I always get the same error. I finally installed 5.0.2 on my old disk and booted from it: it works, which points to my new disk having the problem. sigh.
Later: I bought a new disk because smartctl reported errors in the old one; it doesn't in the new one.
Last edited by RandomTroll; 03-14-2019 at 11:37 PM.
I always get the same error. I finally installed 5.0.2 on my old disk and booted from it: it works, which points to my new disk having the problem. sigh.
Later: I bought a new disk because smartctl reported errors in the old one; it doesn't in the new one.
Could be a faulty cable, or (SATA) connector on the motherboard.
This error has expanded in an odd way: when I build a new kernel, the journal on /dev/sda2 (which mounts on /home) errors, the drive becomes unwritable - before I boot into the new kernel - complaining of a journal error. I re-boot and it works as it did before. /dev/sda1, which mounts on / has no problem; it has no journal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.