Author Topic: Fsck.vfat Fails On Hard Drive  (Read 3365 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Fsck.vfat Fails On Hard Drive
« on: April 23, 2007, 07:00:53 am »
Hi guys,

on my SL-C3200 with a 3GB third partition (FAT 32), fsck.vfat fails:

Code: [Select]
root@˜>fsck.vfat /dev/hda3
disfsck 2.11, 12 Mar 2005, FAT32, LFN
Seek to -1279934976:Invalid argument


Does anyone know this symptom?
I have observed it on three different SL-C3200 with slightly different partitioning (hda3 sizes 3GB and 4GB)
fsck.vfat works fine on flash cards.

Thanks
daniel
« Last Edit: April 23, 2007, 07:02:00 am by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Fsck.vfat Fails On Hard Drive
« Reply #1 on: April 23, 2007, 07:30:43 am »
Quote
Hi guys,

on my SL-C3200 with a 3GB third partition (FAT 32), fsck.vfat fails:

Code: [Select]
root@˜>fsck.vfat /dev/hda3
disfsck 2.11, 12 Mar 2005, FAT32, LFN
Seek to -1279934976:Invalid argument


Does anyone know this symptom?
I have observed it on three different SL-C3200 with slightly different partitioning (hda3 sizes 3GB and 4GB)
fsck.vfat works fine on flash cards.

Thanks
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159549\"][{POST_SNAPBACK}][/a][/div]

i suspect this is an issue with fat only supporting a max of 2GB and fsck.vfat only supporting that.
i cant fsck my 4GB SD while I can fsck my 1GB SD both formatted with FAT
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Fsck.vfat Fails On Hard Drive
« Reply #2 on: April 23, 2007, 09:13:24 am »
Quote
i suspect this is an issue with fat only supporting a max of 2GB and fsck.vfat only supporting that.
i cant fsck my 4GB SD while I can fsck my 1GB SD both formatted with FAT
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159550\"][{POST_SNAPBACK}][/a][/div]

thanks...
do you have any experiences if it is safe to check the FAT partition of the hard drive via USB (USB storage client) from a Windows PC?

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Fsck.vfat Fails On Hard Drive
« Reply #3 on: April 23, 2007, 10:35:53 am »
I have used fsck.vfat /dev/hda3 on my C3100 running Cacko several times.
My partition is 3.8GB (Default Sharp/Cacko partition)
My only complaint about this is, It only works in emergency mode, using the D+B option.
I think I get a similar error as daneil3000 if NOT using emergency console.
A year and several months ago I when I first got my C3100, I was having a problem with a file that "seemed" like it wasn't completely deleted.
Someone that knew what they were talking about, told me to use this after starting emergency mode with the D+B option.
Quote
To do a file system check on /hdd3 use below command:
If you boot with the B+D option, login as root and use
fsck.vfat -a -f -t -v -V /dev/hda3
This has worked for me every time.
It does take about an hour or more to finish.
It does warn that FAT32 support is ALPHA

BTW, checking a drive or defragging a drive over USB in Windows is very slow. I don't recommend this.
« Last Edit: April 23, 2007, 10:45:36 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Fsck.vfat Fails On Hard Drive
« Reply #4 on: April 23, 2007, 03:57:50 pm »
is it possible to cross-build a newer fat32 kernel module  and a new fsck.vfat command and use that instead?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.