Você pode usar o comando mountpoint
. A opção -d
imprime o número do dispositivo principal / secundário do ponto de montagem para stdout.
No seu caso, compare a saída de mountpoint -d /home/lars
a mountpoint -d /home/bob
.
[root@Fruity ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.9G 2.5G 7.0G 26% /
/dev/sda1 97M 43M 50M 47% /boot
/dev/sda7 2.0G 68M 1.9G 4% /tmp
/dev/sda3 9.9G 2.8G 6.6G 30% /usr
/dev/sda6 6.0G 1.1G 4.6G 19% /var
/dev/sdb1 400G 263G 138G 66% /data
/dev/sdc1 150G 122G 29G 82% /images
nfs001:/data/chain 36G 1.2G 35G 4% /data/chain
nfs001:/data/src 36G 1.2G 35G 4% /data/src
[root@Fruity ~]# mountpoint -d /data/chain/
0:19
[root@Fruity ~]# mountpoint -d /data/src/
0:19
[root@Fruity ~]# mountpoint -d /data/
8:17