Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had a disk, but unfortunately it had errors from a hard reset on the laptop power.

How do I know?

$ file cache.disk 
cache.disk: Linux rev 1.0 ext3 filesystem data, UUID=1c8cad78-5572-43f7-8165-bc17c86edfce (needs journal recovery) (errors) (large files)

Thus, it cant be mount on fstab.

Question

How to fix these errors?

Way to solve:

At least I found the way to solve this by entering the following command:

fsck.ext3 -y -v cache.disk
  • y mean if prompt anything assuming yes
  • v mean showing the progress
share|improve this question
    
So did you fix the errors or not? If you were able to solve them, post your solution as an answer below and accept it in two days. –  slhck Jun 3 '11 at 19:25
    
superuser told me i need 7 hours later in order to be able post the answer, so i took a chance to re-edit my post with the answer, before i forget to re-answer the known thing.. –  dadudada Jun 3 '11 at 20:21
    
Oh okay fine then :) –  slhck Jun 3 '11 at 20:27

1 Answer 1

You are correct that

fsck -y -v /your/device/here
is the way to go, as far as resolving a crashed file system. It should be noted that you should never run fsck on a live and mounted file system to prevent other services from modifying the filesystem while it is being worked on.

share|improve this answer
    
fortunately, there is only data and no file system on it.. –  dadudada Jun 3 '11 at 20:23
    
That does make it easier. ;) –  Justin Pearce Jun 3 '11 at 20:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.