fsck output: Please translate

fsck output: Please translate

Post by Wart » Wed, 11 Jun 1997 04:00:00



I am getting some error messages when running fsck on my
"new" hard drive.  Can anyone tell me what it means and what
I can do to correct it?  Are there any restrictions on how the
hard drive can be partitioned which would cause these errors?

Background:

I bought a Maxtor 2.6 Gb hard drive about 5 months ago and
was using it as 2 Win95 drives until recently.  I decided
that I could use some of that space as a Linux partition
since I was getting down to 12 Mb free on my other Linux
partition (/dev/hda3).  So, i backed up everything that was on
the disk and repartitioned it.  Here is how the partitions ended
up:

device  boot    begin   start   end     blocks  id      system
/dev/hdb1       2       2       382     1536192 5       extended
/dev/hdb2       383     383     460     314496  83      linux native
/dev/hdb3       461     461     655     786240  83      linux native
/dev/hdb5       2       2       382     1536160+ 6      Dos 16bit >= 32M

I then rebooted and ran "mkfs -t ext2 /devb/hdb2" and "mkfs -t ext2
/dev/hdb3" which ran with no trouble.  I rebooted again and fsck
reported errors on /dev/hdb3.  The error messages follow.  What causes
them?

read_intr  status=0x59 { DriveReady SeekComplete DataRequest Error}
read_intr  status=0x40 { Unrecoverable Error} Lbase ct = 5249589 Sector
= 1540149
End_Request:  i/o error dev 03:43 Sector 1540149

And another that read like:

Error reading block nnnnnnn (Attempt to read block from filesystem
resulted in short read) while doing scan

--Wart

 
 
 

fsck output: Please translate

Post by Frank Sweetse » Thu, 12 Jun 1997 04:00:00



> I then rebooted and ran "mkfs -t ext2 /devb/hdb2" and "mkfs -t ext2
> /dev/hdb3" which ran with no trouble.  I rebooted again and fsck
> reported errors on /dev/hdb3.  The error messages follow.  What causes
> them?

> read_intr  status=0x59 { DriveReady SeekComplete DataRequest Error}
> read_intr  status=0x40 { Unrecoverable Error} Lbase ct = 5249589 Sector
> = 1540149
> End_Request:  i/o error dev 03:43 Sector 1540149

Hm... sounds like bad blocks.  Try running
badblocks -o blocklist -v -w /dev/hdb3

to perform a thorough surface scan of the entire disk.  If it comes up with
bad blocks, you can just do 'mke2fs -l blocklist /dev/hdb3' to tell mkfs to
skip those blocks.

*WARNING* this will completely destroy any and all data on hdb3, so make
sure nothing's on there that you need first!!!

--
Windows: I can play Doom!               |RedHat Linux 2.0.30 i486
Linux: I can be a file server, be a Web |Because reboots are for upgrades!

twelve terminals AND play Doom!         |for pgp key.        frank sweetser

 
 
 

fsck output: Please translate

Post by Jim Buchan » Thu, 12 Jun 1997 04:00:00


: I bought a Maxtor 2.6 Gb hard drive about 5 months ago and
[...]
: /dev/hdb3" which ran with no trouble.  I rebooted again and fsck
: reported errors on /dev/hdb3.  The error messages follow.  What causes
: them?
:
: read_intr  status=0x59 { DriveReady SeekComplete DataRequest Error}
: read_intr  status=0x40 { Unrecoverable Error} Lbase ct = 5249589 Sector
: = 1540149
: End_Request:  i/o error dev 03:43 Sector 1540149
:
: And another that read like:
:
: Error reading block nnnnnnn (Attempt to read block from filesystem
: resulted in short read) while doing scan

The good news is that I've got the same drive and have seen the same
errors when running fsck immediately after mkfs. So far, I've never had
any trouble running Linux on this drive, and it's never generated this
error while in actual use. It has not generated this error while
running fsck since the first time.

I've been using it for a few weeks now.

I did find that with this disk, I do have to reboot the machine
immediately after running fdisk (as it suggests when it shuts
down). I've always gotten by w/o this before, but I couldn't
successfully run mkfs until I paid attention to this message.

The bad news is that I had a Western Digital 1.6G drive was giving
very similar looking errors in /var/logs/kernel_messages for about a
week, then it crashed totally and I can't even run fdisk on it. Thank
goodness for good backups.


=================== http://www.iquest.net/~jbuchana ======================
"Remember that if computers are networked, they can talk to each other.
 That is useful when you make an example of one." -ASR faq
==================== http://hybiss.delcoelect.com ========================

 
 
 

1. Outputting to a log file and translating output

I want to output a command to a specific log and somehow with in that log
for a certain event that happens with in it send a email out. This is what I
have I was wondering since I am new to bash what areas I need to address.
Also I would like to be able to either
A.     Run this script against a ip address or a ip list or list of commands
. And if List how would list look like just a normal list of ips separated
by returns?
This is part of my script I have so far. Keep in mind I am new to the bash
process.

#!/bin/bash
#This is script to run snmpget on remote adtrans ip list and sends it to
/var/log/snmp.log
#Developed by Shane
#Network Surveillance
#ipaddr=/tmp/ip.list this is a attempt to do a ip list instead of inputing
specific ips in script
date
echo "Waiting 60 seconds before next command takes place..."
#snmpwalk -v 1 -c public 172.18.60.246:161 1.3.6.1.4.1.664.2.444.1.1.1.1.1 >
/var/log/snmp.log
echo `snmpwalk -v 1 -c public "$ipaddr"`
exit 0

B. Once the output hits the log it will look like this
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.4 = INTEGER: 2
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.5 = INTEGER: 2
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.6 = INTEGER: 2
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.7 = INTEGER: 3
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.8 = INTEGER: 3
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.9 = INTEGER: 4
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.10 = INTEGER: 4
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.11 = INTEGER: 5
SNMPv2-SMI::enterprises.664.2.444.1.1.3.1.6.12 = INTEGER: 1

This is the output to the log I would like to send a email if lets say in
instance integer changes from 1 .

Any pointers to the certain things I need to learn or examples similiar or
anything to help me in this would be greatly appreciated. Thanks in advanced

2. How to read utmp and wtmp logs

3. fsck fsck fsck say I

4. Term and ELF?

5. Find VMS file size in KornScript

6. Translate (i)pppd hex output to ascii

7. serial device assistance.

8. fsck Output = Is my disk going bad?

9. kernel panic - please translate/advise

10. Help with tr (translate) please!!

11. fsck Command Output

12. kernel panic - please translate/advise