balanga
February 21, 2019, 11:48am
1
Following the guide for installing OpenWrt on a GoFlex Home unit:-
https://openwrt.org/toh/seagate/goflexhome
there is a backup section
cd /tmp
mkdir backup
mount /dev/sda1 /tmp/backup
wget http://plugapps.com/os/pogoplug/uboot/nanddump
chmod +x nanddump
./nanddump -nf backup/mtd0 /dev/mtd0
./nanddump -nf backup/mtd1 /dev/mtd1
./nanddump -nf backup/mtd2 /dev/mtd2
umount /dev/sda1
but I can't get hold of nanddump. Where else should I try?
If you're trying to back up those partitions, have you tried dd ?
https://linux.die.net/man/1/dd
dd if=/dev/mtdX of=/tmp/backup-mtdX.img
jeff
February 21, 2019, 4:14pm
3
Yes, nanddump
is the right tool, assuming that you have NAND-based flash, as it deals with the out-of-band error correction and block mapping.
Have you taken the usual steps of seeing if a package is available ?
In general, you can't dump a "random", pre-compiled binary on an OpenWrt install and expect it to run.
1 Like
balanga
February 21, 2019, 5:13pm
4
The pkg appears to be available but 'opkg install nand-utils' does not find it, although even if I could download it, I wouldn't be able to use it on my GoFlex Home.
I did evenetually manage to find it here:-
https://github.com/pepaslabs/pogoplug_mobile_uboot_installer/blob/master/mirrored/download.qnology.com/pogoplug/v4/nanddump
tmomas
February 21, 2019, 7:50pm
5
@balanga Please use "Preformatted text </>" for logs, scripts, configs and general console output.
Please edit your posting accordingly.
1 Like
balanga
February 21, 2019, 10:54pm
6
I'm trying to follow the guide and it mentions taking two backups by different means. Should the resultant files be identical?
And should I be able to restore using 'dd'?