Commands that may help build the mechanism to detect server type ( VPS | Dedicated ) and detect the main partition:
#PTR record for server type detection
ip=$(ip -o a | grep -E 'eth0.*inet' | grep -v 'inet6' | cut -d '/' -f 1 | cut -d 't' -f 3 | cut -c 2-)
dig -x $ip | grep -E 'ns|vps' | grep -E 'PTR' | cut -d 'R' -f 2
#Iteration of all potential partitions
pot_part=$(lsblk | grep -E 'sd|nv' | grep -E 'G|T' | grep 'part' | cut -c 5-)
dsk_rslts=$(( $(lsblk | grep -E 'G|T' | wc -l) - 1 ))
for i in seq 1 $dsk_rslts
;
do
mntpnt=$(tune2fs -l /dev/sda3 | grep 'mounted' | cut -d ":" -f 2)
echo $mntpnt
done