LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-23-2007, 09:10 PM   #1
dmm1673
LQ Newbie
 
Registered: Nov 2006
Location: Chicago, IL
Distribution: Debian Sarge
Posts: 4

Rep: Reputation: 0
MBR Problems and Using Linux to Recover external Hard Drives


I have a situation. I have an external hard drive that is used strictly for media storage. It is a 250GB Lacie Porshe USB drive. Recently it is no longer accessible in windows. It is detected, but viewed as an unformatted disk. I have tried running the SystemRecoveryCD and have found that there are errors in the BootSector. I am a noob at this and don't want to go writing new MBR or anything because I'm afraid of making the disk further inaccessible. When booting to the SystemRecoveryCD using the TestDisk and Gparted application, I can see my drive listed at /dev/sda however it shows up as an unknown filesystem. It is a FAT32 system. I ran FDisk from terminal and this is what it shows:
Disk /dev/sda: 250.0 GB, 250059350016 Bytes
255 Heads, 63 sectors/trac, 30401 cylinders
Units= cylinders of 16065*512 = 8225280 butes
Device Boot Start End Blocks ID System
/dev/sda1 * 1 30401 244196001 c W95 FAT32 (LBA)

I've also tried mounting the disk on Knoppix when booting via livecd and was unable to mount the disk.
When running Testdisk on analyze, it has a read error at 0/1/7 (lba=69)

I have Window's XP and Debian and if I can't recover the drive would like to just be able to copy the directories to another external drive but don't know how to go about it.

I know I'm probably not covering all the necessary information, but if theres anything further that would help let me know.
Thanks

Last edited by dmm1673; 10-23-2007 at 09:13 PM.
 
Old 10-23-2007, 10:15 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
if you have another drive, bigger than 250 megs, use dd to copy the damaged drive to the good one. then you can use filesystem repair stuff on the new drive to get what you can off of it.
 
Old 10-24-2007, 08:26 AM   #3
dmm1673
LQ Newbie
 
Registered: Nov 2006
Location: Chicago, IL
Distribution: Debian Sarge
Posts: 4

Original Poster
Rep: Reputation: 0
Thread: MBR Problems and Using Linux to Recover external Hard Drives

Quote:
Originally Posted by whansard View Post
if you have another drive, bigger than 250 megs, use dd to copy the damaged drive to the good one. then you can use filesystem repair stuff on the new drive to get what you can off of it.
Should I copy to a new directory in the new drive? Otherwise wouldn't I create the same problem on the new disk? Or is that why I need a disk bigger than the original disk?
 
Old 10-24-2007, 01:41 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
you will be making a duplicate of the old drive, bad data and good data, that you might be able to repair if the drive can be written to without errors. trying to fix the data structures on the bad drive may make things worse.
obviously this will take a crap load of hard drive space and time, and luck, but otherwise the stuff is all gone now anyway.
With all the stuff dd'd to a new drive, you can at least try different ways of fixing things on the new drive without further destroying more data on the original bad drive.

no directory for copying, and yes, that's why the destination drive needs to be bigger. neither the source or destination drive should have any partitions mounted, and the command would be something like # dd if=/dev/sda of=/dev/hdc.
I'm just guessing at the device names.
find and use schily's sdd instead of dd if you want a progress report while copying. he wrote cdrtools also.

Last edited by whansard; 10-24-2007 at 01:49 PM. Reason: forgot something.
 
Old 11-03-2007, 06:44 PM   #5
dmm1673
LQ Newbie
 
Registered: Nov 2006
Location: Chicago, IL
Distribution: Debian Sarge
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by whansard View Post
you will be making a duplicate of the old drive, bad data and good data, that you might be able to repair if the drive can be written to without errors. trying to fix the data structures on the bad drive may make things worse.
obviously this will take a crap load of hard drive space and time, and luck, but otherwise the stuff is all gone now anyway.
With all the stuff dd'd to a new drive, you can at least try different ways of fixing things on the new drive without further destroying more data on the original bad drive.

no directory for copying, and yes, that's why the destination drive needs to be bigger. neither the source or destination drive should have any partitions mounted, and the command would be something like # dd if=/dev/sda of=/dev/hdc.
I'm just guessing at the device names.
find and use schily's sdd instead of dd if you want a progress report while copying. he wrote cdrtools also.
After running dd_rescue /dev/sda /dev/sdb I booted into windows, as the disk was a FAT32 and fdsk appears to work on ext3 filesystems and the drive isn't recognized as It now has the same errors on it. I run chkdsk /r/f and it repairs the errors and the drive works but there is nothing on it. What happened to the data I copied from the failed drive? Does chkdsk erase that when I run it? Sorry, I'm an amateur.
 
  


Reply

Tags
dd, ddrescue, recovery


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
Linux and external hard drives squimmy Linux - Hardware 4 10-17-2006 01:43 PM
how Recover my Hard disk Mbr & partion viji2ks Linux - Hardware 1 09-01-2006 08:25 AM
external hard drives in linux cwl157 Linux - Hardware 1 09-27-2005 08:18 PM
External Hard Drives for Linux vicky4u_hyd Linux - Hardware 18 06-13-2004 08:37 AM
how do i recover my Hard Disk and MBR? Pisces107 Linux - General 5 12-25-2003 11:12 PM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration