Switch the serial number of Pocketbook internal SD card. Tested with PB626
Usage:
- Dump the contents of the card:
- dd if=/dev/mmcblk0 of=pb.img
- Read the serial numbers of old and new card using e.g.
- cat /sys/block/mmcblk0/device/serial,
- make note of the numbers e.g. 01234567 for old card, abcdef00 for the new one
- Back the original image up:
- cp pb.img pb.img.bak
- Launch the script, as root (unfortunately...)
- sudo ./fix.py pb.img 01234567 abcdef00
- Write the image to the new card:
- dd if=pb.img of=/dev/mmcblk0