LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-16-2004, 11:05 AM   #1
VisitorQ
LQ Newbie
 
Registered: Jul 2004
Location: Oslo, Norway
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
My harddisk keeps erasing my files!


I have a 250GB hard disk mounted to my system, it's FAT32 since I often lend it to people who run windows. I can read/write to it just fine, but whenever i write/change anything in a directory other than the top level of the disk it gets deleted automatically after a while.

I renamed a couple of folders, everything seemed fine, all the files in the folders were OK. But when I should use the files later they had been deleted (this was about 5 - 15 minutes later). This wasn't the first time this had happened, I then found out that if the files I created/changed were in the top level of the disk (my disk is mounted at /filmer) /filmer the files wouldn't be deleted, but if they were in some other directory on the disk, for example /filmer/music, they would disappear with no apparent reason. This has become pretty irritating and has resulted in a loss of plenty of files.

Does anybody know why this keeps happening, and how this can be fixed? Would it help to format the disk to ext2 format (though this wouldn't be the optimal solution since I then wouldn't be able to move the disk over to a win. system without a lot of work).
 
Old 12-16-2004, 02:30 PM   #2
jlangelier
Member
 
Registered: Jun 2003
Location: Denver, CO
Distribution: Debian
Posts: 95

Rep: Reputation: 15
Sounds like the 'phantom file' problem I had a while ago. I would copy over files to a new partition, they 'seemed' to be there. I could 'ls' them, manipulate them, etc but when I did a 'df' to see disk space, it only changed on my old partition.

The problem was the partition mount was failing. But I was still able to use the mount point. I didn't know that was possible until I saw it myself.

I think what was going on was that the system was told it had a mount point in iptables or somewhere, but the mount failed (for some dopey mount config reason) and the mount was actually bad. When I was copying data over, the system was actually cacheing it, just waiting for the time when the partition would come back and it could flush the cache.

But the mount point never materialized for the cache, and it could never flush itself. The files I thought I had copied were only 'phantoms'

You could check to see if that is happening by copying over alot of data. If, when you do 'df', it never changes on your windows partition, you have the same problem I did.
 
Old 12-16-2004, 04:41 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try running sync before you reboot or power down your computer. Also try specify sync option for FAT partitions instead of using the default async.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arghhhh! All my backup files are gone from USB harddisk luke sleeman Linux - Hardware 13 10-30-2005 06:16 AM
Is it possible to search for a string from all the files on the harddisk? Akhran Linux - Newbie 8 09-13-2005 06:09 AM
copying files in RH9 from 1 harddisk to another in same system(internal) rajivb Linux - Newbie 8 03-09-2005 10:24 AM
Move files on a linux partion to a NTFS partioned harddisk Ostemanden Linux - Newbie 2 02-25-2004 05:58 PM
Erasing temp internet files sutho1 Linux - Newbie 3 10-17-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration