[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#354654: general: fat32 gets corrupted



Package: general
Severity: critical

Dear all,

I had two vfat crashes, rather similar in two machines (laptops) with debian, 
dual boot windows xp:

- machine1 (compaq nx9010 with celeron): ide disk 30GB (-- System Information: 
Debian Release: 3.1, Architecture: i386 (i686), Kernel: Linux 2.6.8-1-686, 
Locale: LANG=fr_BE@euro, LC_CTYPE=fr_BE@euro (charmap=ISO-8859-15), libc6 
Version: 2.3.2.ds1-22)

- machine2 (ibm thinkpad r52 with pentium M): etch, kernel: 2.6.12-1-386, sata 
disk 80GB, (no physical access at the moment to this machine so no way for 
more system information).

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. Find also a lspci for machine1 and 2.
-------------------------------------------------------------

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 in machine2:

I installed etch with 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.

-------------------------------------
machine1:
lspci 

0000:00:00.0 Host bridge: ATI Technologies Inc: Unknown device cbb2 (rev 02)
0000:00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M]
0000:00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link 
Controller Audio Device (rev 02)
0000:00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
0000:00:08.0 Modem: ALi Corporation M5457 AC'97 Modem Controller
0000:00:0a.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller
0000:00:0b.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 50)
0000:00:0b.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 50)
0000:00:0b.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51)
0000:00:0c.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 
Controller (PHY/Link)
0000:00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
0000:00:11.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
0000:00:12.0 Ethernet controller: National Semiconductor Corporation DP83815 
(MacPhyter) Ethernet Controller
0000:01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 340M

-------------------------------------
machine2:
lspci

lspci
 0000:00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML 
Express Processor to DRAM Controller (rev 03)
 0000:00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI 
Express Root Port (rev 03)
 0000:00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) PCI Express Port 1 (rev 03)
 0000:00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) PCI Express Port 3 (rev 03)
 0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) USB UHCI #1 (rev 03)
 0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) USB UHCI #2 (rev 03)
 0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) USB UHCI #3 (rev 03)
 0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) USB UHCI #4 (rev 03)
 0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 
Family) USB2 EHCI Controller (rev 03)
 0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
 0000:00:1e.2 Multimedia audio controller: Intel Corporation 
82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
 0000:00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
AC'97 Modem Controller (rev 03)
 0000:00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface 
Bridge (rev 03)
 0000:00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA 
Controller (rev 03)
 0000:00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) 
SMBus Controller (rev 03)
 0000:01:00.0 VGA compatible controller: ATI Technologies Inc M22 [Radeon 
Mobility M300]
 0000:02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751M 
Gigabit Ethernet PCI Express (rev 11)
 0000:04:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
 0000:04:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller 
(rev 08)
 0000:04:02.0 Network controller: Intel Corporation PRO/Wireless 2915ABG 
MiniPCI Adapter (rev 05)



Reply to: