LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2011, 09:40 PM   #1
segieif03
LQ Newbie
 
Registered: May 2010
Posts: 24

Rep: Reputation: 0
Exclamation recovering lost partition


hey Guys need some hand here. I am trying to create a partition using gparted for my centos installation but I accidentally deleted my partition table.
my partition was created on windows7 and dual boot with ubuntu.
I am trying to recover it using test disk with ubuntu live cd
but after I recover it still I neither can't boot on windows or Ubuntu

here is the result of patition quick seart
Quote:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
>D HPFS - NTFS 0 32 33 12 223 19 204800 [System Reserved]
D HPFS - NTFS 12 223 20 10694 23 17 171593728
D HPFS - NTFS 10694 23 18 21150 44 14 167976960 [Fussion]
D HPFS - NTFS 21150 44 15 38913 37 36 285362176 [FileHouse]
I tried to set up my partition characteristic like this

Quote:
Disk /dev/sda - 320 GB / 298 GiB - CHS 38914 255 63
Partition Start End Size in sectors
1 * HPFS - NTFS 0 32 33 12 223 19 204800 [System Reserved
2 P HPFS - NTFS 12 223 20 10694 23 17 171593728
3 E extended LBA 21150 44 1 38913 254 63 285375888
5 L HPFS - NTFS 21150 44 15 38913 37 36 285362176 [FileHouse]
and still can't reboot on my win7 or ubuntu

please someone help me I really need to recover my partiotions
thank you!
 
Old 05-24-2011, 10:36 PM   #2
gentisle
Member
 
Registered: May 2005
Location: USA
Distribution: LinuxMint
Posts: 219

Rep: Reputation: 7
I'm not quite sure what you meant, but gparted is for creating/deleting/resizing partitions. If you want to recover your partition table, the command is gpart which is "guess partition". If the code you posted is from gpart as opposed to gpartED, then you are using the right program.

You will want to back up your mbr before doing any of this. BTW, you might have better luck using the gpart from SystemRescueCD. Just add ".com" to that, download and burn to disc from another machine. It's a quick booting live Linux for rescuing problem computers.

Backup your mbr by doing this:

Code:
sudo dd if=/dev/xxx of=/dev/yyy/myTrashedHDD.mbr bs=512 count=1
Where xxx = something like hda or sda or sdb for 1st IDE HDD, 1st or 2nd sata HDD respectively, and yyy = a USB flash drive or some other HDD that doesn't have partition problems. And of course, you have to save this info in a file or it will wipe the mbr of the drive where you put it. Hence the filename myTrashedHDD.mbr or whatever you like. If you ever need to restore the mbr from that file, you simply switch the devices on the if and of parameters.

If you don't know what the device name is for your HDD, just type:

Code:
sudo fdisk -l
And that will list your hard drives.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering lost files? Wocky Linux - Hardware 2 01-02-2007 02:45 PM
recovering lost data???? tnelson42345 Linux - Software 3 08-25-2006 12:27 PM
Recovering Lost Picture Data From NTFS Partition Using Linux YianniM Linux - Software 1 05-06-2006 03:35 AM
Recovering Lost Data lawrencegoodman Linux - General 1 04-04-2004 01:57 PM
Recovering Lost Files gonus Linux - Software 1 08-08-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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