Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.