Factory reset - killnas.sh

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
kreibich
Starting out
Posts: 14
Joined: Thu Jun 18, 2015 7:44 pm

Factory reset - killnas.sh

Post by kreibich » Wed Nov 15, 2017 9:04 am

Hi,
I would like to do a complete factory reset of my QNAP NAS (. Because I have only remote access to my NAS (I cannot press reset button), I found a way how to do it remotely.
I have connected to SSH and wrote this:

Code: Select all

[~] # cd /etc/init.d
[/etc/init.d] # bash killnas.sh


Usage: killnas.sh [commands]
commands:
        erase_dom_completely
        erase_dom_to_default
        reset_all_nas_disk_and_reboot


I would like to know the meaning these three parameters:

[*]erase_dom_completely
[*]erase_dom_to_default
[*]reset_all_nas_disk_and_reboot

Can someone explain what these parameters mean?

Thanks in advance.

dolbyman
Guru
Posts: 19985
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Factory reset - killnas.sh

Post by dolbyman » Wed Nov 15, 2017 10:09 am

erase dom completly ..pretty sure that would delete the dom that holds the nas bootup system ..wrasing this would make a nas recovery necessary

I would stay away from any commands involving dom

User avatar
MrVideo
Experience counts
Posts: 4714
Joined: Fri May 03, 2013 2:26 pm

Re: Factory reset - killnas.sh

Post by MrVideo » Wed Nov 15, 2017 11:39 am

What version firmware and build date? I do not have that script on my 869L NAS.
QTS 4.1.n/4.2.n/4.3.n MANUAL
Submit QNAP Support Ticket - QNAP Tutorials, FAQs, Downloads, Wiki - Product Support Status - Moogle's QNAP FAQ help V2
When you ask a question, please include the following
(Thanks to Toxic17 for the links)
QNAP md_checker nasreport (release 20180525)
===============================
Model: TS-869L -- RAM: 3G -- FW: QTS 4.1.4 Build 20150522 (used for data storage)
WD60EFRX-68L0BN1(x1)/68MYMN1(x7) Red HDDs -- RAID6: 8x6TB -- Cold spare: 1x6TB
Entware
===============================
Model: TS-451A -- RAM: 2G -- FW: QTS 4.3.6 Build 20190531 (used as a video server)
WL3000GSA6472(x3) White label NAS HDDs -- RAID5: 3x3TB
Entware -- MyKodi 17.3 (default is Kodi 16)
===============================
My 2017 Total Solar Eclipse Photos

User avatar
OneCD
Ask me anything
Posts: 7931
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Factory reset - killnas.sh

Post by OneCD » Wed Nov 15, 2017 12:59 pm

Google found a mention of it here, being used by someone who doesn't know what they're doing:
Tech4Freelancers wrote:We will need to run the killnas.sh command. Don’t be scared, your NAS will raise from the ashes like the Arabian phoenix. Type

Code: Select all

bash killnas.sh reset_all_nas_disk_and_reboot --yes-i-know-what-i-am-doing

No, I’m not kidding you. This is the actual command you have to type. Press Enter to confirm.

The device will start deleting the partitions on your hard drives.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

kreibich
Starting out
Posts: 14
Joined: Thu Jun 18, 2015 7:44 pm

Re: Factory reset - killnas.sh

Post by kreibich » Wed Nov 15, 2017 1:41 pm

MrVideo wrote:What version firmware and build date? I do not have that script on my 869L NAS.


TS-563-8G, latest firmware

User avatar
MrVideo
Experience counts
Posts: 4714
Joined: Fri May 03, 2013 2:26 pm

Re: Factory reset - killnas.sh

Post by MrVideo » Thu Nov 16, 2017 6:45 am

kreibich wrote:
MrVideo wrote:What version firmware and build date? I do not have that script on my 869L NAS.


TS-563-8G, latest firmware

That means absolutely nothing. There are a few versions available that are the "latest." Post your version and build date.
QTS 4.1.n/4.2.n/4.3.n MANUAL
Submit QNAP Support Ticket - QNAP Tutorials, FAQs, Downloads, Wiki - Product Support Status - Moogle's QNAP FAQ help V2
When you ask a question, please include the following
(Thanks to Toxic17 for the links)
QNAP md_checker nasreport (release 20180525)
===============================
Model: TS-869L -- RAM: 3G -- FW: QTS 4.1.4 Build 20150522 (used for data storage)
WD60EFRX-68L0BN1(x1)/68MYMN1(x7) Red HDDs -- RAID6: 8x6TB -- Cold spare: 1x6TB
Entware
===============================
Model: TS-451A -- RAM: 2G -- FW: QTS 4.3.6 Build 20190531 (used as a video server)
WL3000GSA6472(x3) White label NAS HDDs -- RAID5: 3x3TB
Entware -- MyKodi 17.3 (default is Kodi 16)
===============================
My 2017 Total Solar Eclipse Photos

Post Reply

Return to “System & Disk Volume Management”