LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-22-2005, 08:16 PM   #1
linuxenthusiast
LQ Newbie
 
Registered: Jan 2004
Location: Texas
Distribution: Mandrake 10.1
Posts: 17

Rep: Reputation: 0
lost partition table


I tried to install Linare yesterday. When I got to the partitioning part, I got some kind of error message, don't remember exactly what it said, something about the partition table not being read correctly?, anyway I clicked on cancel and the next thing I know all my partitions are gone. I know they're still in there, 'cause I haven't overwritten them yet, but is there any way I can recover the table so I can get my windows partition back at least?

160 GB SATA hard drive.
 
Old 02-23-2005, 06:19 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
At the very least, windows should have an mbr \fix option, but it doesn't always work, even for people who need it because they have a dual boot w2k/xp machine, so no guarantees there.
 
Old 02-23-2005, 07:56 PM   #3
linuxenthusiast
LQ Newbie
 
Registered: Jan 2004
Location: Texas
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
Tried the FIXMBR command, it says that my computer has a non-standard or invalid mbr, I answer yes to write new mbr and it says that the mbr was successfully written, but when I restart it still doesn't show any partitions. Any other ideas?
 
Old 02-24-2005, 09:01 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,687

Rep: Reputation: Disabled
FIXMBR repairs the Master Boot Record. This is not the partition table. Pop in your boot-CD and look what kind of recovery options they have. Also have a look at this

http://freshmeat.net/projects/recoveryispossible/

or this

http://www.tux.org/pub/people/kent-r...looplinux/rip/
 
Old 02-24-2005, 10:40 AM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
I'm assuming you don't want to lose your information by reinstalling. Well, this can be tricky. I am also assuming this machine has linux on it somewhere (might be a bad assumption but it is my current one).

If you have exactly the same install disk (for linux) it is possible to run it again... punch in exactly the same requirements at the disk partitioning part... and write it before aborting the install. This may not be possible with your specific distro but I've seen it done before. All you need to do is write the proper information there and you can get at the disks again.

If your distro doesn't allow that. There are manual ways to try and hunt up the information. None of which are going to be fun but if you can't afford to lose the data it is your best bet.

There is an adage concerning new Unix installations. Print out your install changes as you make them. Basically, as soon as you have the system installed print out all the system specific configuration files (and the partition information to complement /etc/fstab) and put it in a binder right next to the computer. The printouts should contain all the information needed for a person who never saw the original setup to duplicate it. If you had this, we would have a hard copy of the information needed to replicate the partition table. Annoying but easy to fix with a recovery disk. I know it doesn't do a lot of good right now -- but consider it in the future.
 
Old 02-24-2005, 08:16 PM   #6
linuxenthusiast
LQ Newbie
 
Registered: Jan 2004
Location: Texas
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
I did have Mandrake 10.1 on one partition. Unfortunately, Mandrake doesn't support creating NTFS partitions, so that wont work. Could I try to use my Windows XP CD and create the NTFS partitions from there?

By the way I found a program called Partition Table Doctor (among quite a few other DOS programs) that finds my partitions but doesn't write them to the disk (demo version). Is there a linux program similar to it? If not I may have to buy Partition Table Doctor or something similar, I figure with so many windows and DOS programs out there doing basically the same thing some linux programmer must have written one by now.
 
Old 02-24-2005, 11:52 PM   #7
linuxenthusiast
LQ Newbie
 
Registered: Jan 2004
Location: Texas
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
Sorry JZL240I-U, somehow I had overlooked your post earlier. Anyway I tried the program you suggested and it hangs somewhere in the booting process. The line says "hde: host protected area => 1", so I tried re-creating my NTFS partitions using DISK PART on Windows XP CD without formatting them but no luck there so I'll just reformat and be done with it.

Thanks for all your replies, next time I'll keep better notes of what I'm doing and not just ASSUME everything will go smoothly.
 
Old 02-25-2005, 01:18 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,487

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Quote:
FIXMBR repairs the Master Boot Record. This is not the partition table.
Mmmm - the first sector of the primary disk is considered to be the MBR. The first 446 (decimal) bytes of this sector may (should) contain executable code, followed by 4 16 byte partition descriptors, followed by a 2 byte marker.
So the MBR actually DOES contain the partition table.
Code that updates the executable code area is aware of this, and avoids contact with it.

Doesn't help our problem - maybe try gpart, but it's limited to ext2 (ext3 ???), and only non-extended partitions I think.
A tutorial on partition recovery exists at tldp
 
Old 02-25-2005, 03:34 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,687

Rep: Reputation: Disabled
Well, I thought the code for the extended partitions is in the beginning of the partitions themselves and the code you mentioned just points there -- in case they are extended partitions. Ah, well, that doesn't help him either.

Perhaps this can help:

http://www.tldp.org/HOWTO/Linux-Comp...ecovery-HOWTO/
ftp://bmrc.berkeley.edu/pub/linux/re...ble-0.3.tar.gz
http://www.stud.uni-hannover.de/user/76201/gpart/
http://freshmeat.net/projects/recoveryispossible/
http://www.sysresccd.org/
 
  


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


All times are GMT -5. The time now is 05:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration