Empty Trash deleted all file in home directory

Bug #998033 reported by Rob Peters
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Invalid
Critical
Fabounet

Bug Description

Ubuntu 12.04, Gnome3 shell. Dock version 3.0.0

Doing maintenance on several usb Fat formatted thumb drives. Last drive inserted, and some files were deleted on drive.
The Cairo dock trash can showed the file and the number. Middle clicked on the dock trash and accepted the delete. System took about 60 seconds before the trash was empty. However, upon examination all the files in the /home/user directory has been deleted. Every file and directory, other than the default Ubuntu directories were removed.

Revision history for this message
Brian (mycompostpile) wrote :

I installed Ubuntu 12.04 in virtual-box and tested this but could not reproduce the issue.

Revision history for this message
Rob Peters (makitso) wrote :

Brian, I have spent hours trying to understand what went wrong. I really have no idea if its a Cairo problem or an Ubuntu problem. After all, I am sure that when one middle clicks on the trash icon that Cairo calls some Ubuntu function to delete the files. I don't know if there was something wrong with the thumb drive, a cross linked file or what. But, this really did happen and I am 100% sure its not an operator error. The reality is that when I clicked on the trash icon to empty it, the system deleted every file in my home directory.

Revision history for this message
Brian (mycompostpile) wrote :

makitso, I am new to cairo-dock myself and I am not sure exactly how the back end stuff works (I have done some applet stuff with python and interfaced with the back end through the dbus CDApplet interface). I know how frustrating it can be when something happens that you can't explain and can't reliably reproduce. I am definitely not saying it didn't happen just that I can test it now if you and the developers need assistance. I am just letting the developers know that I have the ability to install and test without hurting my system.

I am currently experiencing a bug (haven't filed a bug report yet, trying to narrow down what it is) that I can't explain either and I am not sure if the error is in cairo-dock or xubuntu. So I know all too well that you see something happen but can't explain it.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello and thank you for this bug report! (and sorry for the problem...)

This is strange and very annoying!
How did you install the dock? From the software-center?

When you want to delete the content of your trash, the dock delete the content of this directory: "trash://"
Can you launch this command from a terminal and describe what you have (you should have a nautilus window with the content of your trash directory)
    $ gvfs-open trash://

If it's possible to reproduce the crash, can you launch the dock with this command and post all output messages?
    $ cairo-dock -l debug --colors | sed -n "/gvfs-integration\// {N;p;}"

@fabounet: can you have a look at this bug report? This is strange... Maybe a problem with gvfs? Or a problem with non-ASCII-7 characters? Or a link to the home directory into the trash dir?

Thanks

Changed in cairo-dock-core:
assignee: nobody → Fabounet (fabounet03)
importance: Undecided → Critical
Revision history for this message
Rob Peters (makitso) wrote :

Matthieu, thanks for the kind words.

I installed the Cairo-dock from Synaptic.
I am not sure what was on the thumb drive but it could have been a link file. Unfortunately, after I deleted the trash contents the drive still showed a large % as used. So, before I discovered the Ubuntu problem, I took the thumb drive to a Window system and reformatted it.

I am at work now (GMT -6) so will try the above when I get home this evening. I will also build a VirtualBox system for testing to see if I can reproduce the problem sequence.

Again, thanks for your interest.

Rob

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Bug 998033] Re: Empty Trash deleted all file in home directory

Hi,
that's very unfortunate, I hope you didn't lose anything important :-/

Can we have more details ? For instance, were there some filenames
with non-ASCII characters, like chinese/accents/etc ?
Were there some links inside the trash (links shouldn't be followed of
course, but ...) ?

Thanks for the details.

2012/5/14 makitso <email address hidden>:
> Matthieu,  thanks for the kind words.
>
> I installed the Cairo-dock from Synaptic.
> I am not sure what was on the thumb drive but it could have been a link file.    Unfortunately, after I deleted the trash contents the drive still showed a large % as used.  So, before I discovered the Ubuntu problem, I took the thumb drive to a Window system and reformatted it.
>
> I am at work now (GMT -6) so will try the above when I get home this
> evening.  I will also build a VirtualBox system for testing to see if I
> can reproduce the problem sequence.
>
> Again, thanks for your interest.
>
> Rob
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/998033
>
> Title:
>  Empty Trash deleted all file in home directory
>
> Status in Cairo-Dock : Core:
>  New
>
> Bug description:
>  Ubuntu 12.04, Gnome3 shell.  Dock version 3.0.0
>
>  Doing maintenance on several usb Fat formatted thumb drives.  Last drive inserted, and some files were deleted on drive.
>  The Cairo dock trash can  showed the file and the number.  Middle clicked on the dock trash and accepted the delete.  System took about 60 seconds before the trash was empty.  However, upon examination all the files in the /home/user directory has been deleted.  Every file and directory, other than the default Ubuntu directories were removed.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/998033/+subscriptions

Revision history for this message
Rob Peters (makitso) wrote :

Only two years of email and many scanned pictures. (recovered some with scalpel). The problem was that my backup drive was mounted and it took that out as well -- lesson learned!

If my memory serves me, this thumb drive should have had a few WIN7 directories and files. There were about 6 of them. Don't know if there were hidden files or not.

> For instance, were there some filenames with non-ASCII characters, like chinese/accents/etc ?

Answer: None that I know of

> Were there some links inside the trash (links shouldn't be followed of course, but ...) ?

Answer: Could have been. But, this was the third thumb drive that I had mounted and I deleted files from the first two OK that I remember. The first two thumbs contained files from Ubuntu copies, etc. I have used them a lot in the last two weeks. The third thumb drive (256MB) is not used much of all. In fact, the contents could have been a year old and last mounted on a WIN7 system.

So, before the third drive was inserted in the USB, the .trash should have been empty.

Rob

Revision history for this message
Rob Peters (makitso) wrote :

I built a 12.04 64 bit system in Virtualbox. I installed the gnome shell and Cairo dock. However, after following the steps I took last week I can not reproduce the problem. However, there is one difference between the VB system and the system that failed.

In VB, after the trash is empty, the folder ~/.local/share/Trash/info is empty.
In the failed system, after the trash is empty, there is a file in ~/.local/share/Trash/info with a name of Private.trashinfo with zero bytes.

Revision history for this message
Rob Peters (makitso) wrote :

I discovered that the Kern.log file that existed at the time of the failure was 567MB in size with 6.4M lines. The problem started when I inserted the Fujifilm USB drive. The last line below was repeated about 6.4 M times. I can only conclude that there was a massive failure in the drive structure that caused the file system to go wild. **** I will mark this bug as incomplete -- clearly its not a Cairo issue *******

Kern.log
May 10 08:53:01 desktop kernel: [66451.158262] scsi 12:0:0:0: Direct-Access Fujifilm USB Drive 4.70 PQ: 0 ANSI: 0 CCS
May 10 08:53:01 desktop kernel: [66451.160204] sd 12:0:0:0: Attached scsi generic sg3 type 0
May 10 08:53:01 desktop kernel: [66451.162070] sd 12:0:0:0: [sdc] 499200 512-byte logical blocks: (255 MB/243 MiB)
May 10 08:53:01 desktop kernel: [66451.162688] sd 12:0:0:0: [sdc] Write Protect is off
May 10 08:53:01 desktop kernel: [66451.162695] sd 12:0:0:0: [sdc] Mode Sense: 45 00 00 08
May 10 08:53:01 desktop kernel: [66451.163303] sd 12:0:0:0: [sdc] No Caching mode page present
May 10 08:53:01 desktop kernel: [66451.163309] sd 12:0:0:0: [sdc] Assuming drive cache: write through
May 10 08:53:01 desktop kernel: [66451.165910] sd 12:0:0:0: [sdc] No Caching mode page present
May 10 08:53:01 desktop kernel: [66451.165916] sd 12:0:0:0: [sdc] Assuming drive cache: write through
May 10 08:53:01 desktop kernel: [66451.166884] sdc: sdc1
May 10 08:53:01 desktop kernel: [66451.169596] sd 12:0:0:0: [sdc] No Caching mode page present
May 10 08:53:01 desktop kernel: [66451.169604] sd 12:0:0:0: [sdc] Assuming drive cache: write through
May 10 08:53:01 desktop kernel: [66451.169610] sd 12:0:0:0: [sdc] Attached SCSI removable disk
May 10 08:53:22 desktop kernel: [66472.056188] FAT-fs (sdc1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
May 10 08:53:22 desktop kernel: [66472.056194] FAT-fs (sdc1): Filesystem has been set read-only
May 10 08:53:22 desktop kernel: [66472.056300] FAT-fs (sdc1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
May 10 08:55:55 desktop kernel: [66625.358610] FAT-fs (sdc1): error, fat_bmap_cluster: request beyond EOF (i_pos 16294)
May 10 08:56:44 desktop kernel: [66674.167653] FAT-fs (sdc1): Directory bread(block 81555) failed

Changed in cairo-dock-core:
status: New → Incomplete
Revision history for this message
Matthieu Baerts (matttbe) wrote :

It's a strange bug and hard to say what's the problem exactly...

Changed in cairo-dock-core:
status: Incomplete → Invalid
Revision history for this message
Rob Peters (makitso) wrote :

I have opened a bug with ubuntu on this issue.
[Bug 1000267] [NEW] Delete of USB drive files deleted entire home directory

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.