rm -rf / via ssh login

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
JPEG
DD-WRT Novice


Joined: 30 Jun 2015
Posts: 1

PostPosted: Tue Jun 30, 2015 18:52    Post subject: rm -rf / via ssh login Reply with quote
This is a purely hypothetical question at this point, but what would happen if you were to rm -rf the root directory of the router via a ssh session. I guess what I'm asking is what would happen to the router / how would the router respond to such a request and is it possible to recover from something like that by pushing the reset button or by going through the steps to unbrick the router.

TL;DR what happens if you run rm -rf / on a dd-wrt router
Sponsor
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Fri Jul 03, 2015 23:05    Post subject: Re: rm -rf / via ssh login Reply with quote
It will erase all writeable partitions. Firmware is generally not mounted as writeable, so it won't be deleted.
_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum