LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   manually write partition table for deleted partition (https://www.linuxquestions.org/questions/linux-software-2/manually-write-partition-table-for-deleted-partition-743715/)

tihcra 07-29-2009 11:27 AM

manually write partition table for deleted partition
 
i was installing ubuntu jaunty few days on my new laptop hp-dv6(320gb hdd)
and had backed up my data in my 160 gb external portable hdd
i accidently deleted my partition of external hdd and went ahead and started installing ubuntu
then i suddenly realised my mistake and immediately pluged out the ext hdd knowing that data is still there and only partition entry has been deleted
i thought that recovery would be easy
googled and found tools like testdisk, active partition recovery.
tried them but unfortunately none worked(dont know why)

after finishing scanning the hdd for lost partitions and correctly detecting that one big 160gb partition has been deleted active partition recovery gave error msg that disc MBR damaged and it cannot continue so i selected option to rewrite fresh mbr on the hdd
this was the only change i made to my hdd

then i tried testdisk
to my horror it didnt show ny partition

so i kept ext hdd away for 2-3 days and played with my lappy on ubuntu(as its 320 gb hdd had no data so i could safely do nything)
and now i have a perfectly working ubuntu jaunty on my laptop

since i didnt write to my ext hdd all the data should be there
i as hoping that if i could manually rewrite the partition table so that windows would feel asif no change has been made to partition

how can i do this plz tell
ny help is welcome
but plz dont suggest ny softwares for searching for lost partitions
guide me how to write the partition table fore the lost ntfs 160 gb partiton which filled the entire 160gb ext portable hdd

bsdunix 07-30-2009 12:26 PM

I found this info which may help you. NOTE: No guarantees that it will work or any data still on drive will be intact.

http://www.faqs.org/docs/Linux-mini/...tml#RECOVERING

In my experience recovering a deleted partition that I hadn't reformatted or deleted any data, I knew ahead of time the beginning and ending cylinder/head/sector boundary information for the partition. Using fdisk, I would then manually enter that boundary information, save it, fingers crossed, and the data was all there.


All times are GMT -5. The time now is 12:48 AM.