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