Linux version 2.6.26.5, ARM Linux Kernel on embedded device, NAND-based device. I'm at Busybox rescue shell (ash), with restricted command set. How to manually mount the virtual file systems, to copy the MTD flash partitions into /tmp? I need backup the flash partitions use nanddump.
# cat /proc/mtd dev: size erasesize name mtd0: 00004000 00004000 "NAND BootAgent" mtd1: 000fc000 00004000 "Linux Kernel" mtd2: 00d00000 00004000 "Root" mtd3: 00100000 00004000 "Config" mtd4: 00100000 00004000 "Debug" mtd5: 00000000 00004000 "Data" nanddump -f /tmp/mtd0.bin /dev/mtd0 What virtual file systems I should mount for this? Something like this
# mount -t proc proc /proc # mount -t sysfs sysfs /sys # mount -t tmpfs tmpfs /tmp # mount -t tmpfs none /dev # mknod -m 666 /dev/zero c 1 5 # mknod -m 666 /dev/null c 1 3 # mkdir /dev/pts # mount -t devpts none /dev/pts or I need use commands like this
mount -t proc proc /proc mount -t sysfs sysfs /sys mount -t tmpfs -o size=20M,mode=0755 tmpfs /dev mdev -s cd /dev nanddump -f /tmp/mtd0.bin /dev/mtd0