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

Forum Discussion

johnflux's avatar
johnflux
Aspirant
Oct 27, 2012

Restoring original image

I ssh'ed into my NV+ v2 and screwed it up by upgrading the distro. (Yeah I'm an idiot I know).

I'm trying to now restore it back to how it was. Frontview doesn't work, but I still have ssh. I have tried doing an OS reinstall but this doesn't seem to touch the files in /etc/ or any of the distro files.

Is there anywhere to download the original image so that I can just install that? Do a *full* OS reinstall.

6 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    A factory default can be done which wipes all data, settings, everything. This would give you a clean working install.

    Is all your data backed up? If yes, then the above would be the best solution.
  • Thanks but I was hoping to avoid that.

    Is there a way to install RAIDiator-arm-5.3.6 from a shell? I'm wondering if re-installing that would help.
  • Thanks - my backups are nearly complete, so I'll try that once they are done.
  • It worked!

    I'll summarise my steps, for future people:

    1. I ssh'ed in and did an rsync to another system to ensure that I had a full backup. This wasn't needed, but good to do.
    2. I tried to umount /c or remount as ro, but couldn't, so I left this.
    3. I did: rm -rf --no-preserve-root --one-file-system / [NOTE: THE --one-file-system IS EXTREMELY IMPORTANT!! YOU WILL LOSE YOUR DATA IF YOU SKIP THIS PART]
    4. run "sync"
    5. Pull the power (maybe there's a better way to shutdown, but I don't know how)
    6. Plug it back in
    6. Put a paperclip in the reset hole at the back and switch on. When the Boot Menu comes up on the LCD display, release
    the paperclip.
    7. Press the "backup" button to select "OS Reinstall". NOT FACTORY RESTORE!
    8. Press reset button with paperclip to confirm selection

    And that was it - it was all restored.

    Note to mdgm - thank you very much for your help. Can I suggest that you modify the forum to do: rm -rf --no-preserve-root --one-file-system / to be safer.
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    Thanks for posting your steps

    2. Before the umount /c you'd have to stop or kill any services that use it.
    5. As what you're doing is wiping the OS a normal shutdown wouldn't be possible. One of the reasons why having the volume unmounted would probably be a good idea.

    That is a good suggestion. You do need to be aware though that the --no-preserve-root and --one-file-system options are available on x86 ReadyNAS and ARM ReadyNAS but not on Sparc ReadyNAS. You can see what options are available for rm on your system by doing a "rm --help"

    I'll need to look into this some more, maybe in a few weeks.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More