LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-05-2019, 04:25 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,977

Rep: Reputation: 271Reputation: 271Reputation: 271
filesystem was unmounted, but failed to update userspace mount table.


Code:
 umount /usb2
returns:
Quote:
umount: /usb2: filesystem was unmounted, but failed to update userspace mount table.
for a USB drive that seems to be okay otherwise. I successfully wrote to the drive before this occurred.

Later: I built kernel 5.3.9 then re-booted. During shutdown I got this same error for everything, even shm and devtmpfs. I don't know how to make sense of this.

Last edited by RandomTroll; 11-06-2019 at 09:46 AM. Reason: New information
 
Old 11-06-2019, 10:35 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,157
Blog Entries: 6

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
Is that /usb2 or should that be ~/usb2. Is that a dir under root or home?

I don't know. Show output of df -h and mount
Also your fstab. Maybe someone will see something.
 
Old 11-06-2019, 05:16 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,977

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by teckk View Post
Is that /usb2 or should that be ~/usb2. Is that a dir under root or home?
No.

Quote:
Originally Posted by teckk View Post
I don't know. Show output of df -h and mount
Also your fstab. Maybe someone will see something.
df and mount don't list /usb. fstab is irrelevant. When I have this problem, an orphan mtab entry sometimes persists, but clearing it makes no difference. Rebooting cleared it, but it's popped up a few times in the past. I had assumed it was a hardware problem, but when it happens to virtual filesystems - I don't know how to make sense of that.
 
Old 11-07-2019, 03:30 PM   #4
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Just a few thing that I would consider if I were in your shoes:
It is not some permission issue?
No extra clues in the system log?
Is SELinux set to enforcing?
 
Old 11-08-2019, 10:12 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,977

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by hoes View Post
It is not some permission issue?
How could it be? I run as root when I do this. What permissions?

Quote:
Originally Posted by hoes View Post
No extra clues in the system log?
None.

Quote:
Originally Posted by hoes View Post
Is SELinux set to enforcing?
I don't use SELinux.
 
Old 11-08-2019, 04:53 PM   #6
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Found some source that links to your error:
https://github.com/karelzak/util-lin..._mount.c#L1684
 
1 members found this post helpful.
Old 11-10-2019, 10:19 PM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,977

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Thanks. It's in libmount. The error is consistent with mtab not getting updated; it'd be nice if the error reported that, rather than 'userspace mount table'. It also would explain why the same error can happen to virtual file systems. The underlying problem seems to be a problem with my disk, one that doesn't show up on e2fsck.

Last edited by RandomTroll; 11-10-2019 at 10:24 PM.
 
  


Reply



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
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
[SOLVED] MySQL run SELECT on a table if column A form table 1 equals column A from table 2 robertjinx Linux - Software 1 01-15-2016 10:48 AM
Local filesystem automatically unmounted dylan.goh Linux - Software 4 04-15-2008 02:52 AM
How to get the filesystem for an unmounted drive? Tortanick Linux - General 8 03-12-2007 06:20 AM
Root FIlesystem not cleanly unmounted bouke Fedora 2 08-03-2004 01:24 PM

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

All times are GMT -5. The time now is 01:05 PM.

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