LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-05-2009, 02:07 PM   #1
the_mulletator
LQ Newbie
 
Registered: Sep 2007
Posts: 27

Rep: Reputation: 15
Hard drive got messed up by fedora installer crash!


My friend was trying to install fedora 10 from a live usb.
I told him all about linux and he was ready to switch from windows.
He was trying to install on an external hard drive.
During the install the fedora installer crashed and said there was an unhandled exception and the process could not be completed. It also said "This is probably a bug"

He rebooted and he could no longer read his internal hard drive!
It had two partitions on it and a windows recovery partition now the two appear to be one larger partition and the recovery stilll exisits.

What a disaster. I'm trying to help him get the data off but I can't mount the drive. I can mount the recovery partition but nothing else.

It shows up like this in fdisk -l:
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   12  Compaq diagnostics
/dev/sdb2   *          26       19457   156087540   8e  Linux LVM
fdisk gives me this:
Code:
[root@localhost ~]# fdisk /dev/sdb2
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xef7ec2db.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.


The number of cylinders for this disk is set to 19432.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
PVS gives me this:
Code:
[root@localhost ~]# pvs /dev/sdb2
  No physical volume label read from /dev/sdb2
  Failed to read physical volume "/dev/sdb2"
 
Old 06-05-2009, 07:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
So apparently he didn't install to the external harddrive but his internal one. That unfortunately is a human error and one no installer can compensate for. Maybe it is one of the reasons installation documents emphasise making backups.

In laymans terms priming a disk before installation means first creating one or more partitions. This alters the partition table. One tool for recovering partition tables based on remnants of partitions is testdisk. After partitioning is complete a filesystem is created. If the partition area already contained another filesystem then formatting basically overlays a mesh-like structure over the existing data. Because files are referenced in the meta-data of the directory being cut off from the filesystem structure means they become orphaned. If files occupy a continguous area or are easily recognisable by a starting and end signature then "file carvers" like photorec, foremost or scalpel can be used to try and recover files. Mucking with live partition data, mounted in read-write mode, is ill-advisable if you have not made a backup. Note that testdisk and photorec both have test and log options. I suggest you do a dry run with both before actually doing anything.
 
Old 06-05-2009, 10:56 PM   #3
the_mulletator
LQ Newbie
 
Registered: Sep 2007
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks!
I used testdisk to create a new partition table and the drive is totally fixed.

I still don't understand how this happened though. It was not human error. He did not get to the point in the install where you choose what drive to install on. The installer crashed before that point. I have installed many different kinds of linux in different ways and never had this happen.

My friend's faith in linux is restored along with his data so this story has a happy ending.
 
Old 06-05-2009, 11:25 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Deleted - it had all been said.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moved OS to new hard drive, now partition info is all messed up. xmrkite Linux - Hardware 4 04-19-2009 10:12 AM
hard drive messed up with dd eddygrinder Slackware 8 03-10-2009 06:51 PM
Hard drive has been messed up by partitioning Battle Bott Linux - Newbie 3 12-14-2006 09:47 PM
Hard Drive Messed Up!! ricky333 Linux - Hardware 5 08-12-2005 10:31 PM
Fedora installer wont recognize hard drive mjl3434 Linux - Newbie 5 01-21-2004 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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