Saving NAND using nanddump

I want to keep a copy of NAND and understand I can do that using nanddump, but I can't find any command reference for it. I've come across an example for doing what I would like:-

cd /tmp 
mkdir usb 
mount /dev/sda1 /tmp/usb 
./nanddump -nf usb/mtd0 /dev/mtd0 
./nanddump -nf usb/mtd1 /dev/mtd1 
./nanddump -nf usb/mtd2 /dev/mtd2 
umount /dev/sda1 

Does this mean the files mtd0, mtd1 and mtd2 are saved in the usb directory on the USB stick? I couldn't find anything resembling a man page for nanddump.

could use dd

dd if=/dev/mtd0 of=/tmp/usb/mtd0.bin

1 Like