LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2016, 08:34 AM   #1
oftheair
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Rep: Reputation: Disabled
Cannot recover files out of trash bin


A part of maps and submaps suddenly have been disappeared out of the external harddisk. I found them in the map trash:///\media\CHD2UL60\.Trash-1000\files\
How can I bring them back on the external hard disk?
When moving or copying I get the announcement: "invalid file name"

OP: linux mint 13 xfce; acer Travelmate 2451WLCI
dual boot with OP Windows XP.
 
Old 04-09-2016, 11:00 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,208

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
That's a Windows pathname. Linux doesn't use backslashes as path separators; it uses plain slashes. If you want to get the files back using Linux, you need to give the pathname in a form that Linux understands.

I think the "trash:///" thing is Windows-specific. The Linux path is most likely to be
Code:
/media/CHD2UL60/.Trash-1000/files
Note that .Trash-1000 is a hidden folder. You won't be able to see it in your graphical file manager unless you ask to see hidden files too.
 
Old 04-09-2016, 11:05 AM   #3
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,111

Rep: Reputation: 147Reputation: 147
Hello, this looks like a Windows file. :///\media\CHD2UL60\.Trash-1000\files\
You may have better success in a Windows forum. However this may help.
https://www.winhelp.us/recovery-cons...indows-xp.html
https://www.microsoft.com/resources/....mspx?mfr=true
 
Old 04-10-2016, 08:23 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,326
Blog Entries: 4

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
No, I suspect that it is a Linux file reference. Nevertheless, the key thing to notice is that the subdirectory .Trash-1000 begins with a period.

This makes it a hidden directory, in Linux parlance. You don't see them unless you set appropriate options in a GUI file display, or if you use the option ls -a.

Ordinarily, "trash cans" move entries to a designated (hidden) folder ... sometimes mangling their names since you're allowed to put several copies of the same file/folder into a trash can. "Emptying the trash" consists of actually removing (rm, rmdir commands) the content of that folder. (Terminology used here: "Folder" === "directory.")
 
Old 04-11-2016, 01:47 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,936

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
Quote:
Originally Posted by oftheair View Post
A part of maps and submaps suddenly have been disappeared out of the external harddisk. I found them in the map trash:///\media\CHD2UL60\.Trash-1000\files\
How can I bring them back on the external hard disk?
When moving or copying I get the announcement: "invalid file name"
hello oftheair,
the "trash:///" is indeed a linux thing.
try opening the trash can in your filemanager, can you see something like this?
if so, "Restore" is the way to go, you cannot move the files out of there manually.

the backslashes '\' are NOT a linux thing, i have no idea how they got there.
they might be part of the problem (why linux can't restore the file).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] OpenSUSE 11.2 (KDE4): Take ownership of files, folders and subfolders in trash bin whschimmel Linux - Desktop 2 12-16-2010 02:42 PM
Any way to recover files deleted from KDE trash? belliott4488 Fedora 7 06-01-2010 02:39 AM
system files delete by typo, /bin/ gone. How to recover? Dbronk Linux - Server 4 01-23-2010 01:05 PM
How To Recover Trash Bin Mic Q SUSE / openSUSE 2 03-31-2005 04:08 AM
How to make deleted files auto go to trash bin? subaruwrx Slackware 1 07-24-2004 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration