|
i found the message below and emailed this guy (Adam)
he mailed me how he fixed this on his debian box.
i upgraded to the 2.6.3-2.1.253.2.1 kernel and this seemed to fix it.
i am also getting the "failed to preserve ownership" message again
so this seems reassuring for now...
this was getting really bad. below are the conditions in which i experienced this:
any use of mv as root to the vfat filesystem
any use of cp as root to the vfat filesystem
any use of gnome to drag and drop files as root to the vfat filesystem
any use of konqueror as root to the vfat filesystem (i was using the "make gallery" option on pictures)
Included message
------------------------------------------
hi,
wow, I thought I was the only one
yes, I think, kindof - since posting this I've made a
few changes to my system and I recently I tried moving
files and had no problem. Not sure what fixed it but
heres whats different:
* updgraded to 2.6.2 kernel - I suspect its a bug in
2.4 fat32 filesystem
* changed fstab to mount my drive so my normal user
has access ie:
/dev/hdg1 /mnt/c vfat
rw,user,noauto,umask=022,uid=i 0 0
* Other things - I update my system very regularly so
although unlikely it could have perhaps been insmod,
mv, etc.
I still think the mv command should check the dest
file size when the move has finished before deleting
the original file - like for moving between file
systems
Let me know if you fix it on yours, i'd be interested
to know what the cause is.
Thanks,
Adam
--- Michael Jenkins wrote: >
Hi,
>
> I was just wondering if you ever found a way to fix
> this... The same thing happened to me using a 160
> GB Maxtor with Fedora Core 1
> and 2.4.22-1.2174.nptl kernel. I know it is
> normal for you to get this message "failed to
> preserve ownership" for doing operations to a vfat
> (fat32) drive because that filesystem does not
> support ownerships.
> I thought I had done something to ruin the drive
> because vfat does not support symlinks either and i
> tried to ln -s to some files while in that drive.
> Anyway, I just wanted to see if maybe it is because
> of a bad kernel or something....
> I lost about 140 GB of mp3's this way so don't feel
> too bad !!!
> Mike Jenkins
>
>
> Hello,
>
> I just moved a heap of direcories to a 140GB fat32
> partition and now most
> the newly created files are 0 bytes. The old files
> are no longer there.
>
> I got this message from mv:
> mv: *failed to preserve ownership* for
> `/mnt/d/test-dir/123/xine_snapshot-1.png': Operation
> not permitted
>
> I also had this happen when I tried to move files
> using konqueror. The
> directories that had subdirectories have had the subdirectories
> emptied. I'm very frustrated with this and would like to know
> why this is happening
> and what I can do to prevent it (I'd like to keep
> that partition as
> fat32). The strange thing to me is that some files
> copied ok. I'm running
> debian testing with kernel 2.4.22. I was getting
> this same problem on
> debian stable and on an older kernel (this is one
> reason I upgraded).
>
> I was originally thinking it may have caused by my
> HPT370 IDE controller,
> or the fat32 filesystem not properlly supporting my
> 200GB HD, which could
> perhaps still be the case???
>
> This has been happening since I've had debian on
> this computer so I have
> been using cp -r;rm -r to move directories. Today I
> was lazy and used mv.
> Should I always do the two commands or am I suppsed
> to be able to use mv?
>
> Is there any way I can recover moved files from an
> ext2 partition? Its
> probably been overwritten my mozillas cache, but for
> next time...
>
> Any thoughts or suggestions would be apreciated,
>
> Thanks,
> Adam
|