[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux1394-devel
Subject:    Running badblocks(8) on a firewire hdd
From:       xsdg <xsdg () freenode ! org>
Date:       2003-10-18 0:45:26
[Download RAW message or body]

Hi all.  I have a firewire hdd which has some bad blocks.  Trying to run
badblocks(8) directly is very frustrating, because each time it encounters
blocks which are bad, sbp2 does something akin to the following:

Oct 18 00:09:43 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:09:43 cpp kernel: 0x28 00 00 aa 77 80 00 00 20 00 
Oct 18 00:10:52 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:10:52 cpp kernel: 0x28 00 00 aa 43 b8 00 00 18 00 
Oct 18 00:19:50 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:19:50 cpp kernel: 0x28 00 00 aa 46 c0 00 00 20 00 
Oct 18 00:21:48 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:21:48 cpp kernel: 0x28 00 00 a9 d3 e0 00 00 20 00 
Oct 18 00:22:43 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:22:43 cpp kernel: 0x28 00 00 b8 01 c0 00 00 20 00 
Oct 18 00:24:10 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:24:10 cpp kernel: 0x28 00 00 da ea a0 00 00 80 00 
Oct 18 00:24:20 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:24:20 cpp kernel: 0x00 00 00 00 00 00 
Oct 18 00:24:20 cpp kernel: ieee1394: sbp2: reset requested
Oct 18 00:24:20 cpp kernel: ieee1394: sbp2: Generating sbp2 fetch agent reset
Oct 18 00:24:30 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:24:30 cpp kernel: 0x00 00 00 00 00 00 
Oct 18 00:24:30 cpp kernel: ieee1394: sbp2: reset requested
Oct 18 00:24:30 cpp kernel: ieee1394: sbp2: Generating sbp2 fetch agent reset
Oct 18 00:24:50 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:24:50 cpp kernel: 0x00 00 00 00 00 00 
Oct 18 00:24:50 cpp kernel: ieee1394: sbp2: reset requested
Oct 18 00:24:50 cpp kernel: ieee1394: sbp2: Generating sbp2 fetch agent reset
Oct 18 00:25:10 cpp kernel: ieee1394: sbp2: aborting sbp2 command
Oct 18 00:25:10 cpp kernel: 0x00 00 00 00 00 00 
Oct 18 00:25:10 cpp kernel: scsi: Device offlined - not ready after error recovery: \
                host 5 channel 0 id 0 lun 0
Oct 18 00:25:10 cpp kernel: SCSI error : <5 0 0 0> return code = 0x6050000
Oct 18 00:25:10 cpp kernel: end_request: I/O error, dev sda, sector 14346912

After this occurs, I have to either unplug and replug the drive, or rmmod and
modprobe sbp2 (in addition to doing ^C on badblocks while it's in the D wait
state so that it doesn't detect all subsequent blocks as being bad).  Is there
any way to make this process less painful than it already is? TIA.

-- 
> In the beginning, there was nothing. and God      |
> said, 'Let there be Light.' And there was still |
> nothing. But, you could see it.                 |
) http://www.cuodan.net/~xsdg/    xsdg@freenode.org (


["signature.asc" (application/pgp-signature)]
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
mailing list linux1394-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic