Re: Problem unplugging a USB drive

2020-10-26 Thread Mick Ab
The automatic mount and unmount were performed by the USB mount system. The stick was newish and hasn't been previously written to. The stick's filesystem is FAT32, in common with most USB sticks. The auto mount command included the -tvfat option. I got the message that you frequently see, so i

Re: Problem unplugging a USB drive

2020-10-26 Thread David Wright
On Mon 26 Oct 2020 at 17:09:17 (+), Mick Ab wrote: > > > > > […] the messages revealed that just before > > > > > the stick was unplugged, the kernel suddenly found the stick and > > > > > automatically mounted it to /media/usb0. > Why did the kernel automatically mount the stick ? >From the

Re: Problem unplugging a USB drive

2020-10-26 Thread Stefan Monnier
> Why did the kernel automatically mount the stick ? FWIW, I'm pretty sure the kernel didn't: the only partition mounted directly by the kernel is the root partition when booting. After that, partitions are only booted upon explicit request from some program (could be something part of udev or sy

Re: Problem unplugging a USB drive

2020-10-26 Thread Mick Ab
Why did the kernel automatically mount the stick ? Usually mounts have to be made manually for this port. On 26 Oct 2020 15:24, "David Wright" wrote: > On Mon 26 Oct 2020 at 13:56:36 (+), Curt wrote: > > On 2020-10-26, Joe wrote: > > > > > > When you say 'just before', are you talking milli

Re: Problem unplugging a USB drive

2020-10-26 Thread David Wright
On Mon 26 Oct 2020 at 13:56:36 (+), Curt wrote: > On 2020-10-26, Joe wrote: > > > > When you say 'just before', are you talking milliseconds or minutes? > > > > USB 'plugs' are appalling, and I've known sticks to be unrecognised, but > > found after wiggling the device slightly. > > > > I hav

Re: Problem unplugging a USB drive

2020-10-26 Thread Curt
On 2020-10-26, Joe wrote: > > When you say 'just before', are you talking milliseconds or minutes? > > USB 'plugs' are appalling, and I've known sticks to be unrecognised, but > found after wiggling the device slightly. > I have a USB port like that; it's fickle. But I only actually realized or p

Re: Problem unplugging a USB drive

2020-10-26 Thread Joe
On Mon, 26 Oct 2020 12:08:11 + Mick Ab wrote: > 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 st

Problem unplugging a USB drive

2020-10-26 Thread Mick Ab
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 a