Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ext4 filesystem only reports errors when mounted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 172
Location: Germany

PostPosted: Fri Aug 29, 2014 10:13 pm    Post subject: [SOLVED] ext4 filesystem only reports errors when mounted Reply with quote

Hi

I have a little problem with my system partition. Whenever I check the ext4 filesystem while the system is running, I get these errors:

1. Differences in the block bitmap
2. free blockcount is wrong
3. free inode count is wrong

I tried a fsck on reboot without success. Then I tried to boot into single mode and checked the filesystem manually with "fsck -vfy /dev/sda2" which showed my no errors at all. But when I boot the system and the partition is mounted rw I always get the errors mentioned above. Could someone give me a tip on whats going on or instructions on how to repair the filesystem?

thx in advance
robak
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"


Last edited by robak on Sat Aug 30, 2014 8:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14159

PostPosted: Fri Aug 29, 2014 11:51 pm    Post subject: Reply with quote

Why are you trying to check a filesystem that is in active use? If it is in use, it is not in a consistent state and your fsck results are meaningless. If you attempt to repair the filesystem while it is mounted, you are likely to cause corruption.
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 172
Location: Germany

PostPosted: Sat Aug 30, 2014 8:32 am    Post subject: Reply with quote

Thanks for your answer. So any checks on mounted filesystems are useless? I didn't that but it make totally sense.
I was confused because xfce shows pop-up message that my filesystem is currupted thats why made the checks in the first place.
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14159

PostPosted: Sat Aug 30, 2014 3:22 pm    Post subject: Reply with quote

If a filesystem is mounted read-only, you can check it safely, but not modify it safely. If it is mounted writable, you cannot check it safely nor modify it safely. You should try to find why xfce is making such a claim.
Back to top
View user's profile Send private message
robak
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 172
Location: Germany

PostPosted: Wed Oct 29, 2014 11:51 pm    Post subject: Reply with quote

a quick update on that pop-up message from xfce:

my drive failed yesterday; to many reallocated sectors. obviously that pop-ups came from some SMART daemon I installed ages ago. luckily I could copy all data to another hard drive.
_________________
run this in your gentoo-bash:
"grep -R -i -A2 -B2 'on fire' /usr/src/linux/*"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum