Nanddump location

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

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

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

@balanga Please use "Preformatted text </>" for logs, scripts, configs and general console output.
grafik

Please edit your posting accordingly.

1 Like

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'?

If NAND, no.

https://openwrt.org/docs/techref/flash

The ECC logic required by NAND (discussed above) is the main reason you MUST use NAND-aware tools like nanddump and nandwrite instead of the more common dd tool to create or restore a backup of the flash partitions on NAND.

1 Like