LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-19-2006, 08:24 PM   #1
shmily
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
Help! Is my hard driver savable?


I had a 200G SATA hard driver with Win XP pro. With 3 partitions, 13G(main
WinXP)/70G/120G.

It is below as fdisk -l in linux.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1549 12442311 7 HPFS/NTFS
/dev/sda2 1550 24792 186699397+ f W95 Ext'd (LBA)
/dev/sda5 1550 10201 69497158+ 7 HPFS/NTFS
/dev/sda6 10202 24792 117202176 7 HPFS/NTFS

It is the only hard driver and showed "no system file" in booting.

I tried to connect it in another computer with both SATA and IDE. (with two
IDE hard drivers with dual IO Win XP+Debian Linux). I cannot boot with my
original winXP but linux. In linux, I can mount sda1 and sda6. But when I
try sda5, it is very slow and shows failure finally after about 15 minutes.

"mount -t ntfs -o umask=222 /dev/sda5 /mnt/tempdrive/

mount: wrong fs type, bad option, bad superblock on /dev/sda5,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
"

But I have some important data on this partition. Is there any chance I can
get the data out? How to do it if I can. Thanks.
 
Old 04-19-2006, 08:40 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Depending on what type of files you're trying to recover and what type of failure the drive has, you might be able to use foremost to get things back.

I recently used it to recover 1500 photos and another 50 or so documents from my parents failed hard disk. Pretty sure I didn't get everything, but I got much better than nothing...

Also, if you search these forums, someone wrote a pretty good howto on foremost...

Last edited by pljvaldez; 04-19-2006 at 08:41 PM.
 
Old 04-19-2006, 09:04 PM   #3
shmily
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much. I have installed it. But I do not quite understand how it runs. You do not need to specify the driver to search? I did not see any help on this parameters.

How to make this input *.dd file?
Quote:
Originally Posted by pljvaldez
Depending on what type of files you're trying to recover and what type of failure the drive has, you might be able to use

foremost[/URL] to get things back.

I recently used it to recover 1500 photos and another 50 or so documents from my parents failed hard disk. Pretty sure I didn't get everything, but I got much better than nothing...

Also, if you search these forums, someone wrote a pretty good howto on foremost...
 
Old 04-20-2006, 05:06 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Well, all I did was foremost -v -T -i /dev/hda and it recovered all the builtin filetypes. You'll probably have to do a bit more work to get *.dd files (what are these anyway?).

Here's an article that might help you figure out how to get the headers and footers to put in the /etc/foremost.conf file. And here's the man page. Basically you need to find another dd file and use head and tail to see what characters mark the file length, then put those into the config file.

Last edited by pljvaldez; 04-20-2006 at 05:08 PM.
 
  


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
Lan driver "hard to follow guide" Anoth Fedora 5 03-24-2005 06:33 PM
Sis-AGP + Nvidia Driver + Xorg = Hard Lock iotc247 Linux - Hardware 6 03-04-2005 12:56 PM
hard driver problems?? ..? SciYro Linux - Hardware 2 01-17-2005 07:49 PM
Can the hard disk partition be made independent through driver Change Xcom_Cheetah Programming 4 06-03-2004 09:44 AM
DMA & Slow hard driver performance Stevetgn Linux - Newbie 5 06-24-2003 07:30 PM

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

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