Oh Cool! I happen to be unlucky enough to have such a setup. Just for fun I copied my /usr/local (bad idea, too big) to my fat32 partition as provided by the instructions far below. I took a quick look around the file structure and then immediately unmounted it, and gave it an fsck.
=-=-=-=-=-=-=-=-=-=-=-=- # mount /dev/wd1a on / type ffs (local, softdep) /dev/wd0j on /mnt/wd0j type msdos (local) # df -h Filesystem Size Used Avail Capacity Mounted on /dev/wd1a 12.8G 1.7G 10.5G 14% / /dev/wd0j 19.5G 4.7G 14.8G 24% /mnt/wd0j # disklabel wd0 disklabel: warning, DOS partition table with no valid OpenBSD partition # /dev/rwd0c: type: ESDI disk: ESDI/IDE disk label: ST380011A flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 16383 total sectors: 156301488 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 16 partitions: 16 partitions: # size offset fstype [fsize bsize cpg] c: 156301488 0 unused 0 0 # Cyl 0 -155060 i: 81915372 63 unknown # Cyl 0*- 81265* j: 40965687 81915498 MSDOS # Cyl 81265*-121905* # mkdir /mnt/wd0j/hosed # cp -R /usr/local/* /mnt/wd0j/hosed cp: symlink: isoinfo.1: Operation not supported <!- blah blah symlink blah blah blah -!> cp: symlink: bzmore: Operation not supported # diff /usr/local/ /mnt/wd0j/hosed Common subdirectories: /usr/local/bin and /mnt/wd0j/hosed/bin Common subdirectories: /usr/local/include and /mnt/wd0j/hosed/include Common subdirectories: /usr/local/info and /mnt/wd0j/hosed/info Common subdirectories: /usr/local/lib and /mnt/wd0j/hosed/lib Common subdirectories: /usr/local/libdata and /mnt/wd0j/hosed/libdata Common subdirectories: /usr/local/libexec and /mnt/wd0j/hosed/libexec Common subdirectories: /usr/local/man and /mnt/wd0j/hosed/man Common subdirectories: /usr/local/mozilla-firefox and /mnt/wd0j/hosed/mozilla-firefox Common subdirectories: /usr/local/sbin and /mnt/wd0j/hosed/sbin Common subdirectories: /usr/local/share and /mnt/wd0j/hosed/share # mkdir /mnt/wd0j/now_hosed # mv /mnt/wd0j/hosed /mnt/wd0j/now_hosed # diff /usr/local /mnt/wd0j/now_hosed Only in /usr/local: bin Only in /mnt/wd0j/now_hosed: hosed Only in /usr/local: include Only in /usr/local: info Only in /usr/local: lib ... <!- etc -!> # cd now_hosed # ls hosed # cd hosed # pwd /mnt/wd0j/now_hosed/hosed/hosed/hosed # cd / # umount /mnt/wd0j # fsck -t msdos /mnt/wd0j ** /dev/rwd0j ** Phase 1 - Read and Compare FATs ** Phase 2 - Check Cluster Chains ** Phase 3 - Check Directories `.' entry in /now_hosed/hosed has incorrect start cluster Correct? [yn] y ** Phase 4 - Check for Lost Files 7764 files, 2589184 free (948256 clusters) ***** FILE SYSTEM WAS MODIFIED ***** =-=-=-=-=-=-=-=-=-=-=-=- Then like the idiot I am, I "rm -f'"d the directory tree instead of looking around to see how much was recovered. Well, I figure that is enough info for now if anyone wants me to do more testing just email me back. I would like to point out though the rest of my directories on the fat32 partition look to be unaffected... Cheers! On 29/09/05, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote: > I don't want to heat up this discussion even further, BUT > > mount a FAT32 partition somewhere and > "cp /some_folder /mnt/fat" > > There should be files (the more the better) in the directory (they should NOT > be > empty). > > Now use "cmp" or "diff" to compare the directories. Everything still correct ? > Good because it should be! > > BUT NOW move that directory INSIDE the FAT32 Partition, something a long the > lines of > "mkdir -p /mnt/fat/foo/bar/foobar/" > "mv /mnt/fat/some_folder/ /mnt/fat/foo/bar/foobar/" > > NOW use diff again. Should be hosed up like hell. > > At least that is what I get/got 1 week ago on i386 AND amd64. > With a 1 week old snapshot. > > Had the same issue with 3.7 stable. > > Don't have a FAT parition anymore since! > > Was this information helpful ? try to reproduce it. > > Greetz, > ahb > > -- I know too much and yet not enough