LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 09-12-2013, 01:36 PM   #1
kabbotta
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
Accidentally overwrote boot information on external hard drive.


I was using my brother's computer to make a USB boot drive for Arch Linux. The USB stick didn't show up on his computer and I accidentally wrote the Arch Linux boot information to his 2TB external hard drive (his computer runs windows 7 and it is a WD external hard drive). Obviously, on his computer the drive became completely unrecognized and only asks to be formatted.

When I plug it into my computer and run testdisk it can see the tiny 500mb portion that is assigned to be the boot for ArchLinux and it can see the entire 1.8TB of "unallocated" information still left of my brother's data. Gparted was unable to recover anything from the 1.8TB unallocated partition and it gives me the warning that the drive appears to have GPT signatures but doesn't have a valid fake msdos boot table. When I ran testdisk it warned me that the number of headers and sectors was wrong, but I wasn't able to change them in the geometry section to get it to run right.

I can give you any readouts you need. I'm just not sure what to put up yet. Thanks, I hope this is a good place for this question.
 
Old 09-12-2013, 03:09 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo, Slackware
Posts: 14,903
Blog Entries: 2

Rep: Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812
Have you tried a deep scan for partitions with Testdisk?
 
1 members found this post helpful.
Old 09-13-2013, 02:08 AM   #3
kabbotta
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes, thanks for the reply, the deep scan just finished and this was the output:


Code:
TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sdf - 2000 GB / 1862 GiB - CHS 243198 255 63

The harddisk (2000 GB / 1862 GiB) seems too small! (< 4453 GB / 4147 GiB)
Check the harddisk size: HD jumpers settings, BIOS detection...

The following partitions can't be recovered:
     Partition               Start        End    Size in sectors
>  FAT32                297368 104 41 541416 167 18 3920635067
   FAT16 <32M           314815 218 22 508686 209  1 3114537028
 
Old 09-13-2013, 06:52 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo, Slackware
Posts: 14,903
Blog Entries: 2

Rep: Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812
In that case it is unlikely that you will be able to restore the partition table. But even if you would be able to restore that you would still have the problem of a broken filesystem, since you overwrote the first 500MB of it. In this case the only thing I can think about to restore the data that is not overwritten is to use Photorec to search for files in the part that is now unallocated.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Information on external hard drive is unreadable uljana Linux - Newbie 2 03-03-2009 08:17 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
accidentally installed linux on external hard drive oneferna Linux - General 2 01-28-2006 03:53 PM
Accidentally overwrote /bin/sh roastedmnm Suse/Novell 5 07-26-2005 02:37 AM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 06:40 AM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration