USB hotplugging and data loss....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

I got myself a memory stick yesterday, and was pleasantly supprised when
I plugged it in to my Linux box (FC3) at work and it was immediately
detected and mounted.
I could read / write to it with no problems at all.
So, I took it home with me and did some work last night on my linux (FC3
also) laptop - which I tar/gz'd and saved on my memory stick.
Put the memory stick back in to my work box this morning - and the files
from last night are gone (heh - this is a bit like the 'ole "the dog ate
my homework" excuse isn't it...).
So I played around a bit more with plugging in -> writing -> unplugging
and noticed that sometimes the written files can be seen after plugging
back in, and sometimes they cant.
In terms of sys logs:

Logs for scenario: Remove stick - files lost:

Mar 16 08:06:15 trinity kernel: usb 1-1: USB disconnect, address 4
Mar 16 08:06:15 trinity kernel: scsi1 (0:0): rejecting I/O to device
being removed
Mar 16 08:06:15 trinity kernel: Buffer I/O error on device sdb1, logical
block 1
Mar 16 08:06:15 trinity kernel: lost page write due to I/O error on sdb1
Mar 16 08:06:15 trinity kernel: scsi1 (0:0): rejecting I/O to device
being removed
Mar 16 08:06:16 trinity kernel: Buffer I/O error on device sdb1, logical
block 81
Mar 16 08:06:16 trinity kernel: lost page write due to I/O error on sdb1
Mar 16 08:06:16 trinity kernel: scsi1 (0:0): rejecting I/O to device
being removed
Mar 16 08:06:16 trinity kernel: Buffer I/O error on device sdb1, logical
block 846
Mar 16 08:06:16 trinity kernel: lost page write due to I/O error on sdb1
Mar 16 08:06:16 trinity kernel: scsi1 (0:0): rejecting I/O to device
being removed
Mar 16 08:06:16 trinity kernel: Buffer I/O error on device sdb1, logical
block 1568
Mar 16 08:06:16 trinity kernel: lost page write due to I/O error on sdb1
Mar 16 08:06:16 trinity fstab-sync[14463]: removed mount point
/media/REMOVABLE for /dev/sdb1

Logs for scenario: Remove stick - files retained:

Mar 16 08:12:23 trinity kernel: usb 1-1: USB disconnect, address 6
Mar 16 08:12:23 trinity kernel: scsi3 (0:0): rejecting I/O to dead
device
Mar 16 08:12:23 trinity kernel: FAT bread failed in fat_clusters_flush
Mar 16 08:12:23 trinity kernel: scsi3 (0:0): rejecting I/O to dead
device
Mar 16 08:12:23 trinity kernel: SCSI error: host 3 id 0 lun 0 return
code = 4000000
Mar 16 08:12:23 trinity kernel:         Sense class 0, sense error 0,
extended sense 0
Mar 16 08:12:23 trinity fstab-sync[14967]: removed mount point
/media/REMOVABLE for /dev/sdc1

Does anyone have any idea what the problem could be?
For the moment Im going to have to save -> remove -> re-insert -> check
everytime I want to save something :o)

By the way - here's the log for when I insert the stick:

Mar 16 08:11:30 trinity kernel: usb 1-1: new full speed USB device using
address 6
Mar 16 08:11:30 trinity kernel: scsi3 : SCSI emulation for USB Mass
Storage devices
Mar 16 08:11:30 trinity kernel:   Vendor:           Model: disgo
Rev: 4.90
Mar 16 08:11:30 trinity kernel:   Type:   Direct-Access
ANSI SCSI revision: 02
Mar 16 08:11:30 trinity kernel: Attached scsi removable disk sdc at
scsi3, channel 0, id 0, lun 0
Mar 16 08:11:31 trinity scsi.agent[14786]: disk at
/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host3/3:0:0:0
Mar 16 08:11:34 trinity kernel: SCSI device sdc: 393216 512-byte hdwr
sectors (201 MB)
Mar 16 08:11:34 trinity kernel: sdc: Write Protect is off
Mar 16 08:11:34 trinity kernel: sdc: assuming drive cache: write through
Mar 16 08:11:34 trinity kernel: SCSI device sdc: 393216 512-byte hdwr
sectors (201 MB)
Mar 16 08:11:34 trinity kernel: sdc: Write Protect is off
Mar 16 08:11:34 trinity kernel: sdc: assuming drive cache: write through
Mar 16 08:11:34 trinity kernel:  sdc: sdc1
Mar 16 08:11:35 trinity fstab-sync[14881]: added mount point
/media/REMOVABLE for /dev/sdc1
Mar 16 08:11:35 trinity kernel: SELinux: initialized (dev sdc1, type
vfat), uses genfs_contexts

thanks,

Dave


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux