LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-13-2005, 07:16 PM   #1
mngmd
Member
 
Registered: Jan 2005
Location: Philadelphia, PA
Distribution: ubuntu
Posts: 68

Rep: Reputation: 15
Lost partition table


My partition table got trashed by WinXP.

If I used fdisk and recreate the partition table, will I lose all my data?
Or do I need to used something like partition table doctor? I tried testdisk, but it doesn't recognize the lost partitions when it scans the drive.
 
Old 11-13-2005, 09:34 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
There are probably safer ways to do this.

gpart can guess partition tables and write them. Read the man pages very carefully before trying it.

parted can list current partition tables, but I find it difficult to safely re-write them.

cfdisk can show you the current partitions on a hard drive, and you can re-write the partition tables. for example, if you have only one hard drive, start cfdisk from the command line: cfdisk /dev/hda. It should show you the partitions on /dev/hda. If they look ok to you, use the tab or arrow keys to select Write, and re-write the partitions tables.

Hopefully, you won't loose anything. If you do, I hope you have a recent backup you can restore. If not, perhaps it would be a good idea to begin keeping a backup around for such days as this.
 
  


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
Partition Table (Cylinder boundaries) and lost space imitheos Linux - General 3 09-17-2005 02:59 PM
lost partition table linuxenthusiast Linux - General 8 02-25-2005 02:34 AM
Whether I can saving my system, lost MBR and partition table jiawj Fedora 2 09-16-2004 02:04 PM
another lost partition table in Drake 10 fostytou Linux - Software 1 05-04-2004 11:22 AM
Lost partition table amp2000 Linux - General 6 10-28-2001 01:12 PM

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

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration