read only file system; fsck exit status 3
Posted: Thu May 10, 2012 1:22 pm
Hello everyone,
I am using LMDE with gnome 3.2.1. My file systems are ext2. I have had the following problem 2-3 times since installing LMDE several months ago:
At some point during my workday my system becomes read only. I haven't been able to figure out what's common between these times... it might be when I access a particular folder on my hard drive (but not every time I access it; I haven't found a way to reproduce the problem).
The relevant output of dmesg is:
(and shows that the system is being mounted read-only)
I can fix the problem by forcing fsck and rebooting:
$ sudo touch /forcefsck
then reboot. At the reboot I see the following: (see attached picture)
*** EDIT ***
I realized that the fsck was only happening on the root partition. I edited /etc/fstab so that /home is marked "2" for "pass",
This found additional errors, and hopefully fixed the problem (so far so good).
*** END EDIT ****
So my questions are:
1. Is the error occurring because I am trying to access a previously deleted inode? Was the inode incorrectly deleted somehow?
2. Does anyone know how I can prevent this from happening in the future?
Additional info that might help:
I went into to what I think might be the affected folder and I do in fact find a problem with the files there:
But when I encounter the problem, I am NOT accessing any of these particular files; I am just working within the same folder.
I am using LMDE with gnome 3.2.1. My file systems are ext2. I have had the following problem 2-3 times since installing LMDE several months ago:
At some point during my workday my system becomes read only. I haven't been able to figure out what's common between these times... it might be when I access a particular folder on my hard drive (but not every time I access it; I haven't found a way to reproduce the problem).
The relevant output of dmesg is:
Code: Select all
EXT2-fs (sda6): error: ext2_lookup: deleted inode referenced: 4136976
EXT2-fs (sda6): error: ext2_lookup: deleted inode referenced: 4136977
I can fix the problem by forcing fsck and rebooting:
$ sudo touch /forcefsck
then reboot. At the reboot I see the following: (see attached picture)
Code: Select all
Checking root file system...fsck from util-linux 2.20.1
/dev/sda5: ***** REBOOT LINUX *****
/dev/sda5: 353022/1921360 files (1.6% non-contiguous), 3035002/7680000 blocks
fsck died with exit status 3
failed (code 3).
The file system check corrected errors on the root partition but requested that the system be rebooted
The system will be restarted in 5 seconds. ... (warning).
I realized that the fsck was only happening on the root partition. I edited /etc/fstab so that /home is marked "2" for "pass",
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
UUID=sda5_location / ext2 rw,errors=remount-ro 0 1
UUID=sda6_location /home ext2 rw,errors=remount-ro 0 2
*** END EDIT ****
So my questions are:
1. Is the error occurring because I am trying to access a previously deleted inode? Was the inode incorrectly deleted somehow?
2. Does anyone know how I can prevent this from happening in the future?
Additional info that might help:
I went into to what I think might be the affected folder and I do in fact find a problem with the files there:
Code: Select all
$ ls -il
ls: cannot access 20000-22.mp3: Input/output error
ls: cannot access 20000-24.mp3: Input/output error
ls: cannot access 20000-31.mp3: Input/output error
ls: cannot access 20000-44.mp3: Input/output error
total 262224
4136975 -rw-r--r-- 1 ashley ashley 18944206 Jan 3 21:53 20000-01.mp3
4136967 -rw-r--r-- 1 ashley ashley 16304879 Jan 3 21:52 20000-04.mp3
4136973 -rw-r--r-- 1 ashley ashley 15077750 Jan 3 21:52 20000-05.mp3
4136963 -rw-r--r-- 1 ashley ashley 15325518 Jan 3 21:51 20000-12.mp3
4136968 -rw-r--r-- 1 ashley ashley 17482062 Jan 3 21:52 20000-17.mp3
4136970 -rw-r--r-- 1 ashley ashley 22018254 Jan 3 21:52 20000-20.mp3
4136964 -rw-r--r-- 1 ashley ashley 25260238 Jan 3 21:51 20000-21.mp3
? -????????? ? ? ? ? ? 20000-22.mp3
? -????????? ? ? ? ? ? 20000-24.mp3
4136962 -rw-r--r-- 1 ashley ashley 23263566 Jan 3 21:51 20000-25.mp3
4136974 -rw-r--r-- 1 ashley ashley 21108910 Jan 3 21:53 20000-30.mp3
? -????????? ? ? ? ? ? 20000-31.mp3
4136971 -rw-r--r-- 1 ashley ashley 23292110 Jan 3 21:52 20000-32.mp3
4136969 -rw-r--r-- 1 ashley ashley 24072526 Jan 3 21:52 20000-36.mp3
4136966 -rw-r--r-- 1 ashley ashley 24357198 Jan 3 21:52 20000-41.mp3
? -????????? ? ? ? ? ? 20000-44.mp3
4136965 -rw-r--r-- 1 ashley ashley 17455278 Jan 3 21:51 20000-46.mp3
4136972 -rw-r--r-- 1 ashley ashley 4175439 Jan 3 21:52 20000-47.mp3