#!/usr/bin/python3.9
import shutil
# 1. 체크할 디스크 파티션 지정 후 결과값 변수에 저장
diskLabel = '/'
total, used, free = shutil.disk_usage(diskLabel)
totalGB = round((total / 1024 / 1024 / 1024), 2)
usedGB = round((used / 1024 / 1024 / 1024), 2)
freeGB = round((free / 1024 / 1024 / 1024), 2)
freePercent = round(((free / total) * 100), 2)
msg = "total: " + str(totalGB) + "GB, free: " + str(freeGB) + "GB(" + str(freePercent) + "%)"
print(msg)