On 2020-08-16 15:01, Andrei Enshin via Bug reports for the GNU find utilities
wrote:
>
> The longer entries are seems to be on different filesystems:
>
> dev:801 ino:2 name:/
> dev:6 ino:2 name:/dev
> dev:18 ino:2 name:/run
> dev:3c ino:2
> name:/var/lib/docker/containers/e1c046bb5a81c469a8df15
The longer entries are seems to be on different filesystems:
dev:801 ino:2 name:/
dev:6 ino:2 name:/dev
dev:18 ino:2 name:/run
dev:3c ino:2
name:/var/lib/docker/containers/e1c046bb5a81c469a8df15d2120ef0279c00537034d12b16ecf662b8ee373965/mounts/shm
dev:95 ino:2
name:/var/lib/docker/containers/9d
On 2020-08-15 18:56, Andrei Enshin via Bug reports for the GNU find utilities
wrote:
> The full out of find is:
> $ sudo find / -xdev -inum 2 2>/dev/null
> /
> /dev
> /run
> /var/lib/docker/containers/e1c046bb5a81c469a8df15d2120ef0279c00537034d12b16ecf662b8ee373965/mounts/shm
> /var/lib/docker/c
I’m using ext4:
/ /dev/nvme0n1p7 ext4
rw,relatime,errors=remount-ro
The full out of find is:
$ sudo find / -xdev -inum 2 2>/dev/null
/
/dev
/run
/var/lib/docker/containers/e1c046bb5a81c469a8df15d2120ef0279c00537034d12b16ecf662b8ee37396
The
$ sudo find / -xdev -samefile /
/
Gives me only one however there are seems to be 24 hard links to the /
(probably counting the «..» of subdirs as you mentioned):
$ ls -lid /
2 drwxr-xr-x 24 root root 4096 Jul 28 07:34 /
I’m using Ubuntu 18.04.5.
>Saturday, August 15, 2020 7:37 PM +0
Hi Andrei!
> I’m trying to identify all hard links pointing to my root directory:
> $ sudo ls -lid /
> 2 drwxr-xr-x 23 root root 4096 Aug 11 20:58 /
>
> The inode number is 2 and count of hard links is 23.
>
> Then I run find:
>
> $ sudo find / -xdev -inum 2 2>/dev/null | wc -l
> 15
I'm rather
On Sat, 15 Aug 2020 at 11:56, Andrei Enshin via Bug reports for the
GNU find utilities wrote:
>
>
> Hello,
>
> I’m trying to identify all hard links pointing to my root directory:
> $ sudo ls -lid /
> 2 drwxr-xr-x 23 root root 4096 Aug 11 20:58 /
>
> The inode number is 2 and count of hard links i
Hello,
I’m trying to identify all hard links pointing to my root directory:
$ sudo ls -lid /
2 drwxr-xr-x 23 root root 4096 Aug 11 20:58 /
The inode number is 2 and count of hard links is 23.
Then I run find:
$ sudo find / -xdev -inum 2 2>/dev/null | wc -l
15
But the `find` finds only 15.
I