OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => Cxx0 General discussions => Topic started by: TonyOlsen on April 19, 2004, 07:20:07 pm

Title: C860: fsck... how do I perform a surface scan (2.2 GB CF)?
Post by: TonyOlsen on April 19, 2004, 07:20:07 pm
I open Terminal.  Then I type:

Code: [Select]
su -

... to get to the root.  Then I type:

Code: [Select]
fsck /dev/hda1

...I get:

Code: [Select]
Parallelizing fsck version 1.19 (13-Jul-2000)

fsck: fsck.auto: not found

fdsk: Error 2 while executing fsck.auto for /dev/hda1


I don\'t understand what this means.  I looked up \"fsck\" man pages on the internet and Error 2 means the unit should be rebooted... which I\'ve done many times.

(Sometimes I yearn for the simple days with Windows scandisk... please help me convert to Linux...)

What is \"fsck,auto\"... is it an auto configuration file of some sort?

Thanks in advance...
Title: C860: fsck... how do I perform a surface scan (2.2 GB CF)?
Post by: Stubear on April 19, 2004, 08:28:23 pm
Because the /etc/fstab has /dev/hda1 mounted as fs type auto - ie it will try and guess what filesystem it is - fsck looks for the matching program fsck.auto. Note fsck is just a shell that chooses which fsck.<fstype> to use.

If you know the fs used on the CF then you can call it directly

for ext2 fs - fsck.ext2 /dev/hda1
for fat fs - fsck.vfat /dev/hda1 or fsck.msdos /dev/hda1

Note fsck does mot perform a surface scan it just checks that the filesystem is in correct state - ie fat tables match, ext2 fs has been correctly unmounted etc.

Stu
Title: C860: fsck... how do I perform a surface scan (2.2 GB CF)?
Post by: TonyOlsen on April 21, 2004, 12:22:06 pm
Thanks!  

So... how do I perform a surface scan on a FAT CF card in my Zaurus Linux?
Title: C860: fsck... how do I perform a surface scan (2.2 GB CF)?
Post by: Stubear on April 21, 2004, 12:36:28 pm
Sorry can\'t help you there, the fsck.vfat man page has a -t flag for marking unreadable clusters as bad, but I have never used it on a vfat fs (and never would - I usually just reformat the drive on a windoze system.

Stu
Title: C860: fsck... how do I perform a surface scan (2.2 GB CF)?
Post by: TonyOlsen on April 21, 2004, 12:56:50 pm
fsck.vfat /dev/hda1 -t   worked fine.  Thanks!
Title: C860: fsck... how do I perform a surface scan (2.2 GB CF)?
Post by: Stubear on April 21, 2004, 08:43:09 pm
Quote
fsck.vfat /dev/hda1 -t   worked fine.  Thanks!

You\'re very brave!

I\'ve been using linux for ten years and have never been game to actually try that.

Glad to know it works though

Stu