[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Some files are corrupted when copying a lot of files


When copying large number of files, some source files differ from target ones, size is the same, but cmp shows that files are different. The files are really damaged,


- Hardware: Celeron 400, 396 MB RAM, 512 MB swap two ATA disks, Fedora Core 4, kernel 2.6.16-1.

- Test example: 148 MB in 138 JPG files
Some files copies will be corrupted. I can re-copy them one by one without problems. I can copy a group of some 20-30 files without problems.

- problem appears even when copying within the same disk and the same partition

- problem appears with different file managers and shell

- problem appears for both vfat and ext3 partitions

- when booted the same computer with Windows XP, I can copy files on vfat patrtitions without any problems.

- no errors in /var/log/messages

- mounts look like

/dev/hda1 on / type ext3 (rw)
/dev/hdc2 on /mntpoint type vfat (rw,noexec,nosuid,nodev,uid=500,gid=500)

Many thanks in advance for your help!!!

dmesg |grep hd
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:pio, hdd:pio
hda: SAMSUNG SP4002H, ATA DISK drive
hdb: CD-540E, ATAPI CD/DVD-ROM drive
hdc: Maxtor 6E040L0, ATA DISK drive
hda: max request size: 128KiB
hda: 78242976 sectors (40060 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33)
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4 < hda5 >
hdc: max request size: 128KiB
hdc: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33)
hdc: cache flushes supported
 hdc: hdc1 hdc2 hdc3
hdb: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)
hdd: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
SELinux: initialized (dev hda1, type ext3), uses xattr
EXT3 FS on hda1, internal journal
SELinux: initialized (dev hda3, type vfat), uses genfs_contexts
SELinux: initialized (dev hdc2, type vfat), uses genfs_contexts
SELinux: initialized (dev hdc3, type vfat), uses genfs_contexts
SELinux: initialized (dev hda5, type vfat), uses genfs_contexts
Adding 522104k swap on /dev/hda2.  Priority:-1 extents:1 across:522104k
SELinux: initialized (dev hdd, type udf), uses genfs_contexts
  • 3
  • 3
  • 2
1 Solution
Assuming that you copy TO FAT partition, try adding "sync" and "dirsync" to mount options for /dev/hdc2.
does the problem appear both when you copy from hda to hda  and when you copy from hdc to hdc?

did you try booting with ide=nodma kernel option and see if the problem persists?
Actually, the more I think about it the more it looks like hardware problem - I'd check memory, CMOS IDE/UDMA settings, IDE controller and IDE wires going to disks, in that order. Also, check the current settings using hdparm and see if setting the drives to lower udma level takes care of it.
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

I agree with the hardware problem diagnosis.  You could start testing with memtest86.
dub082097Author Commented:
Thanks a lot for you feedback, it may take some days to check everything since this is my home PC, I'll come back.
dub082097Author Commented:
I run memtest86 and found several errors within one DIMM. Probably, I should remove it and then check again.

I also found that some options in BIOS are disabled, I'll try enabling them, especially the first one...

Memory Parity ECC Check
IDE prefetch Mode
IDE HDD Block Mode
UDMA for all IDE devices
You would only want to enable the 1st one if you do in fact have memory with parity.  (Unless it's a server setup, it's unlikely.)
dub082097Author Commented:

 Many thanks to slow1000 for memtest86. I found that one DIMM makes some errors and replaced it. However, the problem did not disappear until resetting BIOS to default values. Thanks to m1tk4 for the solution.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now