LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-17-2011, 04:15 AM   #1
kouta
LQ Newbie
 
Registered: Jun 2011
Location: www.webhosttutor.com
Posts: 12

Rep: Reputation: Disabled
Restore NTFS partition after using dd


Hi Guys, I recently tried to make a backup of an ntfs partition using dd.
For example.. "sudo dd if=/dev/sda2 of=/dev/sda1" which made a copy of one partition to another, not realizing that it would wipe the ntfs filesystem and image across the linux partition. Is there anyway i can undo this to get back all the data which was on the ntfs drive? Cfdisk still sees the partition as NTFS. Have also tried photorec to try to retrieve the data but to no avail.

regards
kouta.
 
Old 06-17-2011, 04:26 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,842

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Your language is somewhat confusing. Are we to assume you copied a Linux partition over the top of your NTFS partition ?.
If so, your data is (essentially) lost. There is a possibility some fragments could be recoverable - but no way to know which bits of which files.
Note the partition type (as indicated by [sc]fdisk) is basically irrelevant to the filesystem contained therein - and it's the filesystem that has your data. And what you apparently trashed.
 
Old 06-17-2011, 04:31 AM   #3
kouta
LQ Newbie
 
Registered: Jun 2011
Location: www.webhosttutor.com
Posts: 12

Original Poster
Rep: Reputation: Disabled
yeah thats right I copied the linux partition over the ntfs partition, so i presume i cant undo that action!
 
Old 06-17-2011, 10:10 AM   #4
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44
dd

dd (data duplicate) is one of the oldest and simplest UNIX commands. this makes it as powerful as it is irreversible. Here is a brief intro:

http://www.brighthub.com/computing/l...les/38387.aspx
 
1 members found this post helpful.
  


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
ran mkfs.vfat over top ntfs partition... any way to restore ntfs partition info? oryan_dunn Linux - Hardware 8 10-14-2010 07:08 PM
Ping Linux unable to restore backup on NTFS partition casigui88 Linux - Newbie 4 07-23-2010 04:33 PM
Best way/tool to back up and restore an NTFS partition with bad sectors? Robert Carnegie Linux - Software 3 01-27-2010 08:56 PM
Restore an ext2 partition from a msdos partition zerotyler Linux - Newbie 4 10-02-2009 08:41 AM
Why can't I restore a partition table backup containing a reiser partition? oldweasel Linux - Software 2 05-23-2004 01:11 AM


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