Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Retrieving data from crippled hard drive[Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Wed Dec 15, 2004 11:23 pm    Post subject: Retrieving data from crippled hard drive[Solved] Reply with quote

Problem hard drive:
40 GB Seagate Barracuda


title=Tux's World
root (hd0,1)
kernel (hd0,1)/bzImage 2.6.5-gentoo-r1 root=/dev/hda4

title=XP
rootnoverify (hd0)
chainloader (hd0,0)+1

Current fully operational hard drive:
120GB Samsung SpinPoint

title=Tux's World
root (hd0,1)
kernel (hd0,1)/vmlinuz-2.6.9-gentoo-r9 root=/dev/hda4

title=XP
rootnoverify (hd0)
chainloader (hd0,0)+1

on the seagate hdd i have a failed filesystem which won't allow me to boot gentoo. There is data i need to retrieve prior to attempting a repair or having to reinstall.

I have created mount points to gain entry to the hdd partitions which contain the data. I am still unable to retrieve the data from the user account. [/code]
_________________
I've been away for a long time, bear with me.


Last edited by shade266 on Thu Dec 16, 2004 7:19 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Wed Dec 15, 2004 11:34 pm    Post subject: Reply with quote

shade266,

Get the SMART Tools to read the drives embedded defect logs.
If you can't mount any of its partitions, try to copy them to files with the dd command. You can then attempt to mouont the files as if ther were partitions with the -o loop option to mount. You need loop support available to the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Thu Dec 16, 2004 2:57 am    Post subject: Reply with quote

Sounds like a plan. I have found the SMART tools and before utilize the tools i should mention that i can mount
Code:
/dev/hda4
and I fail to mount
Code:
/dev/hda2 (boot)
Also, I can see the files in my root directories but can not find the files in
Code:
/home/my_user
.

While having boot from the livecd I am able to confirm that partition 4 (reiserfs) does mount. But I have been unable to mount ANd view the files located within. Perhaps I am failing to specify the proper mount points and file type in /etc/fstab. I will attempt the advice you mentioned if there are no other suggestions. Thanks.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 325
Location: 39.885° N. -88.913° W.

PostPosted: Thu Dec 16, 2004 4:01 am    Post subject: Reply with quote

Have you gave Knoppix a thought. I just checked my computer with it and can see all of my partitions including the grub files for my boot. If needed you could copy files or edit files from Knoppix. At least I have done that before.
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Thu Dec 16, 2004 4:09 am    Post subject: Reply with quote

tryn, thanks for the response.. i have not utilized knoppix before this. If i do use knoppix where would I save the copied files to? I have roughly 500 files i need copied to my current hdd i am using before i attempt to salvage my gentoo partitions on the other damaged drive.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Thu Dec 16, 2004 6:52 am    Post subject: Reply with quote

tryn.. nm on the question regarding where to save the files to. I see knoppix has the ability to save data to the bootable disk itself. I am finishing up with NeddySeagoon suggested and will follow up with a data verification in the morning. If i have some corrupt files I will implement the knoppix option. thanks again.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Thu Dec 16, 2004 7:19 am    Post subject: Reply with quote

ok.. i lied.. i was not going to sleep without running the data verification. Every single file has been kept intact. I used smartmontools (available through portage), and got a log to review any errors. to my surprise there were no errors and further research reveals my /boot filesystem is not corrupt but is missing the /etc directory... this happened before and I had to copy over a directory from the livecd and manually edit every config file i needed to boot into the correct runlevel and profile.

Anyhow, everything has worked out and again it can only be blamed on me. Thanks for the suggestions and tips.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum