LinuxQuestions.org
Help answer threads with 0 replies.
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 03-05-2010, 09:33 AM   #1
angie.tawfik
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
Unhappy Help, destroyed my external HDD using dd :(


Hello All

I destroyed the first few blocks of my external HDD:
# dd if=/dev/zero of=/dev/sda bs=512

Few seconds and I pressed ctrl+c to terminate. I realized I am running on my external HDD instead of the laptop's MBR

I badly need to restore data from this external HDD, and of course I am unable to mount it..

The external HDD itself has no backups. It's Western Digital, one partition, 320 Gigs, had around 15 Gigs free.

Please help, some important data on this external HDD (4 Gigs) are the only copy I have!

Your help is really appreciated.. Thanks in advance.
 
Old 03-05-2010, 10:01 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
http://www.faqs.org/docs/Linux-mini/...on-Rescue.html
http://smallsrv.com/recovery/
 
Old 03-05-2010, 11:12 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
That command erased the MBR, including the partition table. Depending on what you mean by "a few seconds" it **might** have erased some data. The chances are that most of your data is still there.

First: Do not do anything that would cause a write to the drive. If the data is REALLY important, then consider cloning it before trying anything else.

Standard recovery tools include testdisk and photorec (both from the same author).
 
Old 03-13-2010, 09:00 AM   #4
angie.tawfik
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you all, I partially recovered my data from emails and copies with friends. I figured out that the external HDD was erased twice using (dd) and it remained as unallocated space for a couple of days, so I reformatted in ext3 and copied my data that was scattered among friends and emails.

Thanks again
 
Old 03-13-2010, 09:03 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
And you bought another external drive to use for backups---right??

Regardless, glad you recovered...
 
  


Reply

Tags
dd, destroyed, external, harddisk, hdd


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
I installed ubuntu 9.04 to my Maxtor external hdd. I have no internal hdd. I can boot dont33 Linux - Newbie 1 08-13-2009 04:13 PM
[SOLVED] Removing Grub from internal HDD and installing it only on external hdd M3GA8U5H Linux - Newbie 5 08-07-2009 01:47 AM
Installing Ubuntu on External HDD; PC has no internal HDD 449 Ubuntu 2 11-28-2007 05:12 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 11:50 AM


All times are GMT -5. The time now is 01:14 PM.

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