SCSI / USB errors

Toby Kelsey toby_kelsey at ntlworld.com
Mon Aug 21 14:57:41 UTC 2006


I am getting SCSI errors with an external USB drive (LaCie) when I try to copy
data to it.

 From /var/log/auth.log;
Aug 21 12:41:08 localhost sudo:     toby : TTY=pts/1 ; PWD=/media/backup2 ; 
USER=root ; COMMAND=/bin/cp -a /opt/backup1/incremental-backups .

 From /var/log/syslog:
Aug 21 12:42:56 localhost kernel: [4304186.529000] usb 1-2: reset full speed USB 
device using uhci_hcd and address 3
Aug 21 12:43:15 localhost kernel: [4304202.619000] scsi: Device offlined - not 
ready after error recovery: host 1 channel 0 id 0 lun 0
Aug 21 12:43:15 localhost kernel: [4304202.619000] SCSI error : <1 0 0 0> return 
code = 0x50000
Aug 21 12:43:15 localhost kernel: [4304202.619000] end_request: I/O error, dev 
sdb, sector 4203447
Aug 21 12:43:15 localhost kernel: [4304202.619000] scsi1 (0:0): rejecting I/O to 
offline device
Aug 21 12:43:15 localhost last message repeated 2 times
Aug 21 12:43:15 localhost kernel: [4304202.619000] metapage_read_end_io: I/O error
Aug 21 12:43:15 localhost kernel: [4304202.622000] scsi1 (0:0): rejecting I/O to 
offline deviceperhaps I'll have to downgrade to Hoary.
Aug 21 12:43:15 localhost kernel: [4304202.622000] metapage_read_end_io: I/O error
Aug 21 12:43:15 localhost kernel: [4304202.623000] ERROR: (device sdb1): 
dbAllocNext: Corrupt dmap page
Aug 21 12:43:15 localhost kernel: [4304202.623000] scsi1 (0:0): rejecting I/O to 
offline device
Aug 21 12:43:15 localhost kernel: [4304202.627000] scsi1 (0:0): rejecting I/O to 
offline device
Aug 21 12:43:15 localhost kernel: [4304202.633000] scsi1 (0:0): rejecting I/O to 
offline device
Aug 21 12:43:15 localhost last message repeated 75 times
...

 From my terminal history:
=== snip ===
toby /opt/backup1> cd /media/backup2/
toby /media/backup2> sudo cp -a /opt/backup1/incremental-backups .
Password:
cp: writing `./incremental-backups/var/backup-2006-04-07_10:09:11.tar.gz': 
Input/output error
cp: preserving times for `./incremental-backups/var': Read-only file system
cp: cannot create directory `./incremental-backups/home': Read-only file system
cp: cannot create directory `./incremental-backups/opt': Read-only file system
cp: preserving times for `./incremental-backups': Read-only file system

toby /media/backup2> mount
...
/dev/sdb1 on /media/backup2 type jfs (rw,nosuid,nodev,iocharset=utf8)

toby /media/backup2> sudo mount -o remount,rw /dev/sdb1
mount: /media/backup2 not mounted already, or bad option

toby /media/backup2> cd
toby ~> sudo umount /dev/sdb1
toby ~> sudo mount -t jfs /dev/sdb1 /opt/backup2
mount: /dev/sdb1 is not a valid block device
toby ~> lsusb
Bus 001 Device 003: ID 059f:0351 LaCie, Ltd
Bus 001 Device 002: ID 0dbf:9001 Quik Tech Solutions
Bus 001 Device 001: ID 0000:0000
=== snip ===

Is there a way of getting more detailed error messages for this problem?

I first thought this was just flaky hardware since I am already using an
external USB drive without problems, but the error and circumstances are
suspiciously like
   <https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.12/+bug/27659/>
so does anyone know which kernel version/patch fixes this bug?

It's a while since I've had to compile a custom kernel and I couldn't find a
recommended method for Breezy on the Ubuntu wiki.  The closest guide I found is
<http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian>
(note that I can't upgrade to Dapper due to outstanding critical bugs).

Toby




More information about the ubuntu-users mailing list