LinuxQuestions.org
Review your favorite Linux distribution.
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 09-06-2008, 09:57 AM   #1
Chris106
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Rep: Reputation: 0
retrieving my file


My hard drive isn't working (new crappy comp defect) so I'm working of my disk. Something made my comp feeze and I had to reboot. Just before it froze I was about to save an important file on a disk so crap, it didn't save. If I go into 'File System', then 'User' or 'Temp', I see a file that prob is it. I've tried to open it with 'Office Word Possessor' and many other programs. I know there is a way to retrieve this but please give me some suggestions.
 
Old 09-06-2008, 10:14 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Try copying it to an external drive since your hard drive is bad. If your system doesn't boot, boot up with a rescue disk. You can use the "cp" command to copy a file. That's what it is for.

Also look for a file in the same location with an ~ at the end. Also look for hidden files. A word processor or editor will often create a temporary copy of the original incase something bad happens to the original or the program crashes.

Last edited by jschiwal; 09-10-2008 at 04:24 AM. Reason: Fixed typos
 
Old 09-06-2008, 11:11 AM   #3
Chris106
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Thank for your input. I am getting another hard drive to retrieve my past files. Right now I need to retrieve a more recent file and I see it in a temp file but am unable to open it.
 
Old 09-08-2008, 10:48 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
What is the name of the file and where is it. If it starts with a hyphen that can be tricky.

You need to end options with double hyphens and then use the file name in the first argument:
cp -a -- '-tempfile' /mnt/destdir/.

Do you have read access to the directory. You will need both 'r' and 'x' permissions on the directory. The 'x' bit lets you enter the directory.
 
  


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
Retrieving semi-formatted data: Kernel Panic (cannot find file or dir /dev/root) majorGrey Linux - General 2 09-05-2007 05:02 AM
Retrieving location of shared object file (Linux, C++) ? fantas Programming 4 06-08-2007 07:18 AM
Retrieving file size, or its modification time _cih_ Linux - Newbie 3 12-19-2006 06:48 AM
Retrieving important file on Windows General General 3 04-13-2006 08:10 PM
retrieving devices John Manjiro Linux - Newbie 1 05-20-2003 03:46 AM


All times are GMT -5. The time now is 11:12 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