PDA

View Full Version : [ubuntu] All the files from my home folder disappeared



rafaelpagliuca
November 8th, 2009, 04:19 PM
I installed Ubuntu 9.10 3 days ago, and had already set it up for work.
I imported my Thunderbird profile from Windows and installed Eclipse with PDT + Subclipse and SVN.

This morning, while I was browsing my home folder with Nautilus suddenly the default folders (Images, Videos, Desktop etc) started to disappear, one by one, as well as my eclipse projects folder and others, until the whole ~ folder got empty.

I thought it a Nautilus bug. I pressed F5 to refresh the folder, but none of them showed up again.

I went to terminal and ls ~ returned an empty folder, as well. This meant that even invisible/profiles folder got deleted, including the trash folder.

So everything got deleted, including the trash folder itself, and I could not get to restore anything.

I'm not worried about the files, because basically I was just importing stuff from another box.

I just lost confidence on Ubuntu file system. What if this happens again just after I finish some project? I know backup is important, but it's very time-spending to backup everything all the time.

Has anyone got any problem similar to that one? Any suggestions to avoid this happening again?

Sorry about my bad English, it's not my mother language.

Please share your thoughts.

Best regards, Rafael.

kronomia
November 16th, 2009, 12:44 PM
Hello, I faced the same problem... It is really depressing when you lose your project files. My projects folder simply got disappeared as if it was permanently deleted. This is the first time i encouter such an event in an Ubuntu System. Please anyone have any idea what happened? Is this a bug or something. I am quite sure that i didn't do anything abnormal on that day. I am not new to Ubuntu. I was used to work with Fedora and Unix-based systems before. I hope the Debian-based Ubuntu is not the cause of the problem.

I am using the following:
*Ubuntu 9.04- the Jaunty Jackalope - 32bit edition
*GNOME Version: 2.26.1
*The folder that disappeared is located in sub-folder in my home directory: home/user/myFiles/myFolder

I will be waiting for your help,

Thanks a lot and regards,

sgosnell
November 16th, 2009, 01:06 PM
I have no idea. I've never heard of this happening. Can you give more detailed information on exactly what you did and what happened?

blazemore
November 16th, 2009, 01:56 PM
The two people who have lost files:
What filesystem are you using?

rafaelpagliuca
November 16th, 2009, 02:39 PM
I'm using ext4.

As a work-around I'm avoiding storing important stuff on the home folder. But I haven't got any more problems since the first one.

Thanks for the people which are trying to help us.

P4man
November 16th, 2009, 02:47 PM
I never heard this and it seems .. well hard to believe really.
Have you guys checked your filesystem for errors? Are you sure the /home partition is not full? Have you looked in .trash folders and elsewhere?

kgas
November 16th, 2009, 03:23 PM
If your home folder is mounted on a separate partition, your can try to recover it using testdisk.(boot with ubuntu cd and install testdisk)

blazemore
November 16th, 2009, 03:25 PM
Ahh, that's a good point. If your home directory is mounted elsewhere, make sure there's no problems with the disk.
Do
sudo mount -av

kronomia
November 16th, 2009, 10:05 PM
First of all, I really want to thank all the people who are trying to help us. I really appreciate your work. Thanks very much!

Here are more details:
*I am the only user and admin on the computer.
*This is only one operating system that is running: Ubuntu 9.04
*There is no partitions at all... I have only one partition which the operating system resides on.
*The type of the partition is: ext3. I used to feel comfortable with ext3.

What i think:
Reason #1: I used to to do "suspend" a lot during the day while programs are running which may cause loss of data.
Reason #2: My Hard drive has experiences some bad sectors in the past but i managed to isolate them successfully. Still though, it might have something to do with that.

What i tried to do before posting:

Try #1: I tried to recover deleted files assuming that my files got deleted somehow.
I used the following commands:

foremost -v -q -t cpp -i /dev/sda1 -T
and
foremost -v -t cpp -i /dev/sda1 -T

But really no use... It was taking more than 6 hours without any progress. As you can see i lost (.cpp) files as I am a C++ programmer. ;)

Try #2: Then i decided to check if that is the only file that got deleted. It seems that indeed it was the only one. So i proceeded to the next step which it was making sure if the files are exist or not. So i carried an intensive search for specific files. No results found.

Try #3: I applied all the direction of the user: "blazemore" who was trying really hard to help me. I really want to give him special thanks for posting and trying to support us. Thanks Blazemore.

Right Now:
Right now, everything is fine, no new files are disappearing any more. I am able also to compile and link without any problems. Mainly i use this PC for programming. There is no games, or unnecessary applications or anything like that. So i think the firewall and my C++ compiler are the only things i care about.

If an idea came to your mind about what had happened or how to avoid it for next time, it will be great if you can post it here.

Thanks again for everything guys and regards,

blazemore
November 17th, 2009, 12:46 AM
If you ever get files disappearing again, it's definitely new hard disk time!

Also, if I were you I'd stick important files like cpps in your Ubuntu One. They tend to be small, but very time consuming to replace.

ps, I was so touched by your message of thanks that I included it in my sig.

Sin@Sin-Sacrifice
November 17th, 2009, 01:02 AM
There's always the other thing that could have happened. I know of people who are capable and malicious enough to do things like this and I hate them for it. Around here we call then crackers. Unfriendly hackers... these are the same people that make virus' and worms and what have you. I personally know a guy that "cracked" a home PC of some unsuspecting no name user and deleted his entire system32 folder just for fun. I, of course, kicked his teeth in and we haven't spoken since. He thought it was funny... until he was bleeding. He's a Windows user and only knows Windows but who knows? Not to say this is what happened to yous guys but it's always something to consider. Check out http://www.ubuntu.com/usn/ often and make sure you have all security updates.

blazemore
November 17th, 2009, 01:18 PM
It probably isn't. These people nowadays don't WANT their malicious software to be detected.
Their idea of the perfect virus runs undetected in the background, earning them money by popping up adverts, or stealing credit card details which they can sell or use.

The days of "LOL I HAXX0RED YOUR SYSTEM I PWNS U LOOLLLOLLL"
are (sadly?) long gone.

blueridgedog
November 17th, 2009, 02:26 PM
These two cases look like common cases of disk failure. I would use palimpsest (installed in 9.10 now) to view the bad sectors and also run fsck on the partitions involved while booted from a LiveCD (unless the partitions can be unmounted during normal use).

Braytonio
January 23rd, 2010, 07:18 AM
The fellow who reported the problem, which I am also suddenly seeing, mentioned that he suspends a lot.

Interesting. I had just done a lot of installing and uninstalling of packages and then suspended my computer for the night. When I went to wake it up, gdm crashed and the computer rebooted.

After reboot, I have a desktop with mounted volume icons and the Downloads folder. Folders I had added to the Desktop are gone. My home directory structure is now


/home/macunaima/Downloads

That is all there is in it, aside from hidden folders such as .nautilus and other app configuration folders.

I have recently fscked, and palimpsest shows no bad sectors. I also use the ext4 file system that became the default with Karmic, I think.

The odd thing is that my recently added Tomboy notes are still accessible. These are supposed to be stored in


~/.local/share/tomboy/

That folder no longer exists in my home directory, according to what nautilus and the command line terminal are telling me.

I have also lost most of my confidence in Ubuntu. Karmic has caused me so many problems and taken up so much of my time with troubleshooting that I really think I may end my longtime commitment to Ubuntu in search of a simpler, more straightforward distro.

Braytonio
January 23rd, 2010, 07:25 AM
~/.local/share/tomboy/

That folder no longer exists in my home directory, according to what nautilus and the command line terminal are telling me.


I take that back. Here it is. And you know what? The entire contents of my home folder have been copied into it! Did I do that? I certainly don't remember doing it, although I did copy my old Tomboy notes into the folder. I am pretty sure I did not have a brain fart while doing that.

So I go to copy all that back to where it belongs -- /home/macunaima -- and I see that gdm is now treating my home folder as the Desktop. Whoa. How to set Desktop as the folder displayed on the Desktop?

ankspo71
January 23rd, 2010, 08:34 AM
I had a mysterious deletion of the contents of my home folder once too. At the time it happened, I was trying to compile a source package that appeared to be for debian only. The reason why I say that is because it was a package available in debian repos, but not in ubuntu's (including some of it's dependencies). What I did was reinstalled ubuntu after reformatting the drive, just in case I inadvertently created a malicious program. This might have been close to a year ago, haven't had a problem since, and my hard drive is still going strong.

So I think the problem might be a possible software issue (a bug), as much as it could be a possible hardware issue (hard drive). I would be suspecting the last program used, maybe get your home folder back and see if running that program makes it happen again. Also, I have read that Ext4 did have a few complaints with data loss when it first came out too. I just Googled Ext4 data loss and it returned 20,200 results. Ext4 been good to me though... unless it had something to do with the above problem.

blueridgedog
January 23rd, 2010, 02:19 PM
How to set Desktop as the folder displayed on the Desktop?

1) open gconf-editor
2) browse to /apps/nautilus/preferences entry in it
3) verify that set desktop_is_home_dir flag is not set

As to the other issues, it may have been human error, or it may have been a combination of installs. You should have a backup of your home directory, preferably two.

If you find another distribution of Linux that meets your needs better, post here with the results. I have found Ubuntu to be a great distro. If you want less issues, try to use the current LTS issue.