Author Topic: C860: fsck... how do I perform a surface scan (2.2 GB CF)?  (Read 4367 times)

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
C860: fsck... how do I perform a surface scan (2.2 GB CF)?
« 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...
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
C860: fsck... how do I perform a surface scan (2.2 GB CF)?
« Reply #1 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
C860: fsck... how do I perform a surface scan (2.2 GB CF)?
« Reply #2 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?
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
C860: fsck... how do I perform a surface scan (2.2 GB CF)?
« Reply #3 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

TonyOlsen

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
    • http://www.userdimensions.com/Tony/Resume.html
C860: fsck... how do I perform a surface scan (2.2 GB CF)?
« Reply #4 on: April 21, 2004, 12:56:50 pm »
fsck.vfat /dev/hda1 -t   worked fine.  Thanks!
Tony Olsen
Ferris@Myself.Com
Resume
Zaurus SL-C860 QTopia
2 GB Static CF
1 GB MMC (although it isn't working yet)
My Quest: To get an x86 emulator working on my Zaurus and to have my Zaurus replace my laptop as my MAIN computer
Publically available Videos for the default Zaurus SL-C860 video player

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
C860: fsck... how do I perform a surface scan (2.2 GB CF)?
« Reply #5 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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card