LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-15-2018, 08:43 PM   #1
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Rep: Reputation: 18
Mint USB An operation is already pending


This started happening, I think, after an upgrade.

If I reboot, login and insert a USB stick it does not mount although it used to.
Using the file manager the USB appears in "Computer" but clicking on the USB entry produces a window alert "An operation is already pending"

The aberant USB works on other linux machines and other USBs that work elsewhere also fail to work as well so this is an OS problem.

Code:
blkid
/dev/sdb1: LABEL="USB DISK" UUID="79D0-5F8F" TYPE="vfat" PARTUUID="797cd3d3-01"

Can mount (as root) using a mount command
Code:
mount /dev/sdb1 usbmnt
dmesg shows this;
[11321.824899] scsi host7: usb-storage 3-2:1.0
[11322.846085] scsi 7:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 6
[11322.846308] sd 7:0:0:0: Attached scsi generic sg2 type 0
[11323.480419] sd 7:0:0:0: [sdb] 15122432 512-byte logical blocks: (7.74 GB/7.21 GiB)
[11323.481249] sd 7:0:0:0: [sdb] Write Protect is off
[11323.481251] sd 7:0:0:0: [sdb] Mode Sense: 23 00 00 00
[11323.481999] sd 7:0:0:0: [sdb] No Caching mode page found
[11323.482005] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[11323.485840] sdb: sdb1
[11323.488377] sd 7:0:0:0: [sdb] Attached SCSI removable disk

Forums show this is a common problem for Mint and Ubuntu but solutions mostly seem to involve the problem suddenly disappearing. One solution proposes disabling automount. Which I would rather not do.

Anyone else encountered this?
 
Old 11-15-2018, 10:02 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by keirvt View Post
The aberant USB works on other linux machines and other USBs that work elsewhere also fail to work as well so this is an OS problem.
It might also be a machine problem. I assume you've tried using all the different USB ports on the machine, so your next move may be to try booting off a live install media (preferably DVD) of a fresh copy of the same distro and see if that subsequently successfully mounts the USB device when inserted.
 
Old 11-16-2018, 04:09 PM   #3
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
USB drives

Did check all of the USB inputs and none work. However. I tried a fresh reboot logged in, then USB suddenly worked. I correctly unmounted but some time later (starting to think all had fixed itself) it started hfiling to mount again with the "operation pending error". Its as though something gets mounted but fails to unmount but even if a USB is not unmounted the OS should still mount new USB drives.

The USB keyboard and mouse works.

I can try booting a dist CD but I imagine that a new OS will work. I don't really want to do a fresh install. The problem is to find how to fix the current OS.
 
Old 11-16-2018, 04:35 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by keirvt View Post
Did check all of the USB inputs and none work. However. I tried a fresh reboot logged in, then USB suddenly worked. I correctly unmounted but some time later (starting to think all had fixed itself) it started hfiling to mount again with the "operation pending error". Its as though something gets mounted but fails to unmount but even if a USB is not unmounted the OS should still mount new USB drives.

The USB keyboard and mouse works.

I can try booting a dist CD but I imagine that a new OS will work. I don't really want to do a fresh install. The problem is to find how to fix the current OS.
Sorry if I didn't get my meaning across correctly. I didn't intend that you do a fresh install, just try to mount your USB device using a live version of your distro - if it still doesn't work then the machine *may* be at fault rather than the distro.
 
Old 11-17-2018, 01:29 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
please have a good look at this search and specify which situation applies to you best.
 
Old 11-18-2018, 02:58 PM   #6
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
Searching

Yes I have looked carefully at such searches previously. After not finding a satisfactory answer I come to linuxquestions.

Some solutions require disabling automount and sometimes referring to an internal hard drive rather than a USB mount. Disabling auto-mount will mean any use will have to manually mount a USB or drive and then they'll start saying "this is no problem in Windows"

This problem seem related to a Mint upgrade and possibly a switch by the OS maintainers to another USB handling system.
 
Old 11-18-2018, 04:09 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by keirvt View Post
This started happening, I think, after an upgrade.

If I reboot, login and insert a USB stick it does not mount although it used to.
Using the file manager the USB appears in "Computer" but clicking on the USB entry produces a window alert "An operation is already pending"

The aberant USB works on other linux machines and other USBs that work elsewhere also fail to work as well so this is an OS problem.

