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 09-13-2007, 04:28 PM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel


Hi,

I have got a SATA hard drive with a few distros and an IDE 320GB hard drive
with music, etc.

I was tampering with it too much and now the IDE drive with data is gone

Code:
linux-tree:/home/sycamorex# fdisk /dev/hda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

You must set cylinders.
You can do this from the extra functions menu.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Is there any chance I can restore the partition table and get the access to
my data?
thanks
 
Old 09-13-2007, 05:29 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
Quote:
Originally Posted by sycamorex View Post
I was tampering with it too much
How *exactly* did you do abuse the HD?


Quote:
Originally Posted by sycamorex View Post
Is there any chance I can restore the partition table and get the access to my data?
I'd make a 'dd' backup copy of the IDE disk on another medium, disconnect it and stash it somewhere safe. Then run gpart/testdisk.
 
Old 09-13-2007, 05:43 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
thanks for your reply

I plugged in the third disk, which wasn't recognised, so I started playing with the jumpers and cables. After not being able to see all three disks, I returned to the original arrangement of HDs. However, although the settings (jumpers,cables) are the same I couldn't read the IDE data drive.


well I can't backup the drive, it has over 250GB of data. I downloaded gpart which was supposed to guess the hd partition
table, however it wasn't able to do it because the disk 'is too large'
 
Old 09-14-2007, 01:54 AM   #4
Scroggs79
LQ Newbie
 
Registered: Feb 2006
Location: California
Distribution: Mandriva
Posts: 15

Rep: Reputation: 0
I would boot from a bootable linux CD like knoppix or something.
Then try to mount your partitions. If you can mount them then you can back up
your important data. After getting your data you can run lilo to put back the master boot record.

I did this before and I think I had to do a chroot in order for lilo to work properly.

Don't repartition the drive.

Worse case you can recover important files by file type using a freely available program called photorec.
http://www.cgsecurity.org/wiki/PhotoRec
I used it on a friends disk after he formatted the drive. It recovered all of his pictures
and documents
 
Old 09-15-2007, 02:49 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
thanks, unfortunately, a live cd didn't help, I couldn't mount the drive.
However, I managed to recover some of the files with photorec (good piece of software)
Then I reformatted the drive
 
  


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
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 01:47 AM
Not valid partition table temm Linux - Hardware 5 07-23-2008 04:28 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 02:23 PM
fdisk said my HD didn't have valid partition table??? bombman Linux - Newbie 6 08-28-2006 11:53 AM
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Hardware 1 04-12-2006 07:29 PM

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

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