NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

AWENA's avatar
AWENA
Aspirant
Oct 12, 2022

Bricked Netgear M4300-52G (GSM4352S) via "Erase Permanent Storage" from CLI

Hello, accidentally deleted the Permanent Storage via CLI

found this article but it didn't help:
https://alastair.d-silva.org/bricked-netgear-m5300-switch-erase-permanent-storage
   m4300r2> fatload usb 0:1 ${loadaddr} /boot.stk 
   Unknown command 'fatload' - try 'help' 
 
I understand that must execute the following command: "ubifsload"
but I don't know the syntax options "<addr> <filename>"
Please, help

Now I have the following in terminal:

U-Boot 2012.10-00245-g79946b8c89 (Feb 21 2018 - 17:08:40)VerNo=1.0.0.11

 

UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:fs", error -19
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'ubi:fs' errno=-19!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
- mount 'volume-name' volume
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
ERROR: can't get kernel image!
Saving Environment to SPI Flash...
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
ERROR: can't get kernel image!
Saving Environment to SPI Flash...
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem

Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
ERROR: can't get kernel image!
ETH LINK UP: 1000FD
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5

Retry count exceeded; starting again
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5

3 Replies

  • DaneA's avatar
    DaneA
    NETGEAR Employee Retired

    AWENA,

     

    Welcome to the community! 🙂

     

    I suggest you to open a support ticket with the NETGEAR Support Team at anytime here for technical assistance.  Kindly state your concern and the steps you did in trying to solve the problem.

     

     

    Regards,

     

    DaneA

    NETGEAR Community Team

    • AWENA's avatar
      AWENA
      Aspirant

      Thanks for the answer. But isn't there any instruction: how to restore software
      I read the NETGEAR CLI user manual, but did not find the information I needed, maybe I was looking in the wrong place?

  • I had the same problem and stumbled upon this thread.  I had luck recovering from the same state by following the steps in my post here:

    https://community.netgear.com/t5/Managed-Switches/Recover-from-uboot-interface-on-M4300-52G-GSM4352S/td-p/2368758

     

    My method did require a TFTP server, but theoretically the other methods to transfer files should work too.  I think my biggest hurdle was figuring out the proper load address which I finally got by printing the environment before issuing other commands.  That got me to the operational code utility and then doing a "Load Code Update Package" restored the switch to an operational state for me.