LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2006, 03:34 PM   #1
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 322

Rep: Reputation: 30
Issues (ext2_write_inode), down


Out of no where I'm getting these errors:
Code:
EXT2-fs error (device ide0(3,1)): ext2_write_inode: unable to read inode block - inode=442807, block=917510
Some numbers there variate, but that error continues over and over. The entire server is down. What's wrong, and how do I fix this?

I have made no changes to the server for over a month.
 
Old 07-07-2006, 11:53 PM   #2
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Unhappy

Quote:
Originally Posted by Zeno McDohl
Out of no where I'm getting these errors:
Code:
EXT2-fs error (device ide0(3,1)): ext2_write_inode: unable to read inode block - inode=442807, block=917510
Some numbers there variate, but that error continues over and over. The entire server is down. What's wrong, and how do I fix this?

I have made no changes to the server for over a month.
This is very bad. You also likely seeing in your system logs some other complaints from the kernel about communication failures with the disk itself.

There's a pretty good chance that disk is dying. It's probably time to break out smartctl and try the drive's self-tests, or make a backup of everything (actually, make a backup anyway) and grab Ultimate Boot CD to use the manufacturer's testing utilities to try to analyze and/or repair the disk.
 
Old 07-08-2006, 03:36 PM   #3
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 30
Yeah I figured it's very bad. The system can still (partially) boot up.

I really need to figure out how to backup everything. Any suggestions? That's the priority.
 
Old 07-08-2006, 06:28 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
you can boot from an install-cd, or use a live-cd distro to boot.

then mount the disk and save the data to another disk.
after that try to run fsck on that partition. I think you'll need
( at least ) the -c option for bad-block checking.
see "man fsck".

good luck

egag
 
Old 07-08-2006, 08:33 PM   #5
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by Zeno McDohl
Yeah I figured it's very bad. The system can still (partially) boot up.

I really need to figure out how to backup everything. Any suggestions? That's the priority.
Get a bootable CD. Use it to mount a remote NFS or CIFS (windows) filesystem that you can write to with enough space to backup the drive, or plug in a USB drive, or just put the dying drive in another machine that isn't broken (probably simplest/fastest).

Once you've gotten a *working* chassis and this hard drive together, you can use dd to begin a backup, and *hope* for the best. dd won't properly back the thing up without being given a bit of a shove tho'. You'll need to tell it a few special things, aside from just if=/dev/whatever of=/mnt/backupspace/image.img just in case...

ibs=512
obs=512


These set the size of each read and write dd does to 512 bytes, the idea of which is to get exactly one disk sector per pass of the loop. The man page is poorly worded, and it's likely that these are needed separately rather than just bs= which normally would set both at once.)

conv=noerror,notrunc,sync

This bit is important. Without noerror, the first bad block will bring dd to a screetching halt--not useful. I've always put notrunc in for the sake of paranoia, but it might not actually be needed. sync is needed to be sure that if the drive does happen to actually give you a partial read on a sector that it will fill in the output block that will be written with nulls so that it stays the right length of 512 bytes per block. When it finally grumbles to a halt, you're done and you should have an image of the disk. You can then chop it into pieces to turn it into partitions/filesystems that you can mount over the loop device, or just write it straight out to a replacement drive (of the exact same size and geometry). (Yeah you can clone one partition at a time into images, but I prefer not to sit around and wait for each one to complete.)

I would still strongly recommend using the manufacturer's diagnostics tools to at least test the drive electronics' sanity. If it's the cache memory on the hard drive or something that's gone bad, getting a clean image of the drive is going to be a bitch and involve reading each sector multiple times until you've gotten the same answer enough times to feel safe about it.
 
Old 07-08-2006, 09:24 PM   #6
kd5pbo
Member
 
Registered: Jun 2006
Location: Washington, DC, USA
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
It's possibe that the problem is not with the plates of the harddrive, but with its circuit board. If this is the case, you might be able to get an identical harddrive and swap circuit boards. This can be a bit dicey, so don't try it unless everything else won't work, and you've followed evilDagmar's instructions.
 
Old 07-08-2006, 11:11 PM   #7
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 322

Original Poster
Rep: Reputation: 30
Okay, I got a bootable CD and I'm in the command prompt now. fdisk -l lists hda1, hda2, hda5, hda6, hda7, hda8.

I could mount hda1, but the rest I couldn't. 6, 7 and 8 would get a "/dev/hda#: Input/output error" and then say to specify the filesystem type.
 
  


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
iso issues, icewm issues +_+ Linux - Newbie 2 08-23-2005 10:50 AM
X11 TTF Issues; OOo Font Issues Kenji Miyamoto Slackware 2 05-27-2005 06:30 PM
New to linux, so so lost, auto mounting issues, permissions issues slowhand22 Linux - Newbie 2 02-10-2005 09:41 AM
CD-ROM issues, or IDE issues? GAVollink Linux - Hardware 0 10-16-2003 03:04 PM
Sound issues + Mouse wheel issues matt3333 Slackware 2 10-12-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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