How to use fsck to clean corrupted files

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

fredsiva
New User
Posts: 11
Joined: Thu Nov 09, 2017 7:24 am

How to use fsck to clean corrupted files

Postby fredsiva » Wed Nov 29, 2017 10:56 pm

Hi,

I am running 0.9.1 with Java8 on my EV3.
I have 2 corrupted jar files under /home/lejos/lib (showing as ls: ./base64coder.jar: Input/output error)

How can I clean these up?
Shall I use fsck, and if so, how?

many thanks,
Frédéric Siva

User avatar
gloomyandy
leJOS Team Member
Posts: 5914
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: How to use fsck to clean corrupted files

Postby gloomyandy » Thu Nov 30, 2017 8:53 am

Have you tried just deleting them?
leJOS news https://lejosnews.wordpress.com/

fredsiva
New User
Posts: 11
Joined: Thu Nov 09, 2017 7:24 am

Re: How to use fsck to clean corrupted files

Postby fredsiva » Thu Nov 30, 2017 2:46 pm

I tried it and deleting the files retuns me an I/O error.
I cannot delete the directory because it is bot empty, even with -rf argument.

User avatar
gloomyandy
leJOS Team Member
Posts: 5914
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: How to use fsck to clean corrupted files

Postby gloomyandy » Thu Nov 30, 2017 3:22 pm

To be honest the quickest way to sort things out is to re-install leJOS.
leJOS news https://lejosnews.wordpress.com/

fredsiva
New User
Posts: 11
Joined: Thu Nov 09, 2017 7:24 am

Re: How to use fsck to clean corrupted files

Postby fredsiva » Thu Nov 30, 2017 4:25 pm

When I re-install with a fresh sd-card, some of the Linux FS is not reset, and the corrupted files are still there...

Shall I press the reset button inside the EV3 battery compartement before inserting the new sd card?

User avatar
gloomyandy
leJOS Team Member
Posts: 5914
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: How to use fsck to clean corrupted files

Postby gloomyandy » Thu Nov 30, 2017 4:36 pm

There is no reset button in the battery compartment on the EV3, that button is used to detect the use of a rechargeable battery. Oh and there is no way that any corrupt file is carried over from one sd-card to another All of the Linux fs is recreated from scratch, are you sure you used a different SD card?
leJOS news https://lejosnews.wordpress.com/


Return to “EV3 Software”

Who is online

Users browsing this forum: No registered users and 7 guests