LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-22-2008, 12:48 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Need to recover lost partition table


I need a good idea here.

I Burned a cdr for Trixbox, which installs the Asterisk stuff along with Centos. I just tested the cd, and did not install, but it wiped the partition table on my disk:-((. So I'm running here with a DSL cdr and DS fonts as well :-(.

fdisk -l shows me NO partitions. I had
hda1 /boot (for everything)
hda2 swap (For everything)
hda3 slackware /
hda4 extended
hda5 Slackware home
hda6 Fedora core 5
hda7 HLFS
hda8 Kevux
hda9

Is there anything that does partition table reconstruction in linux? The equivelant of ndd /rebuild? I can stick in another hd and probably even compile something.
 
Old 03-22-2008, 01:16 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi business kid, This may help.
Good luck. ;-)
 
Old 03-23-2008, 12:51 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Original Poster
Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Thumbs down

Thanks very much for the link.
Whoever wrote gpart was kind enough to provide a static binary for download!

I had
hda1 boot - got that cylinders 1-11
hda2 swap got that.cyls 12-255
hda3 - slackware / cyls 256-2079
hda3 ext

This is sadly where things went wrong. It had a lot of funny stuff in the output around cylinder 1023. and I entered up 1023 first time by mistake which threw my guesses off. I think it dodged using one head on cylinder 1023 or 1024. I then wrote the primary partitions using 1023, which made a mess

I can't mopunt hda3, which is the system I wanted. I also wanted hda5, which would have been /home, largely to save me a few days setrup and because I had just tarted up some talks which I hadn't backed up.

gpart is now making very poor guesses.I'll set it going on full scan and see whet it comes up with in the extended, but it looks like I'm going down in flames.That _was_ the correct way to do it, but gambling is involved. I lost.. Luckily I'm not crying too much - much of the disk was obsolete/experimantal systems.
 
Old 03-23-2008, 03:44 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Original Poster
Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Exclamation What I should have done :-O

OK, for the rest of you, what I should have done is reach for testdisk
http://www.cgsecurity.org/wiki/TestDisk_Download

which is the bees knees in this sort of thing. I got it. I found my 3rd partition, but there was no superblock on it :-(.

Now I'm thinking back to the trixbox install and I gather it did more damage than I thought. But testdisk seems the way to handle this
 
Old 03-24-2008, 10:42 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,254

Original Poster
Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Thumbs up Rescued - SORTED - Solved - YIPPEE!

[QUOTE=business_kid;3098005]OK, for the rest of you, what I should have done is reach for testdisk
http://www.cgsecurity.org/wiki/TestDisk_Download/QUOTE]

Having given up because nothing was working, I sat down to reinstall today and gave testdisk another go because DSL couldn't find any partition, whereas I had set some up. Testdisk found the files, found everything, and generally saved my a**. I particularly wanted a bit of recent stuff that wasn't backed up (But will be soon!). It seemed the hard disk needed a cold boot.

I have not had to reinstall slackware. I don't know about any other crud yet, but I really don't care. It's a great day to be alive :-D. There will be some glitch in it, because I wrote the partition in the wrong place, but I'll live with that.
 
  


Reply



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 Lost...how to recover rhb327 Slackware 5 07-08-2007 08:17 PM
how to recover partition table ariadneN Linux - General 3 07-26-2006 02:13 PM
Recover partition table djib Linux - Software 2 05-14-2005 07:07 AM
Recover the partition table yogeshwar_s Linux - Hardware 1 09-22-2004 02:02 AM
HELP!!! to recover lost inode table moden Linux - General 3 11-26-2002 05:53 AM

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

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