NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
johnflux
Oct 27, 2012Aspirant
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.
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-ntgrNETGEAR Employee RetiredA 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. - johnfluxAspirantThanks 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. - mdgm-ntgrNETGEAR Employee RetiredYou could try the suggestion here: http://www.readynas.com/forum/viewtopic.php?p=193604#p193604
However rather than remounting the volume as read-only it would probably be better to umount it then do a vgchange -a n - johnfluxAspirantThanks - my backups are nearly complete, so I'll try that once they are done.
- johnfluxAspirantIt 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-ntgrNETGEAR Employee RetiredThanks 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.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!