Article 59HN3 USB port causes data corruption

USB port causes data corruption

by
debianlearner
from LinuxQuestions.org on (#59HN3)
A USB memory stick has been plugged into a USB 3 port for quite a few days. The stick was left there after it was discovered that the kernel does not recognise it (e.g. fdisk - l does not show the stick).

It was decided to unplug the stick. Subsequently the command
cat* /var/log/messages was run and the messages revealed that just before the stick was unplugged, the kernel suddenly found the stick and automatically mounted it to /media/usb0. While the stick was being unplugged, the system performed a 'lazy' unmount from /media/usb0.

The stick was later plugged back into the USB 3 port and the dmesg command issued. The dmesg messages revealed that the stick was probably corrupted due to the lazy unmount.

My question is :-

Why did the kernel suddenly find the stick and automatically mount it just before the stick was unplugged ?latest?d=yIl2AUoC8zA latest?i=xC_3MDPz5jA:gXLD6BdTDOM:F7zBnMy latest?i=xC_3MDPz5jA:gXLD6BdTDOM:V_sGLiP latest?d=qj6IDK7rITs latest?i=xC_3MDPz5jA:gXLD6BdTDOM:gIN9vFwxC_3MDPz5jA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments