dydgns2017 / raspberrypi_img_backup_script

MIT License
17 stars 0 forks source link

[ERROR] I got error #3

Open alpgul opened 6 years ago

alpgul commented 6 years ago
pi@raspberrypi:/tmp/raspberrypi_img_backup_script $ sudo bash raspberrypi_img_backup.sh /dev/mmcblk0p Raspberrypi.img
configuration...
File moving...(pi to pim)
raspberrypi_img_backup.sh: line 80: ((: used=*1024/512: syntax error: operand expected (error token is "*1024/512")
mv: cannot remove './boot': Device or resource busy
mv: cannot remove './dev': Device or resource busy
dydgns2017 commented 5 years ago

@alpgul

sorry about that..

Recently I was busy and did not check github.

i think this error my script problem..! I will update it until next week.

TT..

JnMik commented 5 years ago

Error still there

sudo sh raspberrypi_img_backup.sh /dev/sdb test.img

configuration... mount: /dev/sdb2 is already mounted or /media/pi busy /dev/sdb2 is already mounted on /media/jm/rootfs /dev/sdb2 is already mounted on /media/pi File moving...(pi to pim) raspberrypi_img_backup.sh: 86: [: 22542: unexpected operator

dydgns2017 commented 5 years ago

Error still there

sudo sh raspberrypi_img_backup.sh /dev/sdb test.img

configuration... mount: /dev/sdb2 is already mounted or /media/pi busy /dev/sdb2 is already mounted on /media/jm/rootfs /dev/sdb2 is already mounted on /media/pi File moving...(pi to pim) raspberrypi_img_backup.sh: 86: [: 22542: unexpected operator

sorry about that i'll try fix it this week. thank you interest my code!

dydgns2017 commented 5 years ago

@alpgul

pi@raspberrypi:/tmp/raspberrypi_img_backup_script $ sudo bash raspberrypi_img_backup.sh /dev/mmcblk0p Raspberrypi.img configuration...

may be you wrong execute this script. we can't resizing local raspberry pi OS. if you want to make backup image file,

you should be execute this script on Ubuntu or debian OS also connected raspberry pi OS SD card with your computer(debian) or server(debian)