I formated an OS drive by mistake last night, thought it was my flash drive...
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by AlpΓ‘r-Etele MΓ©der, licensed under CC BY 3.0
Almost did the same last night on a device that has its internal drive (flash) mounted as mmc and the USB drive was sda
If it makes you feel any better, I did something just as infuriating a few years ago.
I had set up my home media server, and had finally moved it to my garage with just a power cable and ethernet cable plugged in. Everything was working perfectly, but I needed to check something with the network settings. Being quite new to Linux, I used a remote desktop tool to log in and do everything through a gui.
I accidentally clicked the wrong item in the menu and disconnected the network. I only had a spare ps/2 keyboard and mouse, and as the server was an old computer, it would crash if I plugged a ps/2 device in while it was running*.
The remote desktop stayed open but frozen, mocking me for my obvious mistake and lack of planning, with the remote mouse icon stuck in place on the disconnect menu.
*I can't remember if that was a ps/2 thing, or something specific to my server, but I didn't want to risk it
Every network engineer must lock themselves out of a node at some point, it is a rite of passage.
Did this once on a router in a datacenter that was a flight away. Have remembered to set the reboot in future command since. As I typed the fatal command I remember part of my brain screaming not to hit enter as my finger approached the keyboard. π€¦ββοΈ
Have remembered to set the reboot in future command since
That's not a bad idea actually. I'll have to reuse that one. Thanks!
I have a failsafe service for one of my servers, it pings the router and if it hasn't reached it once for an entire hour then it will reboot the server.
This won't save me from all mistakes but it will prevent firewall, link state, routing and a few other issues when I'm not present.
There, but for the grace of god....
@[email protected] You're doing it wrong. Just setup a KVM behind your server. So then you never need to leave home again.
I knew a guy who did this and had to fly to Germany to fix it because he didnβt want to admit what heβd done.
This hits....
Remember what Bruce Lee said:
I fear not the man who has practiced 10,000 kicks once, but I fear the man who has practiced one kick 10,000 times.
Why don't you use chained commands, or better yet simply create an alias that chains down/up, then use the alias instead?
Because I plain forgot I was remote. It's as simple and as stupid as that.
We've all been there. If you do this stuff for a living, you've done that way more than once.
time to setup a console server so that you don't do that again.
Until they have to troubleshoot the console server ..
then setup a super console server. lol
I have once actually used a console server console server to troubleshoot a misbehaving console server.
i once worked at a place that had something like this and; it sounds silly; but i got a live demonstration that it was the smartest thing ever.
It's console servers all the way down (up?)
and you make each one geographically closer than the previous one until there's one right next to you. lol
That is why you have KVMs..
Fair enough. I've done worse in my time as a keyboard jockey.