LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2020, 03:20 PM   #1
no-windose
Member
 
Registered: Jun 2018
Posts: 98
Blog Entries: 2

Rep: Reputation: Disabled
Cannot delete corrupted directory


# ls -l
ls: cannot access 'gvfs': Permission denied
total 0
srw-rw-rw- 1 user user 0 Dec 16 19:43 bus
drwx------ 2 user user 60 Dec 19 20:54 dconf
d????????? ? ? ? ? ? gvfs
drwx------ 2 user user 80 Dec 16 19:43 pulse
drwxr-xr-x 3 user user 100 Dec 16 19:43 systemd
#
# rm -rf gvfs
rm: cannot remove 'gvfs': Is a directory
# cd gvfs
-bash: cd: gvfs: Permission denied


Could someone please tell me how to delete this corrupted gvfs directory????
 
Old 12-19-2020, 03:40 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,179

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
You could try using rmdir, but it will only work if the directory is empty. Or try with gvfs/ with your rm command.
 
Old 12-19-2020, 03:48 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,168

Rep: Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126
This is why users have to be protected from themselves. It is not a corrupt directory.
Plug the message into a search engine and do some research for yourself.
 
1 members found this post helpful.
Old 12-20-2020, 07:06 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
That is on a tmpfs filesystem, therefore it would be wiped when you restart or shutdown the system anyway.

Last edited by jsbjsb001; 12-20-2020 at 07:46 AM. Reason: didn't realize it was a tmpfs filesystem
 
Old 12-20-2020, 07:11 AM   #5
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I believe the gvfs directory is the mount point for a virtual file system, which may explain why it cannot be deleted.
 
Old 12-20-2020, 08:11 AM   #6
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,660

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584

I was curious, but was finding a lot of partial answers on the web.

The most complete explanation I found was here:
https://www.linuxquestions.org/questions/linux-software-2/what-is-gvfs-weird-directory-entry-4175477518

 
1 members found this post helpful.
Old 12-24-2020, 12:49 AM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,856

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
Showing
d????????? ? ? ? ? ? gvfs
is a misfeature of the GNU ls. Other ls only show the
ls: cannot access 'gvfs': Permission denied
 
Old 12-24-2020, 11:11 AM   #8
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 MadeInGermany View Post
misfeature
Nice term.
 
Old 12-24-2020, 01:55 PM   #9
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
OP, wrong. Read up on GVFS.
 
Old 12-24-2020, 03:41 PM   #10
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,856

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
Quote:
Originally Posted by ondoho View Post
Nice term.
Nicer than disimprovement.
 
Old 12-24-2020, 04:22 PM   #11
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 MadeInGermany View Post
Nicer than disimprovement.
It's longer, but rolls off the tongue better.
 
Old 12-24-2020, 08:22 PM   #12
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by no-windose View Post
# ls -l
ls: cannot access 'gvfs': Permission denied
total 0
srw-rw-rw- 1 user user 0 Dec 16 19:43 bus
drwx------ 2 user user 60 Dec 19 20:54 dconf
d????????? ? ? ? ? ? gvfs
drwx------ 2 user user 80 Dec 16 19:43 pulse
drwxr-xr-x 3 user user 100 Dec 16 19:43 systemd
#
# rm -rf gvfs
rm: cannot remove 'gvfs': Is a directory
# cd gvfs
-bash: cd: gvfs: Permission denied


Could someone please tell me how to delete this corrupted gvfs directory????
Not sure gvfs is corrupt, NTFS, APFS, HFS+ more likely to be corrupt, (Proprietary).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
corrupted or not corrupted filesystem? pan64 Linux - General 9 01-03-2015 01:57 PM
[SOLVED] Cannot delete a recently created directory in Lubuntu, or files in that directory l33y Linux - Newbie 26 06-07-2014 05:49 AM
Ubuntu 9.x install corrupted NTFS partition; repair corrupted TrueCrypt partition halfer Linux - General 1 06-30-2009 02:59 PM
How do you delete a corrupted file or directory? BrianK Linux - General 8 10-23-2004 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:45 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