LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2007, 08:54 AM   #1
moeFEAR
Member
 
Registered: Sep 2005
Posts: 49

Rep: Reputation: 15
Partition Table recovery Tools?


Hello,

I have two dynamic disks, sda and sdb, on which opensuse, vista, and xp are installed. I incorrectly configured grub while installing opensuse, and it overwrote the MBR on sda. It should have been written to sdc (3rd harddrive). either way, the partition table information on sda is no longer available. it shows up in linux and windows as an unformatted harddrive. however, the partitions on it were part of RAID0 with the other dynamic disk, and I have important data on it.

1st) How can I, from vista, using sdb, find out where each partition starts and ends, because they are the same for sda.
2nd) In linux, how can I feed linux that partition table data to reconstruct the partitions, mount them in raid0 configuration with sdb so that I can backup the data elsewhere?
 
Old 11-01-2007, 09:07 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
I am a bit confused. The way I read it, you had two disks set up in RAID 0 (striping). If so, would not the MBR (and any other data) get split across both drives? I think if you have two disks in RAID 0, then each one individually will appear to be unformatted.

This aside, installing GRUB to the MBR should not change the partition table.
 
Old 11-01-2007, 09:33 AM   #3
moeFEAR
Member
 
Registered: Sep 2005
Posts: 49

Original Poster
Rep: Reputation: 15
Yes, two disks set up in RAID0 (windows dynamic disks). Each disk has its own MBR and partition table.
Installing GRUB should not change partition table, when disks are basic disks. Windows dynamic disks are a different issue. Windows stores dynamic disk partition table info in some wierd way, so that installing GRUB into the MBR of one or both disks prevents linux from recognizing the partition table, and causes problems in recognition from windows. Furthermore, vista and xp both have different dynamic disk formats. While experimenting, vista itself stopped recognizing the partition table too. At this point ony one disk, the one with the modified MBR, appears as unformatted in both linux and windows. The other disk still retains partition info.

Recap:

Disk 1:

1st partition is basic primary ntfs partition with winxp
all other "partitions" are dynamic volumes in RAID0 with Disk2

Disk 2:
1st partition is basic primary ntfs partition with vista
all other "partitions" are dynamic volumes in RAID0 with Disk1

because of this configuration, both drives retain MBRs. If no OS was installed on either disk, the whole drives would have been dynamic, and there would be no MBR or traditional partition table (as i understand it).

opensuse is installed in RAID0 fashion on a reiser fs on the dynamic partitions.

I booted the whole system using grub installed on a 3rd USB external harddrive.

the MBR of disk 1 contained windows bootloader to boot win xp
the MBR of disk 2 contained windows bootloader to boot vista
the MBR of external USB contained GRUB

however, while installing re-installing opensuse, i updated the bootloader installation path so that it installs stage2 into the first partition on the usb drive. however, i forgot to update it to install to the MBR of the external usb drive, so it installed into the MBR of Disk 1. From then on, everything was downhill...
 
Old 11-01-2007, 09:59 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
OK--I am now in over my head. I had thought that RAID meant that entire disks were merged by the RAID controller so that they appeared as one disk. I don't know how this relates to Windows dynamic disks. You probably will need to do some research into exactly how Windows configures the partition tables.

Until you have a solid plan, don't do anything which could cause a write to either of the disks. If the data is REALLY valuable, then consider cloning them before trying anything. If your time is also valuable, consider a data recovery service.

Once past the issue of recovering data, I would get rid of all the RAID and dynamic disks---back to basics.
 
Old 11-01-2007, 10:33 AM   #5
moeFEAR
Member
 
Registered: Sep 2005
Posts: 49

Original Poster
Rep: Reputation: 15
thank you pixellany for useless info.

It's like asking you: Who does this hat belong to?
And you replying: It belongs to its owner.

there is a difference between hardware raid, software raid, and fakeraid, you're the one who needs to do some research.


get rid of all the raid and dynamic disks? how old are you? I have absolutely no need for the raid and dynamic disks. I just feel like making things difficult.

Last edited by moeFEAR; 11-01-2007 at 10:37 AM.
 
Old 11-01-2007, 06:51 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Do you give the same response to everyone who tries to help?

good luck to you.......
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changed Partition Table Data Recovery Ext3 demmylls Linux - General 1 03-07-2007 06:44 AM
Partition Table Recovery in Linux/XP Dual Boot PC kumarnine Linux - Software 3 04-19-2006 11:50 PM
partition table recovery phoenix7 Linux - Distributions 8 08-10-2005 01:47 AM
HDD Partition Table Recovery nikhil Linux - Hardware 10 03-04-2005 11:08 AM
Partition table recovery SYakush Linux - General 4 08-04-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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