HND routers use the misc2 partition.
https://github.com/RMerl/asuswrt-merlin.ng/blob/master/release/src/router/rc/jffs2.c#L27
https://github.com/RMerl/asuswrt-merlin.ng/blob/master/release/src/router/rc/jffs2.c#L27
HND routers use the misc2 partition.
https://github.com/RMerl/asuswrt-merlin.ng/blob/master/release/src/router/rc/jffs2.c#L27
EDIT: Looking at this section of code it looks like the equivalent to brcmnand on HND is misc2. But there is still no support for that partition in the mtd-erase2 command.
HND routers use the misc2 partition.
https://github.com/RMerl/asuswrt-merlin.ng/blob/master/release/src/router/rc/jffs2.c#L27
Thanks for info but @ColinTaylor already found it out . Could you please further explain how to format jffs2 over ssh and coclude topic by either posting commands or exaplining what to do to erase it other than using ur firmware option ?
I don't know, I haven't done that over SSH for years. I would assume either mtd2-erase mtd9 or mtd2-erase misc2.
The webui switch lets the rc process handle it at the next boot.
EDIT: doesn't seem like the mtd functions exist on HND models, because that platform uses the UBI filesystem. You will have to do it through the webui, or study the source code to determine if it's possible to do it manually over SSH.
Interesting info about the use of UBI (I don't have a HND router so wouldn't know that). I wonder whether ubiformat would offer the equivalent function to mtd2-erase in that case. (Just idle speculation )EDIT: doesn't seem like the mtd functions exist on HND models, because that platform uses the UBI filesystem. You will have to do it through the webui, or study the source code to determine if it's possible to do it manually over SSH.
Looks like maybe the command “hnd-erase nvram” is for the 86U.Also what is the difference between mtd-erase nvram and initialize in web ui . Is the mtd-erase nvram a dangerous command to run on 86u?
Does that command (mtd-erase) actually exist any more? I thought it was only used on the old MIPS routers.Did some1 successfully ran this command on 86u (mtd-erase nvram ) ? Share your knowledge before some1 is going to try to use it.
Does that command (mtd-erase) actually exist any more? I thought it was only used on the old MIPS routers.
I am asking you. You're the one asking about your router. I can't answer that question for you because I have a different model of router. It's up to you to see if that command exists on your router.Dont ask me its me who post questions here
I am asking you. You're the one asking about your router. I can't answer that question for you because I have a different model of router. It's up to you to see if that command exists on your router.
I wasn't asking you to run the command, only to determine whether it existed at all in your router's firmware. But the question is moot now as you appear to have the solution you wanted.Yes i get it but those are risky commands before i try them i would like to get more info from people what to expect so i dont end up with bricked router. I tested one command already "hnd-erase nvram" which works well and i can tell my router works smoother than with any other method ive tried .
I wasn't asking you to run the command, only to determine whether it existed at all in your router's firmware. But the question is moot now as you appear to have the solution you wanted.
admin@RT-AC68U:/# mtd-
mtd-erase2 mtd-unlock mtd-write2
admin@RT-AC68U:/# find / -name mtd-erase2
/sbin/mtd-erase2
admin@RT-AC68U:/# mtd-erase -?
-sh: mtd-erase: not found
admin@RT-AC68U:/# mtd-erase2 -?
usage: mtd-erase2 [device]
There are multiple ways you could do this (it's just normal Linux stuff), for example:
Type in the beginning of the command and then press TAB. If there is only one command that starts with those characters it will auto-complete the command. If there are multiple commands that start the same way pressing TAB a second time will list all the possibilities.
Code:admin@RT-AC68U:/# mtd- mtd-erase2 mtd-unlock mtd-write2
Alternatively you could just search the entire filesystem for a specific command.
Code:admin@RT-AC68U:/# find / -name mtd-erase2 /sbin/mtd-erase2
And as you said, typing a command followed by "-?" usually gives the command syntax or an error if it doesn't exist.
Code:admin@RT-AC68U:/# mtd-erase -? -sh: mtd-erase: not found admin@RT-AC68U:/# mtd-erase2 -? usage: mtd-erase2 [device]
Not all commands have built-in help, especially those that aren't designed to be used by the end user. But using Dave's link in post #29 we can see that there is only one valid parameter for the hnd-erase command and that is "nvram".Everything which contains mtd throws back error 127 not found. I figured out that what its the replacement is probably hnd-erase but how to list commands since writing hnd-erase -? gives me "unknown applet"
Not all commands have built-in help, especially those that aren't designed to be used by the end user. But using Dave's link in post #29 we can see that there is only one valid parameter for the hnd-erase command and that is "nvram".
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!