Code:
blkid
/dev/sdb1: LABEL="USB DISK" UUID="79D0-5F8F" TYPE="vfat" PARTUUID="797cd3d3-01"

Can mount (as root) using a mount command
Code:
mount /dev/sdb1 usbmnt
dmesg shows this;
[11321.824899] scsi host7: usb-storage 3-2:1.0
[11322.846085] scsi 7:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 6
[11322.846308] sd 7:0:0:0: Attached scsi generic sg2 type 0
[11323.480419] sd 7:0:0:0: [sdb] 15122432 512-byte logical blocks: (7.74 GB/7.21 GiB)
[11323.481249] sd 7:0:0:0: [sdb] Write Protect is off
[11323.481251] sd 7:0:0:0: [sdb] Mode Sense: 23 00 00 00
[11323.481999] sd 7:0:0:0: [sdb] No Caching mode page found
[11323.482005] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[11323.485840] sdb: sdb1
[11323.488377] sd 7:0:0:0: [sdb] Attached SCSI removable disk

Forums show this is a common problem for Mint and Ubuntu but solutions mostly seem to involve the problem suddenly disappearing. One solution proposes disabling automount. Which I would rather not do.

Anyone else encountered this?
I get that too sometimes, when I have a fm open plug in then click on it before the fm has a chance to fully mount it, it gives me that message. I'm working on it yo!
I just wait a moment and no worries, it's mounted.

Last edited by BW-userx; 11-18-2018 at 04:10 PM.
 
Old 11-20-2018, 03:57 PM   #8
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
Cludge Solution

The file /var/syslog complains the USB does not have a label - although it does.
It can't deduce a mount point, presumably using the disk label.

I manually mounted the USB
Code:
mount /dev/sdb1 /media/mymount
By some miracle I tried putting in a second USB that normally fails and to my surprise it automounts.
The solution then is to leave a dummy USB in place although i found you can pull it out and it doesn't unmount and then any other USBs do mount okay.

My OS is
NAME="Linux Mint"
VERSION="19 (Tara)"
but other forum groups indicate this problem is common and comes about after an upgrade.
Hopefully Mint will bring out an upgrade that will cure the problem but for the meantime this cludge will do
 
Old 11-21-2018, 03:14 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by keirvt View Post
I manually mounted the USB
Code:
mount /dev/sdb1 /media/mymount
people have reported problems when manually mounting into one of the directories reserved by whichever daemon takes care of these things.
in other words: don't mess around in /media, /run/media etc.
 
Old 09-17-2019, 10:46 AM   #10
farside268
LQ Newbie
 
Registered: Aug 2003
Distribution: Linux Mint
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by keirvt View Post

By some miracle I tried putting in a second USB that normally fails and to my surprise it automounts.
The solution then is to leave a dummy USB in place although i found you can pull it out and it doesn't unmount and then any other USBs do mount okay.
I'm sorry, but this isn't a solution. It's a workaround. I've been having this same problem for some time, and it's very frustrating that it hasn't been fixed.
 
Old 09-18-2019, 05:06 PM   #11
keirvt
Member
 
Registered: Sep 2006
Location: Sydney Australia
Distribution: fedora/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 18
Work Around

I completely agree with farside268.

My machine is a server/desktop and I have naive users plugging in USBs for system processing.
Expecting them to su to root and do a mount is not on. I have set up Filezilla on their Windows desktops and an ftp server on the server.

Curiously I have other Mint installations on other machines and the auto USB mount is okay.
I could do a new system install but the server is growing in importance and a radical system change would be time consuming and interrupt services. Hopefully someone will identify something I have missed.
 
  


Reply

Tags
mint, mount, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to clear "pending operation" for USB port Rampant Linux - General 3 10-12-2017 02:17 PM
SIOCSIFFLAGS: Operation not permitted SIOCSIFFLAGS: Operation not permitted sushan1982 Linux - Wireless Networking 1 01-01-2012 08:04 PM
DBus Error org.gtk.Private.RemoteVolumeMonitor.Failed:An operation is already pending SHENGTON Linux - Newbie 1 05-11-2011 04:30 AM
Operation already in progress(114) cybil001 Programming 3 02-21-2007 06:25 AM
smbmount stopped working (operation already in progress) jeffbarish Linux - Networking 2 10-22-2004 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration