LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2007, 10:31 PM   #1
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
File system inode hardware block


I have a friend whose win32 laptop died recently. It would boot, and even get to the windows pre-login splash screen. However, before any login prompt would load, the computer would restart.

The Geek Squad told her that she would need to buy a new computer, as it was just dead. A quick linux live-cd proved to me that in fact the computer would boot fine off of the CD. A bit more testing showed that a different laptop hard drive (from my linux laptop) worked fine. I assumed the hard disk was going and started to ddrescue the data off it. Sure enough I hit IO errors within the first GB.

So my question is this: I have in the ddrescue log the exact hardware blocks of the damage, which ddrescue replaced with 0's. So, is there any way to reverse look-up the file names? Since I have a laptop win WinXP SP2 (just kept for warranty reasons), I figured I would try to use my copy of those files. Not a perfect solution, but she has no install disc so her only other option is to buy a new copy of XP if she can find it, or buy Vista, and we are both broke college kids who can't afford that! :-)

I know that when I stat a file, I get the inode. Is there any relationship between the file system inode and the hard disc block?

Oh and PS, is Geek Squad incompetent everywhere, or just here? I swear I've heard no fewer than 8 stories of how they screw up peoples' PC's and never one about their fixing something.
 
Old 08-24-2007, 12:00 AM   #2
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
have you tried to dd the bad drive to a good drive? I just dd one of my mail server drive which have a few bad sectors to a brand new drive. After few hours of waiting I was able to boot my system up with the new drive without losing anything at all. ddrescue will do the same thing. if your friend is missing her XP CD. You can go here www.demonoid.com and download the iso for XP then burn it to a CD. Make sure you download the right version of XP (Home or Professionals)&(OEM or Full version).
 
Old 08-24-2007, 07:08 AM   #3
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Oh yes, the drive has already been dd'ed over. However, ddrescue filled the 4Kb of damage in with 0's, and I know what hardware blocks those zeros are at, now I need to find the filenames so I can replace them.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic-not syncing unable to mount the root file system on unknown block(0,0) cybersrin Linux - Hardware 2 08-14-2007 12:00 AM
regarding file system block size rajesh_b Programming 0 03-23-2006 11:31 PM
How can I format my ext3 partition to use 1024 byte blocks and 1 inode per block? abefroman Linux - Hardware 1 11-26-2005 11:01 PM
How to determine file system block size? provo1234 Linux - Newbie 2 02-14-2005 09:30 AM
How to repair File System Error - unattached inode 37138 ch.keller Linux - Software 1 07-21-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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