Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-17-2011, 03:15 AM   #1
LQ Newbie
Registered: Jun 2011
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.

Old 06-17-2011, 03:26 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,807

Rep: Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168
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, 03:31 AM   #3
LQ Newbie
Registered: Jun 2011
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, 09:10 AM   #4
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44

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:
1 members found this post helpful.


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 06:08 PM
Ping Linux unable to restore backup on NTFS partition casigui88 Linux - Newbie 4 07-23-2010 03:33 PM
Best way/tool to back up and restore an NTFS partition with bad sectors? Robert Carnegie Linux - Software 3 01-27-2010 07:56 PM
Restore an ext2 partition from a msdos partition zerotyler Linux - Newbie 4 10-02-2009 07:41 AM
Why can't I restore a partition table backup containing a reiser partition? oldweasel Linux - Software 2 05-23-2004 12:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration