Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


ForumsLinuxfsck
ianboag

103 posts

Master Geek
+1 received by user: 3

Trusted

#195764 3-May-2016 10:13
Send private message

I have a remote Pi with some SD card corruption. Not enough to stop it booting and running, but enough to stop it writing files properly. The problem showed up when I changed some files then rebooted. The changes disappeared ... and a bit of digging revealed that the most likely cause is corruption in the file system.

 

I talk to it via SSH.  

 

When I ran fsck to check but not fix things, it told me there are problems with the internode count. Whatever that is.

 

Can I run fsck and tell it to fix this? Maybe make it do the full fsck as part of the boot sequence ... ? Whatever.

 

I have been reluctant to try this as I don't want to totally kill the system right now. 

 

 


Create new topic
Zeon
3926 posts

Uber Geek
+1 received by user: 759

Trusted

  #1545838 3-May-2016 10:19
Send private message

I don't know specifically about pi but you can't run FSCK with fix option on a mounted filesystem generally. So you probably need to run it as aprt oft he startup process as you mention.





Speedtest 2019-10-14




marpada
487 posts

Ultimate Geek
+1 received by user: 182


  #1545855 3-May-2016 10:34
Send private message

(TIL) touching a /forcefsck file will force fsck on next reboot.


hio77
'That VDSL Cat'
13036 posts

Uber Geek
+1 received by user: 3896

ID Verified
Trusted
Lizard Networks
Subscriber

  #1545865 3-May-2016 11:00
Send private message

as above a touch /forcefsck && reboot is all it takes.

 

 





#include <std_disclaimer>

 

Any comments made are personal opinion and do not reflect directly on the position my current or past employers may have. 


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.