SELECTED=$(whiptail --title "$(translate "Unmount Disk")" --menu "$(translate "Select the disk you want to unmount:")"207010"${MENU_ITEMS[@]}" 3>&1 1>&2 2>&3)
[[ -z "$SELECTED"]]&&exit0
whiptail --title "$(translate "Confirm Unmount")" --yesno "$(translate "Are you sure you want to unmount")$SELECTED?"1060||exit0
umount "$SELECTED" 2>/dev/null
if[$? -ne 0];then
whiptail --title "$(translate "Error")" --msgbox "$(translate "Failed to unmount disk at")$SELECTED"860
exit1
else
msg_ok "$(translate "Unmounted:")$SELECTED"
fi
whiptail --title "$(translate "Delete Mount Folder")" --yesno "$(translate "Do you want to delete the mount point folder")$SELECTED?"1060