raspberrypi_img_backup_script
raspberrypi_img_backup_script copied to clipboard
advice of Chief Architecture Han.
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