LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-28-2003, 01:47 PM   #1
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Rep: Reputation: 30
I/O Errors


Ok i want to thank everyone for helping me with my p1 233 box well now i have a problem with my other RH9 linux box.

The problem is random. Whenver the server feels like it wants to do this it does it could be 1 day could be 2 days or it could do it after 20 min the machine is up. I have the server setup to go into the text login so no one will mess with it but some times without anyone messing with it, it starts doing "I/O Error Sector #####. It keeps doing this until i reboot the system. I can hit <enter> on the keyboard and it will go back to its server login:
but then about 1 or 2 seconds it starts doing it again.

"I/O Error Sector #####
"I/O Error Sector #####
"I/O Error Sector #####

it kinda looks like that but with #s where the # are.

I remember last time this happend i checked my HDD with ibms hard drive checker thing and it was bad. I checked this HDD and it checks out good check out good. This has happend several times and every time the hdd checks good. My cuz says that this happens when the computer is not shut down properly and that i will have to reformat the drive and install RH9 again. Would me partitioning my drive as just one big drive cause this. Would partitioning my drive into /boot and / stop this? I remember the last time that i did this my /boot drive got filled up and i couldnt get into the gui would say something like not enough allocated space for Gui to start or something like that.
 
Old 06-28-2003, 01:53 PM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Before anything happens, see what your partition table is, again with fdisk 'p'. You could check your drive from within your linux box with:

Code:
# fsck
Here's what the help from the command fsck.ext3 gives:
Code:
[root@Thetargos gianni]# fsck --help
fsck 1.32 (09-Nov-2002)
fsck.ext3: invalid option -- h
Usage: fsck.ext3 [-panyrcdfvstDFSV] [-b superblock] [-B blocksize]
                [-I inode_buffer_blocks] [-P process_inode_size]
                [-l|-L bad_blocks_file] [-C fd] [-j ext-journal]
                [-E extended-options] device
 
Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external-journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
I'd simply do
[code]
# fsck -cfv /dev/hda[1,2,3...n]
[/code

Last edited by Thetargos; 06-28-2003 at 01:55 PM.
 
Old 06-28-2003, 02:02 PM   #3
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Thetargos
Before anything happens, see what your partition table is, again with fdisk 'p'. You could check your drive from within your linux box with:

Code:
# fsck
Here's what the help from the command fsck.ext3 gives:
Code:
[root@Thetargos gianni]# fsck --help
fsck 1.32 (09-Nov-2002)
fsck.ext3: invalid option -- h
Usage: fsck.ext3 [-panyrcdfvstDFSV] [-b superblock] [-B blocksize]
                [-I inode_buffer_blocks] [-P process_inode_size]
                [-l|-L bad_blocks_file] [-C fd] [-j ext-journal]
                [-E extended-options] device
 
Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external-journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
I'd simply do
[code]
# fsck -cfv /dev/hda[1,2,3...n]
[/code
i was going to run that fsck -cfv /dev/hda1 but it says running e2fschk on a mounted filesystem may cause SEVERE filesystem damge
Do you really want to continue (y/n)?

i am guessing this wont hurt anything will it?
 
Old 06-28-2003, 02:09 PM   #4
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Indeed it could... Just reboot and do so from the rescue console. (linux rescue booting with the CD1)
 
Old 06-28-2003, 03:20 PM   #5
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Thetargos
Indeed it could... Just reboot and do so from the rescue console. (linux rescue booting with the CD1)
ok i checked it and it said 0 bad blocks i wasnt real sure what to look for so i might have to run it again.
 
Old 06-28-2003, 04:08 PM   #6
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Didn't that solved the problem, are still getting those annoying bad sectors??
 
Old 06-28-2003, 05:06 PM   #7
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Thetargos
Didn't that solved the problem, are still getting those annoying bad sectors??
lol oh i didnt know that that was supposed to fix the problem . i'm not sure if it fixed it or not i will have to wait and see. What would cause it to do that any how?
 
Old 06-28-2003, 05:12 PM   #8
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
As in windows, the problem may be cuased by a bad shudt down (the actual reading needle in the disk may damage the formatted sectors). An energy problem, impact, hardware that soon will no longer function (lifetime limit), etc.
 
  


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
need help with errors menthegnome Linux - Newbie 6 11-16-2005 04:26 PM
QT errors filburt1 Linux - Software 3 03-17-2004 02:16 PM
Errors during filesystem check with one kernel while no errors with other kernel Potentials Linux - General 11 12-30-2003 05:24 AM
QMAIL errors errors.. YourForum Linux - Software 0 11-27-2003 01:30 PM
2 many errors wesley Linux - Newbie 1 08-03-2001 12:42 AM


All times are GMT -5. The time now is 03:10 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration