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 »

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.
User avatar
dolbyman
Guru
Posts: 35273
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Factory reset - killnas.sh

Post by dolbyman »

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: 4742
Joined: Fri May 03, 2013 2:26 pm

Re: Factory reset - killnas.sh

Post by MrVideo »

What version firmware and build date? I do not have that script on my 869L NAS.
QTS MANUALS
Submit QNAP Support Ticket - QNAP Tutorials, FAQs, Downloads, Wiki - Product Support Status - Moogle's QNAP FAQ help V2
Asking a question, include the following
(Thanks to Toxic17)
QNAP md_checker nasreport (release 20210309)
===============================
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.5.2 Build 20210202 (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 | My 2019 N. Ireland Game of Thrones tour
User avatar
OneCD
Guru
Posts: 12155
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Factory reset - killnas.sh

Post by OneCD »

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.

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

Re: Factory reset - killnas.sh

Post by kreibich »

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: 4742
Joined: Fri May 03, 2013 2:26 pm

Re: Factory reset - killnas.sh

Post by MrVideo »

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 MANUALS
Submit QNAP Support Ticket - QNAP Tutorials, FAQs, Downloads, Wiki - Product Support Status - Moogle's QNAP FAQ help V2
Asking a question, include the following
(Thanks to Toxic17)
QNAP md_checker nasreport (release 20210309)
===============================
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.5.2 Build 20210202 (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 | My 2019 N. Ireland Game of Thrones tour
Post Reply

Return to “System & Disk Volume Management”