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
-
I open Terminal. Then I type:
su -
... to get to the root. Then I type:
fsck /dev/hda1
...I get:
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...
-
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
-
Thanks!
So... how do I perform a surface scan on a FAT CF card in my Zaurus Linux?
-
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
-
fsck.vfat /dev/hda1 -t worked fine. Thanks!
-
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