vfat module problem?
Dear all,
I posted to debian-french and debian-laptop, without
finding a solution for the following problem. Neither a google search helps.
I had two vfat crashes, rather similar:
Two machines (laptops) with debian, dual boot windows xp:
- machine1: sarge, kernel: 2.6.8-1-686, ide disk 30GB
- machine2 (new!): etch, kernel: 2.6.12-1-386, sata disk 80GB
(by the way, why 386?? it is a pentium M).
In machine1 vfat, 40% of directories where lost (however recoverable under
windows using a commercial crash recovery soft). In machine2, 100% was lost
in a first crash, but it is random, since the problem is repeating from time
to time, and not always everything is lost. Sometimes we lost what was used
the day before, and sometimes everithing except the files we used. Lost
directories are not located always at the same level.
I do not find any logical explanation. No strange message in syslog, we used
"normal" programs (konqueror, thunderbird, oowriter) when sudenly when try to
save a file or read mail, an error appears just saying that the directories
did not exist any more.
In both cases, fat32 was formated under windows.
I had smartd running on machine1, nothing strange (maybe a high temperature of
the disk +-53°C). On machine2, smartd is not installable since it does not
work with sata.
Here below the fstab files, plus a smart test on machine1. It was difficult to
install sata support in machine2, the strange procedure I used is also
described below.
Thanks for any help!
Jota.
-------------------------------------------------------------
machine1:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type>
<options>
<dump> <pass>
proc /proc proc
defaults 0
0
#cd-rom
/dev/hdc /media/cdrom0
iso9660 ro,user,noauto 0
0
#hard disk
/dev/hda3 / ext3
defaults,errors=remount-ro 0 1
/dev/hda2 none swap
sw 0
0
/dev/hda6 /mnt/hda6 ext3
defaults 0
2
/dev/hda1 /mnt/hda1 ntfs
gid=1002,user,ro,umask=002,noexec,nosuid
0 0
/dev/hda5 /mnt/hda5 vfat
gid=1002,user,rw,umask=002,noexec,nosuid
***
#smartctl -A /dev/hda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST
THRESH TYPE UPDATED
WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000d 100 100 050
Pre-fail Offline
- 51
2 Throughput_Performance 0x0005 100 100 050
Pre-fail Offline
- 3950
3 Spin_Up_Time 0x0007 100 100 050
Pre-fail Always
- 0
4 Start_Stop_Count 0x0032 099 099 000
Old_age Always
- 1912
5 Reallocated_Sector_Ct 0x0033 100 100 010
Pre-fail Always
- 0
7 Seek_Error_Rate 0x000f 100 100 050
Pre-fail Always
- 932
8 Seek_Time_Performance 0x0005 100 100 050
Pre-fail Offline
- 1224
9 Power_On_Minutes 0x0032 092 092 000
Old_age Always
- 4066h+47m
10 Spin_Retry_Count 0x0013 100 100 050
Pre-fail Always
- 0
12 Power_Cycle_Count 0x0032 099 099 000
Old_age Always
- 1876
191 G-Sense_Error_Rate 0x000a 100 100 000
Old_age Always
- 7
192 Power-Off_Retract_Count 0x0032 100 100 000
Old_age Always
- 285
193 Load_Cycle_Count 0x0032 077 077 000
Old_age Always
- 143904/143618
194 Temperature_Celsius 0x0022 076 052 000
Old_age Always
- 52 (Lifetime Min/Max 64/8)
195 Hardware_ECC_Recovered 0x001a 100 100 000
Old_age Always
- 2
196 Reallocated_Event_Count 0x0032 100 100 000
Old_age Always
- 0
197 Current_Pending_Sector 0x0032 100 100 000
Old_age Always
- 0
198 Offline_Uncorrectable 0x0010 100 100 000
Old_age Offline
- 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000
Old_age Always
- 9
200 Multi_Zone_Error_Rate 0x0012 100 100 000
Old_age Always
- 0
201 Soft_Read_Error_Rate 0x0012 100 100 000
Old_age Always
- 0
223 Load_Retry_Count 0x0012 100 100 000
Old_age Always
- 0
230 Head_Amplitude 0x0032 094 094 000
Old_age Always
- 198978
250 Read_Error_Retry_Rate 0x000a 100 100 000
Old_age Always
- 330
----------------------------------------------------------
machine2:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options>
<dump> <pass>
proc /proc proc defaults
0 0
/dev/sda5 / ext3
defaults,errors=remount-ro 0 1
/dev/sda8 /E vfat
uid=1000,gid=1001,user,rw,umask=022,noexec,nosuid,codepage=850,iocharset=is
o8859-15 0 2
/dev/sda6 /home ext3 defaults
0 2
/dev/sda3 none swap sw
0 0
/dev/hdc /media/cdrom0 udf,iso9660
ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto
0 0
/dev/sda7 /data ext3 defaults
0 2
-------------------------------------
SATA installation:
I installed the sata
support with some difficulties in machine2. The problem was to have sata
enabled at the same time
than have a functional dvd reader in etch. Finally I found a solution:
- boot in expert mode for installation
- disable the ata_piix module, this will allow you to have your cd driver
recognized
- after some menus, debian installer will ask you again if ata_piix module
must be enabled. Say yes this time. Your sata disk is now working.
- finish the installation and reboot
- now your cd drive is not working
- change your /etc/mkinitrd/modules files (put there the ide* modules
necessary for your cd drive)
- run mkinitrd command to rebuild your initrd
- remove the ide* modules from /etc/modules
- reboot, now both cd and disk are ok.
--------------------------------------------
Reply to: