dydgns2017 / raspberrypi_img_backup_script

MIT License
17 stars 0 forks source link

advice of Chief Architecture Han. #4

Open dydgns2017 opened 5 years ago

dydgns2017 commented 5 years ago

better then recently code

if [ ! -n "$1" ] then echo "Error, input the Raspberry Pi SD" \ " card Device information ex) \ sudo bash $(basename $0) /dev/sdb" && exit 1 fi

Error Fix

mountCheck=$(mount -l | grep $piDev | grep boot | awk {'print $2'})

Error Fix

used=$(df -k | grep media/pi | awk {'print $3'})

inode data..

df -i /media/pi