LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2020, 05:23 PM   #1
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Rep: Reputation: 31
Directories Show Up with the Same Name


I have discovered something I thought was impossible:

Code:
pi@raspberrypi:~ $ ls -l /mnt/1wire
total 0
drwxrwxrwx 1 root root 4096 May 21 18:16 3A.0BE14D000000
drwxrwxrwx 1 root root 4096 May 21 18:16 3A.0BE14D000000
drwxr-xr-x 1 root root 4096 May 21 13:24 bus.0
drwxr-xr-x 1 root root 4096 May 21 13:24 bus.1
drwxr-xr-x 1 root root 4096 May 21 13:24 settings
drwxr-xr-x 1 root root 4096 May 21 13:24 statistics
drwxr-xr-x 1 root root 4096 May 21 13:24 structure
drwxr-xr-x 1 root root 4096 May 21 13:24 system
drwxr-xr-x 1 root root 4096 May 21 13:24 uncached
Can someone explain those 2 directories to me? TIA.
 
Old 05-21-2020, 05:32 PM   #2
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
Spaces at the end of the names maybe?
 
1 members found this post helpful.
Old 05-21-2020, 05:38 PM   #3
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Original Poster
Rep: Reputation: 31
Thanks but no, I checked that.
 
1 members found this post helpful.
Old 05-21-2020, 05:51 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by gw1500se View Post
I have discovered something I thought was impossible:

Code:
pi@raspberrypi:~ $ ls -l /mnt/1wire
total 0
drwxrwxrwx 1 root root 4096 May 21 18:16 3A.0BE14D000000
drwxrwxrwx 1 root root 4096 May 21 18:16 3A.0BE14D000000
drwxr-xr-x 1 root root 4096 May 21 13:24 bus.0
drwxr-xr-x 1 root root 4096 May 21 13:24 bus.1
drwxr-xr-x 1 root root 4096 May 21 13:24 settings
drwxr-xr-x 1 root root 4096 May 21 13:24 statistics
drwxr-xr-x 1 root root 4096 May 21 13:24 structure
drwxr-xr-x 1 root root 4096 May 21 13:24 system
drwxr-xr-x 1 root root 4096 May 21 13:24 uncached
Can someone explain those 2 directories to me? TIA.
What does "ls -i" show when you issue it in that directory? (Surely they don't have the same inode listed...)

Looks like another filesystem mounted on "/mnt/lwire". What's supposed to be there?
 
Old 05-21-2020, 10:15 PM   #5
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by gw1500se View Post
Code:
pi@raspberrypi:~ $ ls -l /mnt/1wire
total 0
drwxrwxrwx 1 root root 4096 May 21 18:16 3A.0BE14D000000
drwxrwxrwx 1 root root 4096 May 21 18:16 3A.0BE14D000000
drwxr-xr-x 1 root root 4096 May 21 13:24 bus.0
drwxr-xr-x 1 root root 4096 May 21 13:24 bus.1
drwxr-xr-x 1 root root 4096 May 21 13:24 settings
drwxr-xr-x 1 root root 4096 May 21 13:24 statistics
drwxr-xr-x 1 root root 4096 May 21 13:24 structure
drwxr-xr-x 1 root root 4096 May 21 13:24 system
drwxr-xr-x 1 root root 4096 May 21 13:24 uncached
Another strange thing: all directories have a link count of only 1, which is impossible on a Linux filesystem as they have at least 2 (the name and the . entry IN it).
So whatever is mounted on /mnt/wire is some unknown file system without linked . (and possible ..) entries.
This may, or may not, have something to do with the problem.

What IS the kind of FS mounted onto that dir?
 
Old 05-22-2020, 08:31 AM   #6
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Original Poster
Rep: Reputation: 31
Thanks for the replies. There is nothing specifically "mounted" on that directory but it is an OWFS created and managed file system. Here is the output from ls -i:

9 3A.0BE14D000000 3 bus.0 5 settings 8 structure 4 uncached
9 3A.0BE14D000000 2 bus.1 7 statistics 6 system

I suppose it is normal for that type file system but it sure seems difficult, to me, to achieve given Linux file system management.
 
  


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
gthumb - show directories; Nemo - show thumbnails but not have a thumbnail-cache. grumpyskeptic Linux - Software 1 10-18-2019 03:32 AM
Multiple directories with exactly the same name in the same directory! pandersson61 Linux - General 3 05-16-2013 02:10 AM
How do I copy over directories to directories with the same name without overwriting? SentralOrigin Linux - General 1 03-14-2009 01:09 AM
at same directory, is it cannot have same name text file and folder name? hocheetiong Linux - Newbie 6 11-10-2007 10:20 AM
Remove directories recursively with same name cboyd Linux - Newbie 5 01-14-2007 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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