Page 1 of 1

"Factory reset"

PostPosted: Tue Nov 11, 2014 10:14 pm
by hardy74
I'm selling my Lacie and would like to completely factory reset it (to fvdw default/after installation status) and wipe all data (files, passwords from different apps etc). How would I go about doing this?

Re: "Factory reset"

PostPosted: Wed Nov 12, 2014 10:01 am
by Jocko
Hi hardly,

To reset your nwsp2 to fvdw-sl default status (after installation status), you can do:
- copy the attached file in /tmp. I assume that its location is in the share fvdw:
Code: Select all
cp /share/1000/fvdw/sda5-lacie-nwsp.tar.gz /tmp
- remove all data on sda8 in secure manner:
Code: Select all
shred -vzn 0 /dev/sda8
(you may change '0' by '3' for erasing the whole partition with 3 iterations ). Note this step can run a long time.
- create the default public share
Code: Select all
mkdir -m 777 /share/1000/public
From this step: never close your putty session without doing all steps, and check if sda5-lacie-nwsp.tar.gz is present in /tmp!
- in /rw_fs/.ssh, if these files exist:
Code: Select all
unlink /rw_fs/.ssh/authorized_keys
touch /rw_fs/.ssh/authorized_keys
unlink /rw_fs/.ssh/known_hosts
touch /rw_fs/.ssh/known_hosts
- erase all files in /rw_fs/etc: keep only the subfolder dropbear
- untar the attached file
Code: Select all
tar -xvf /tmp/sda5-lacie-nwsp.tar.gz -C /rw_fs
- restore the permissions for /rw_fs/etc
Code: Select all
chmod 777 /rw_fs/etc
- in /rw_fs/etc/dropbear, restore the original rsa key: erase all files except for dropbear_rsa_host_key.org
- rename this key
Code: Select all
 mv /rw_fs/etc/dropbear/dropbear_rsa_host_key.org /rw_fs/etc/dropbear/dropbear_rsa_host_key

Now, you can reboot the NAS, the firmware is fully reset

Re: "Factory reset"

PostPosted: Wed Nov 12, 2014 9:16 pm
by hardy74
Thanks for the very thorough answer. Didn't expect the wipe to take quite this long though... chose 2 wipes and now the first has been running 6 hours and is at 83%

So sometime tomorrow it's done.

Re: "Factory reset"

PostPosted: Wed Nov 12, 2014 9:43 pm
by hardy74
Decided to leave it with one wipe.

The above process worked. The NAS seems to be back to fvdw default

I'm now moving over to a Synology, to get faster file access speeds, and because the disk in the very old Lacie was starting to break. Perhaps you'll make something cool to Synology's DSM some day...

Re: "Factory reset"

PostPosted: Thu Nov 13, 2014 10:31 am
by Jocko
Hi hardly,

I hope you enjoyed the fvdw-sl experiment and indeed Synology NAS have often better speed performance than LACIE NAS