LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-06-2012, 06:05 AM   #1
quaddus
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Hard drive not detected , how to retrieve partition table???


Hi if some one has any solution to this....my system has five hard drives hda, hdb, sda, sdb and md0... out of these md0 is being used for data storage and mounted in /storage...hda and hdb have linux raid system installed and does not give any file system when i check with fdisk ...hda and hdb both are 500 gb disks ...i wanted hda to be accessible on my linux so created a partition hda1 with ext3 file system and modified the partition table. what happened now is that i cant get in to GUI of linux.
fsck.ext3: Invalid argument while trying to open /dev/md0 [FAILED]



*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot.
*** When you leave the shell.
*** Warning -- SELinux is active.
*** Disabling security enforcement for system recovery.
*** Run 'setenforce 1' to reenable.

Give root password for maintenance
(or type Control-D for normal startup):

when i do fdisk -l, md0 is now not detected. Also /storage gives zero size..im stuck up with the Repair file system1# prompt... when i do e2fsck it gives me the following message:

The superblock could not be read or does not describe ext2 filesystem. if the device is valid and it really contains an ext2 filesystem, then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>....when i access vi /etc/fstab its empty...if this has happened due to a modified partition table then any possibilities how to retrieve the old table??

what to do now in this scenario??? if some one could help here??

Many Thanks
 
Old 06-06-2012, 11:04 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,987

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Quote:
Originally Posted by quaddus View Post
...i wanted hda to be accessible on my linux so created a partition hda1 with ext3 file system and modified the partition table.
That was probably a very bad idea. It's possible you have lost data - what type of RAID was it ?.
Quote:
what happened now is that i cant get in to GUI of linux.
fsck.ext3: Invalid argument while trying to open /dev/md0 [FAILED]
You can probably get around this by commenting out the line for /storage from /etc/fstab (edit from a liveCD). That should allow you to at least boot - then you can start investigating how much data you've lost. If it's RAID1 you may even come up degraded and can use just the single disk to get you back up and running.
 
1 members found this post helpful.
Old 06-07-2012, 06:46 AM   #3
quaddus
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
You can probably get around this by commenting out the line for /storage from /etc/fstab (edit from a liveCD). That should allow you to at least boot
hi syg00 thanks alot for your reply. i commented out the line for /storage in /etc/fstab and was successful in booting the linux ...

Quote:
then you can start investigating how much data you've lost. If it's RAID1 you may even come up degraded and can use just the single disk to get you back up and running.
the RAID machine we have here was shutdown some time ago and was disconnected completely from all network. hence here on my system im not able to access those two hard drives with raid system installed (as ive mentioned before)... therefore the hard drive is somehow safe only i did changes with my own system linux...im confused if some other linux system can use that hard drive without an issue??? please comment...

Also the changes were done with hda but what im not able to get is md0.. now that the partition table was modified and md0 is not detectable, is there a way to get it running??? please comment

many thanks.....
 
  


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
Help! Accidentally erased the partition table on one of my Hard Disks xnomad Linux - Software 2 09-28-2010 01:53 AM
IDE DVD drive and SATA 3.0 hard drive not detected on Debian/Ubuntu install Byrnascus Linux - Hardware 7 01-21-2010 12:11 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 11:46 AM
hard disk partition table crashed! himy Linux - Hardware 1 01-28-2008 04:58 PM
fixing a partition table on new hard drive demerson3 Linux - Newbie 12 12-27-2007 10:18 AM

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

All times are GMT -5. The time now is 01:08 PM.

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