My system has a USB, an sd card and an SSD connected. I mounted all the devices USB(/dev/sdb1), SSD(/dev/sda1) and sd card(/dev/mmcblk1p1) under /mnt. Is there any way to unmount all the devices connected at /mnt?
(I can do this by performing grep to lsblk/df/mount output and unmounting individual one but I am looking for another easy solution OR by performing 3 times umount /mnt)
Update 2
Here is output of lsblk(multiple mountpoints)
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
└─sda1 8:1 0 232.9G 0 part /mnt
sdb 8:16 1 14.7G 0 disk
└─sdb1 8:17 1 14.7G 0 part /mnt
and after performing recursive umount
sudo umount --recursive /mnt
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
└─sda1 8:1 0 232.9G 0 part /mnt
sdb 8:16 1 14.7G 0 disk
└─sdb1 8:17 1 14.7G 0 part
mount
and the output (if any) ofsudo umount --recursive /mnt