Product
Tinker Board 2
[AIOT] How to Resize Tinker Board 2 OS Image/ Partition
Purpose:
- This section demonstrates how create a minimized image from an existing storage. The image can be restored back to the storage (either eMMC or SD card) of the next board.
Note: This instruction is for Tinker Board/Tinker Board S/Tinker Board R2.0/Tinker Board S R2.0/Tinker Board 2/Tinker Board 2S
Environment:
- Board: Tinker Board S
- OS: Tinker_Board-Debian-Stretch-V2.1.11-20200310.img
- microSD card: With another Debian installed
Note: It could be flashed an image thru Etcher or Win32DiskImager under Windows environment or dd under Linux.
Instruction:
1. Hardware setting: Connect Tinker Board S to PC via micro-USB
2. Power on Tinker Board S -- it should be recognized as 'UMS USB device' (in UMS mode)
3. To resize the partitions using tinker_resize shell script:
Download tinker_resize.sh and dump image from eMMC with dd command:
sudo dd bs=4M if=/dev/sdX of=/path/xxx.img
- Use tinker_resize.sh to reduce image size
chmod +x tinker_resize.sh
sudo ./tinker_resize.sh xxx.img
The source code of tinker_resize.sh is originated from PiShrink: http://github.com/Drewsif/PiShrink