Link to home
Start Free TrialLog in
Avatar of sunhux
sunhux

asked on

Redhat Linux USB port can't mount thumb drive anymore after an error


I was copying dozens of log files totalling about 4GB to a thumb drive mounted on
my Linux RHES 4.x box using "cp /etc/httpd/NSC_logs/* /usb/folder/ &"  & after
the background copying is completed (a message popped up to say the backgrd
job is done), I issued "umount /usb"  but I guess just before the umount completes,
I pulled out the thumb drive & on the console, some error messages popped up,
saying "FAT . . . bread . . . IO ..... "

Now, if I plug any thumb drive into the port, dmesg would not show any messages
to say a USB device is detected.

How can I resolve this without rebooting the Linux box?

Let me know if more info is needed
Avatar of csalaski
csalaski

Have you tried it on another nix box?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of noci
A good practice is to use "sync; sync; sync" before unmounting a disk manualy.
Most desktop software allready does that. But do wait with the removal of the drive until the desktop software says so or the umount has been completed after sync...
Avatar of sunhux

ASKER



This thumb drive is still working on my other Redhat Linux boxes.  So problem is
with the USB port on the Linux box, not the thumb drive

The full error from dmesg  :

scsi195 (0:0): rejecting I/O to device being removed
scsi195 (0:0): rejecting I/O to device being removed
scsi195 (0:0): rejecting I/O to device being removed
FAT bread failed in fat_clusters_flush
usb 1-5: new high speed USB device using address 79
scsi196 : SCSI emulation for USB Mass Storage devices



Anything I can do to fix this without rebooting as it's a Prod server?
Avatar of sunhux

ASKER


Is there sort of daemon or service for USB in RHES Linux that I can restart?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunhux

ASKER


But the FAT32 thumb drive is accessible on other Redhat linux USB ports & my Windows.

Anyway chkdsk gave:
The type of the file system is FAT32.
Volume Serial Number is C031-EDAC
Windows is verifying files and folders...
The size of the \ss\access-xxxxxx_log_20100829.log entry is not valid.
\ss\access-xxxxxxx_log_20100830.log  first allocation unit is not valid. The e
ntry will be truncated.
\ss\access-xxxxxxt_log_20100831.log  first allocation unit is not valid. The e
ntry will be truncated.


& I've just run "chkdsk/F thumbdrv:" & finished the corrections but still got the same
error on that server's USB port.  With other RHES USB port, it's Ok
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial