LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-17-2016, 08:34 AM   #1
nomko
Member
 
Registered: Feb 2011
Location: The Netherlands
Distribution: Linux Mint 17.2
Posts: 115

Rep: Reputation: 21
Question How to recover files from external disc?


Hi,

Earlier this afternoon i made a big hugh mistake. Accidentally i installed Elementayr OS Loki (Beta) on my 500 GiB Toshiba external HDD drive.

I followed this thread to create a bootable USB Stick.

Unfortunately, i had my external 500 GiB drive also plugged in. While my USB stick was mounted as /dev/sdd, the eternal drive was mounted as /dev/sdc. And if you look at the commands given in that link you will see that the command for creating the bootable USB stick was meant for a stick mounted as /dev/sdc..... Not paying attention (don't ask why, my mind was a bit far away at that moment when i did it thinking of something else...) ended up with installing Elementary OS on my external drive wipping my whole disc cleaning out every file what's on that disc.

I have very important files stored on that disc for my work since i travel a lot between my works office and a production site outside The Netherlands for a client. So i had all my personal and project files on that 500 GiB external USB drive.


I only have 1 question:
HOW DO I RESTORE MY 500 GiB EXTERNAL DRIVE RECOVERING MY DATA ON THAT FILE???

Any help will be very much appreciated! Please keep in mind i'm not that technical so a step-by-step guide would come in very handy!

Thanks again guys!!
 
Old 07-17-2016, 08:54 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by nomko View Post
HI only have 1 question:
HOW DO I RESTORE MY 500 GiB EXTERNAL DRIVE RECOVERING MY DATA ON THAT FILE???
1 answer - you can't.

That's why backups were invented.

By over-writing the image, you destroyed at least 1.6 Gig at the front of the disk. Try testdidk to see what of the remainder you might be abte to recover.
 
Old 08-11-2016, 07:43 AM   #3
JamesBell
LQ Newbie
 
Registered: Jul 2016
Posts: 6

Rep: Reputation: Disabled
Send it to a data recovery service. You can find some in the net. I've never had to use one myself, and there's no practical method for thoroughly testing data retrieval companies. Even with the best of these services, there's no guarantee you'll get your files back.
 
Old 08-11-2016, 09:05 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I see you've split this off from your original thread, which was started about an unrelated topic. Good.

The tool of choice is testdisk, which should be able to discover the remains of the original filesystem and allow you to copy files from it. You can do that from the original drive as long as you are very careful not to let testdisk write anything to that drive, but it is much safer to make an image of that drive first and work only from the copy. If you have a filesystem with at least 500GB of free space, you can do that with
Code:
dd if=/dev/sd{X} of=/path/to/some/file bs=1M
Replace the "{X}" with the appropriate letter for the source drive.

I'll ask again, do you know what filesystem was originally on that drive? That's going to make a big difference in the liklihood of successful recovery. I'm really hoping it was not FAT32 or VFAT, since both copies of the FAT will have been overwritten, which will leave you with little choice other than a very frustrating session with photorec trying to see what bits, pieces, and unfragmented files you make sense of. Professional data recovery would be a better bet there.
 
Old 08-11-2016, 12:27 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by JamesBell View Post
Send it to a data recovery service. You can find some in the net. I've never had to use one myself, and there's no practical method for thoroughly testing data retrieval companies. Even with the best of these services, there's no guarantee you'll get your files back.
This, especially since you state that you are not very technical, and from reviewing the two threads I've seen thus far, you have just made a very bad mistake at overwriting a disk with different data.

Also bear in mind a couple of things:

(1) syg00 is likely correct in that you have lost the data and will not be able to recover it
(2) recovery services are expensive and there are no guarantees
(3) whatever a recovery service does recover may not be a full file, but a bunch of fragments.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I recover data from a formatted external hard disc? etapias Linux - Newbie 5 12-07-2015 07:49 AM
[SOLVED] Recover disc: Bad superblock, lost partition rydman Linux - General 13 01-14-2014 01:45 AM
mount external usb disc eggerola Linux - Newbie 8 09-30-2009 01:35 PM
External USB disc. glore2002 Slackware 11 06-21-2008 12:27 PM
external disc is not mounted thelonius Linux - Hardware 2 12-23-2005 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:36 PM.

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
Open Source Consulting | Domain Registration