Dears
My mikrotik RB433 restarts in loop, without response on hardware reset. I need to restore my data (baskups and scripts) from internal memory of RB433 so I decided to boot my broken RB433 from external TFTP server using some Live Linux distro.
I boot my broken RB433 using image:
Linux starts without any issues:
Now I would like to mount internal memory into current linux filesystem.
I see (connected via RS232):
BusyBox v1.22.1 (2014-09-20 22:58:06 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|_____|| |||||___||| |____|
|| W I R E L E S S F R E E D O M
BARRIER BREAKER (14.07, r42625)
- 1/2 oz Galliano Pour all ingredients into
- 4 oz cold Coffee an irish coffee mug filled
- 1 1/2 oz Dark Rum with crushed ice. Stir.
- 2 tsp. Creme de Cacao
root@OpenWrt:/# ls /dev
console mtd4 network_throughput ttyS13
cpu_dma_latency mtd4ro null ttyS14
full mtd5 port ttyS15
kmsg mtd5ro ppp ttyS2
log mtd6 ptmx ttyS3
mem mtd6ro pts ttyS4
mtd0 mtdblock0 random ttyS5
mtd0ro mtdblock1 shm ttyS6
mtd1 mtdblock2 tty ttyS7
mtd1ro mtdblock3 ttyS0 ttyS8
mtd2 mtdblock4 ttyS1 ttyS9
mtd2ro mtdblock5 ttyS10 urandom
mtd3 mtdblock6 ttyS11 watchdog
mtd3ro network_latency ttyS12 zero
root@OpenWrt:/#[/code]
root@OpenWrt:/mnt# cat /proc/mtd
dev: size erasesize name
mtd0: 0000b000 00001000 "routerboot"
mtd1: 00001000 00001000 "hard_config"
mtd2: 00002000 00001000 "bios"
mtd3: 00001000 00001000 "soft_config"
mtd4: 00040000 00020000 "booter"
mtd5: 003c0000 00020000 "kernel"
mtd6: 07c00000 00020000 "rootfs"
root@OpenWrt:/mnt#[/code]
So I'm trying to mount one by one, but as we can see without positive result:
root@OpenWrt:/# mount -o ro /dev/mtdblock1 /mnt
[ 299.080000] yaffs: dev is 32505857 name is "mtdblock1" ro
[ 299.090000] yaffs: passed flags ""
[ 299.100000] yaffs: dev is 32505857 name is "mtdblock1" ro
[ 299.100000] yaffs: passed flags ""
mount: mounting /dev/mtdblock1 on /mnt failed: Invalid argument
root@OpenWrt:/#
[ 359.770000] yaffs: dev is 32505858 name is "mtdblock2" ro
[ 359.770000] yaffs: passed flags ""
[ 359.780000] yaffs: dev is 32505858 name is "mtdblock2" ro
[ 359.780000] yaffs: passed flags ""
mount: mounting /dev/mtdblock2 on /mnt failed: Invalid argument
root@OpenWrt:/#
root@OpenWrt:/# mount -o ro /dev/mtdblock0 /mnt
[ 378.070000] yaffs: dev is 32505856 name is "mtdblock0" ro
[ 378.080000] yaffs: passed flags ""
[ 378.080000] yaffs: dev is 32505856 name is "mtdblock0" ro
[ 378.090000] yaffs: passed flags ""
[ 378.090000] ------------[ cut here ]------------
[ 378.100000] WARNING: at fs/super.c:1126 mount_fs+0xb4/0xd8()
[ 378.100000] yaffs2 set sb->s_maxbytes to negative value (-4026531825)
[ 378.110000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt compat ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 ipv6 arc4 crypto_blkcipher gpio_button_hotplug
[ 378.170000] CPU: 0 PID: 1292 Comm: mount Not tainted 3.10.49 #3
[ 378.170000] Stack : 00000000 00000000 00000000 00000000 8059bc3e 00000033 82fd5ef8 00000000
802e99a4 80331db3 0000050c 805939c0 82fd5ef8 00000000 82935f00 00000000
00000001 80275330 00000003 801d9ecc 802f03b4 00000000 802eb03c 82951dac
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 82951d38
...
[ 378.210000] Call Trace:
[ 378.210000] [<8021e324>] show_stack+0x48/0x70
[ 378.220000] [<80284d38>] warn_slowpath_common+0x78/0xa8
[ 378.220000] [<80284d94>] warn_slowpath_fmt+0x2c/0x38
[ 378.230000] [<80197254>] mount_fs+0xb4/0xd8
[ 378.230000] [<8027ab10>] vfs_kern_mount+0x64/0xfc
[ 378.230000] [<80110a7c>] do_mount+0x72c/0x82c
[ 378.240000] [<8006f8ec>] SyS_mount+0x94/0xdc
[ 378.240000] [<800625b0>] stack_done+0x20/0x44
[ 378.250000]
[ 378.250000] ---[ end trace 406d0355d1d4cf65 ]---
root@OpenWrt:/#
Could someone please help me?
Thank you very much and best regards
Mariusz Ciszewski