LinuxQuestions.org
Review your favorite Linux distribution.
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 02-01-2006, 07:31 PM   #1
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Rep: Reputation: 15
file_name : input/output error ........ ?????


Could you help me understand and resolve my problem ...
I have attached some error message on "/var/log/message"

When I execute "ls -ls" on some folder, there is some error "input/Output error".

$ ls -ls
ls: file1.php: Input/Output error
ls: file2.html: Input/Output error
ls: file3.php: Input/Output error

How do I check and repair this files ??


********************************
message on "/var/log/message"
********************************

Feb 2 10:26:31 hostname kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Feb 2 10:26:31 hostname kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=48423069, high=2, low=14868637, sector=47186064
Feb 2 10:26:31 hostname kernel: end_request: I/O error, dev 03:03 (hda), sector 47186064
Feb 2 10:26:31 hostname kernel: EXT3-fs error (device ide0(3,3)): ext3_get_inode_loc: unable to read inode block - inode=2943761, block=5898258
Feb 2 10:26:31 hostname kernel: EXT3-fs error (device ide0(3,3)) in ext3_reserve_inode_write: IO failure

Feb 2 10:27:20 hostname kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Feb 2 10:27:20 hostname kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=48423069, high=2, low=14868637, sector=47186064
Feb 2 10:27:20 hostname kernel: end_request: I/O error, dev 03:03 (hda), sector 47186064
Feb 2 10:27:20 hostname kernel: EXT3-fs error (device ide0(3,3)): ext3_get_inode_loc: unable to read inode block - inode=2943773, block=5898258
Feb 2 10:27:20 hostname kernel: EXT3-fs error (device ide0(3,3)) in ext3_reserve_inode_write: IO failure

*******************

Last edited by ERBRMN; 02-01-2006 at 07:35 PM.
 
Old 02-01-2006, 07:50 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Those messages most often indicate a hardware failure of some sort. Most cases turn out to be a loose or bad cable, but it could also be indicative of a bad hard drive or IDE controller.
 
Old 02-01-2006, 07:58 PM   #3
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Matir
Those messages most often indicate a hardware failure of some sort. Most cases turn out to be a loose or bad cable, but it could also be indicative of a bad hard drive or IDE controller.

Server is good server, but hard disk is IDE and I could not say that it is good or not. But until today, it was not any problems.

What can I do? Is there any tools for check and repair it?
 
Old 02-01-2006, 09:22 PM   #4
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
I had similar problem before, exactly the same log messages, my HD is a Maxtor's DiamondMax ATA, I downloaded Maxtor's powermax utility to test the drive and got a failure report. You'd better to backup your important data as soon as possible.
 
Old 02-01-2006, 10:25 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I've seen those errors about 4 times before, and only once was it the drive. The remaining times it was bad or out of spec cables.
 
Old 02-01-2006, 11:06 PM   #6
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
I have seen the file which on bad block on my hard disk, and I could not delete or repair it. Is there any tools or something to delete or repair it.
I tryed "rm" , but it could not delete input/output error files.

What can I do ? pleaseeeeees help .....


$ ls -ls
ls: file1.php: Input/Output error
ls: file2.html: Input/Output error
ls: file3.php: Input/Output error

I want to delete the files. How ????

Last edited by ERBRMN; 02-01-2006 at 11:08 PM.
 
Old 02-01-2006, 11:13 PM   #7
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
As Matir suggested, check the cables. Make sure that they are not loose.

Also, try running fsck. You will need to reboot into single user mode, and then run fsck. Hopefully, this will report and fix any errors. Alternativly, reboot using
Code:
shutdown -F -r now
as root. This will force the system to do a fsck when it restarts.

I hope this helps
--Ian

Last edited by IBall; 02-01-2006 at 11:23 PM.
 
Old 02-01-2006, 11:19 PM   #8
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IBall
As Matir suggested, check the cables. Make sure that they are not loose.

Also, try running fsck. You will need to reboot into single user mode, and then run fdisk. Hopefully, this will report and fix any errors.

I hope this helps
--Ian
I have checked the cables and other. But there was not problems.

When I reboot , and startup process is execute and checking root, and about on 42% it will not go and I must single user mode.
Ok, I will try fsck and fdisk.

I searching some tools check and repair bad block on hard.
 
Old 02-01-2006, 11:24 PM   #9
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Sorry, I meant boot into single user mode, and run fsck, not fdisk. fdisk was a typo

--ian
 
Old 02-01-2006, 11:25 PM   #10
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IBall
Sorry, I meant boot into single user mode, and run fsck, not fdisk. fdisk was a typo

--ian
OK, thank u IBall.

You know about command "badblocks" on linux ?
 
Old 02-02-2006, 12:20 AM   #11
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
See This website.

Use this command (It is not recomended to use badblocks directly)
Code:
e2fsck -c -c -C /dev/hda1
Assuming that hda1 is the faulty hard disk.

You will need to use a rescue CD to do this though. If you are using Fedora, the first install cd can be used for this. Boot from the CD, and then type "linux rescue" at the prompt.

I hope this helps
--Ian
 
Old 02-03-2006, 01:13 AM   #12
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IBall
See This website.

Use this command (It is not recomended to use badblocks directly)
Code:
e2fsck -c -c -C /dev/hda1
Assuming that hda1 is the faulty hard disk.

You will need to use a rescue CD to do this though. If you are using Fedora, the first install cd can be used for this. Boot from the CD, and then type "linux rescue" at the prompt.

I hope this helps
--Ian
Thks IBall

I could not do anything, because, I have not time, my client was waiting, and I install new OS other hard disk. But I have old one, so i will try, when i have a time, Thk u very much for advice.
 
  


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
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM
Input/Output Error lwcangus Linux - Software 0 02-06-2005 08:59 PM
what is input output error? paschim Linux - Newbie 2 10-24-2004 05:53 PM
cd input/output error jamaso Slackware 10 10-03-2003 06:27 PM

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

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