TS-4900 MicroSD Backup/restore: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
sudo mkdir /mnt/sd | sudo mkdir /mnt/sd | ||
sudo mount /dev/sdc1 /mnt/sd/ | sudo mount /dev/sdc1 /mnt/sd/ | ||
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/fido/ts-x11-image-tsimx6-latest.tar.bz2 | |||
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/ | |||
sudo tar -xf ts-x11-image- | sudo tar -xf ts-x11-image-tsimx6-latest.tar.bz2 -C /mnt/sd | ||
sudo umount /mnt/sd | sudo umount /mnt/sd | ||
sync | sync |
Revision as of 18:26, 12 October 2015
These instructions assume you have an SD card with one partition. Most SD cards ship this way by default, but if you have modified the partitions you may need to use a utility such as gparted or fdisk to remove partitions and recreate it with one partition.
Plug the SD card into a USB reader and connect it to your Linux PC. These instructions assume your SD interface is /dev/sdc, but check dmesg in your PC to see what
Running these commands will reflash the SD card to our default latest image.
# Verify nothing else has this mounted
sudo umount /dev/sdc1
sudo mkfs.ext4 /dev/sdc1
sudo mkdir /mnt/sd
sudo mount /dev/sdc1 /mnt/sd/
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/fido/ts-x11-image-tsimx6-latest.tar.bz2
sudo tar -xf ts-x11-image-tsimx6-latest.tar.bz2 -C /mnt/sd
sudo umount /mnt/sd
sync
After it is written you can verify the data was written correctly. Reinsert the disk to verify any block cache is gone, then run these:
mount /dev/sdc1 /mnt/sd
cd /mnt/sd/
sudo md5sums -c md5sums.txt
umount /mnt/sd
sync
The md5sums command will report what differences there are, if any, and return if it passed or failed.