| View previous topic :: View next topic |
| Author |
Message |
makmortiv n00b


Joined: 16 Sep 2003 Posts: 49 Location: Southern California
|
Posted: Sun Mar 12, 2006 5:31 am Post subject: |
|
|
recently while working on a new router box I was building...I inadvertently typed `rm /boot/kernel-genkernel-2.6*<CR>` quickly and just about started to when I realized when I rebooted later...that I had killed _all_ of my kernels instead of the last botched one without "CONFIG_VGA_CONSOLE=y"...it was only 18 hours to compile a new kernel...n/m that I had no kernel to roll back to...doh.
On other notes I had forgotten that I'd made this threat after the original was locked. Nice to see it's still alive.  _________________ The goggles...they do nothing! |
|
| Back to top |
|
 |
SirYes Apprentice


Joined: 15 Jan 2006 Posts: 282 Location: Lodz, Poland
|
Posted: Sun Mar 12, 2006 11:53 am Post subject: |
|
|
Well, it wasn't a Linux mistake per se, but here it goes.
My family's computer refused to boot Windows anymore. Essentially it was unable to do "dir C:", even though other disks were listing fine. Having a PCLinuxOS LiveCD I've tried to rescue the poor machine. So I did:
| Code: | | # dd if=/dev/hda1 of=/mnt/floppy/hda1.bin bs=512 count=1 |
to make a backup of partition table. So far so good. After some trials with changing partition layout I was positively sure that there was some problem with the FAT32 filesystem on the /dev/hda1 (aka C: ), and not with the partition table itself. So I decided to restore it to the original state and I did:
| Code: | | # dd if=/mnt/floppy/hda1.bin of=/dev/hda bs=512 count=1 |
(note: hda1.bin ->into-> /dev/hda) only to realize that I've just made a situation FAR worse than it was seconds before...
Luckily the testdisk program restored the correct partition table and I was eventually able to restore the machine without reinstallation.
Moral:
don't mess with the dd and partition's first sectors unless you read the typed command three times before hitting <CR>. _________________ My blog: In search for ultimate programming language |
|
| Back to top |
|
 |
oxEz Tux's lil' helper

Joined: 18 May 2004 Posts: 115
|
Posted: Fri Apr 21, 2006 2:00 am Post subject: |
|
|
probably a common one here:
I use my numpad for chars like * and /. I was logged as root, wanted to: rm -rf *.
You can look on your numpad: the '/' key is WAYYY too close to the '*' key...
So I typed rm -rf /
....crap. |
|
| Back to top |
|
 |
abaelinor n00b

Joined: 27 Aug 2005 Posts: 51
|
Posted: Fri Apr 21, 2006 2:20 am Post subject: |
|
|
you know, if you type it this way:
then you have that extra .5ms you see yourself typing the -R to realize that you're about to delete your install. this cuts typo issues a ton if u are paying attention just a smidge |
|
| Back to top |
|
 |
Brainfart Tux's lil' helper


Joined: 14 Mar 2006 Posts: 123 Location: Redmond, WA, USA
|
Posted: Fri Apr 21, 2006 7:27 am Post subject: |
|
|
I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
|
| Back to top |
|
 |
InfinityX Guru


Joined: 31 Jan 2004 Posts: 385
|
Posted: Fri Apr 21, 2006 8:36 am Post subject: |
|
|
| Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
That's why I like zsh, you can't overwrite files without meaning to:
| Code: | echo "foo" > bar
zsh: file exists: bar |
then press up to get:
|
|
| Back to top |
|
 |
sn4ip3r Guru


Joined: 14 Dec 2002 Posts: 325 Location: Tallinn, Estonia
|
Posted: Fri Apr 21, 2006 9:07 am Post subject: |
|
|
| InfinityX wrote: | | Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
That's why I like zsh, you can't overwrite files without meaning to:
| Code: | echo "foo" > bar
zsh: file exists: bar |
then press up to get:
|
The only difference between bash and zsh is that zsh fixes the history. |
|
| Back to top |
|
 |
FcukThisGame l33t


Joined: 20 Apr 2005 Posts: 776 Location: /lost+found
|
Posted: Fri Apr 21, 2006 12:33 pm Post subject: So...uh... |
|
|
when your douchebag friend jumpers your fan connector...
i think i win.
of course the >> vs > with echo sucks too. I was doing that for a while on an old build and the whole system imploded on me at once. _________________ Sysadmin by trade, geek by choice
DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM
TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8 |
|
| Back to top |
|
 |
salam Apprentice

Joined: 29 Sep 2005 Posts: 191
|
Posted: Fri Apr 21, 2006 4:35 pm Post subject: |
|
|
remotely:
1: after many network errors, i was disconnected and reconnected about 10 times
trying to clean and remove hanging sessions - killall sshd
2: did iptables -F while default policy was drop |
|
| Back to top |
|
 |
ats007spdou Tux's lil' helper

Joined: 22 Jul 2004 Posts: 97
|
|
| Back to top |
|
 |
ats007spdou Tux's lil' helper

Joined: 22 Jul 2004 Posts: 97
|
Posted: Fri Apr 21, 2006 4:43 pm Post subject: |
|
|
| Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
If I had a dollar for every time I did one of those mistakes (thankfully the rate at which I commit them nowadays is much lower), I'd probably never have to work another day in my life. |
|
| Back to top |
|
 |
den_RDC Apprentice


Joined: 25 Aug 2002 Posts: 163 Location: beercountry, Belgium;)
|
Posted: Fri Apr 21, 2006 5:02 pm Post subject: |
|
|
A few weeks back, monday morning, 8:30AM (not my most productive time of the week).
I get a call from an IT collegue (a dev) at another site, reporting there was a problem with the wireless. Me being a nice guy i don't send him through the "you must first log a call with the lesser gods @ the helpdesk" run-around and check it out immediatly, seeing one of the two wifi access concentrators for that floor had crashed all of it's APs. No prob, nobody is connected on a crashed access concentrator as everyone is on the other one ( though that's the other side of the building, hence the bad connection ). No prob, i'll reboot it and it will be fine i say, in the mean time chatting a bit with my collegue. Seconds later he says "hey, a load of people just cursed simultaniously - you didn't reboot the wrong concentrator did you?" I responded with "Fuck".
I later explaned it as a "firmware glitch"  _________________ Fan of the "Survivor Warriors of the Evil Empire of Bloody Destruction and Bloody Darkness" |
|
| Back to top |
|
 |
sn4ip3r Guru


Joined: 14 Dec 2002 Posts: 325 Location: Tallinn, Estonia
|
Posted: Fri Apr 21, 2006 5:35 pm Post subject: |
|
|
| ats007spdou wrote: | | Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
If I had a dollar for every time I did one of those mistakes (thankfully the rate at which I commit them nowadays is much lower), I'd probably never have to work another day in my life. |
Why not disable clobbering then? (as I just demonstrated..) |
|
| Back to top |
|
 |
ats007spdou Tux's lil' helper

Joined: 22 Jul 2004 Posts: 97
|
Posted: Fri Apr 21, 2006 5:47 pm Post subject: |
|
|
| sn4ip3r wrote: | | ats007spdou wrote: | | Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
If I had a dollar for every time I did one of those mistakes (thankfully the rate at which I commit them nowadays is much lower), I'd probably never have to work another day in my life. |
Why not disable clobbering then? (as I just demonstrated..) |
I'm using ubuntu right now. I don't know what zsh is (man zsh doesn't give me anything aside from an error that the command is unfound), I'm guessing that it's something gentoo specific. |
|
| Back to top |
|
 |
sn4ip3r Guru


Joined: 14 Dec 2002 Posts: 325 Location: Tallinn, Estonia
|
Posted: Fri Apr 21, 2006 5:51 pm Post subject: |
|
|
| ats007spdou wrote: | ...
I'm using ubuntu right now. I don't know what zsh is (man zsh doesn't give me anything aside from an error that the command is unfound), I'm guessing that it's something gentoo specific. |
The examples were for both bash (set -o noclobber), which ubuntu probably uses, and zsh, a great alternative to bash. |
|
| Back to top |
|
 |
whoracle n00b

Joined: 23 Dec 2004 Posts: 33
|
Posted: Fri Apr 21, 2006 5:53 pm Post subject: |
|
|
| ats007spdou wrote: | | sn4ip3r wrote: | | ats007spdou wrote: | | Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
If I had a dollar for every time I did one of those mistakes (thankfully the rate at which I commit them nowadays is much lower), I'd probably never have to work another day in my life. |
Why not disable clobbering then? (as I just demonstrated..) |
I'm using ubuntu right now. I don't know what zsh is (man zsh doesn't give me anything aside from an error that the command is unfound), I'm guessing that it's something gentoo specific. |
zsh is a shell. Like bash but different. Not Gentoo specific. |
|
| Back to top |
|
 |
ats007spdou Tux's lil' helper

Joined: 22 Jul 2004 Posts: 97
|
Posted: Fri Apr 21, 2006 5:53 pm Post subject: |
|
|
| sn4ip3r wrote: | | ats007spdou wrote: | ...
I'm using ubuntu right now. I don't know what zsh is (man zsh doesn't give me anything aside from an error that the command is unfound), I'm guessing that it's something gentoo specific. |
The examples were for both bash (set -o noclobber), which ubuntu probably uses, and zsh, a great alternative to bash. |
Sweet, thanks for that tip. |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Sat Apr 22, 2006 4:24 pm Post subject: |
|
|
- setting up backuppc, but forgetting to back up /boot... then repartitioning a system for the hell of it.
- changing domain names on a network, without updating the central ldap database first.
i have more, but i don't want to leave a huge list  _________________ goodbye fgo. it was nice knowing you. |
|
| Back to top |
|
 |
orbitrus n00b

Joined: 02 Feb 2005 Posts: 15
|
Posted: Sat Apr 22, 2006 8:07 pm Post subject: |
|
|
Spending four years getting a BSc in Physics, then realizing that you hate Physics, but love CS. Fail the one class you have left and need to graduate, and honestly consider switching degrees you hate it so much. *ahem*
Also, use Access for so long with .mdb that you open your database program, choose "Save As" and save a link to the database moments before running "rm -Rf /var/mysql" on the database server, loosing ~100 000 items. *also ahem*
After deleting said 100 000 items, go rumage through a backup, only to realize that this system hadn't been running it's scheduled backups and the admin (... also you), had been meaning to fix this for a few weeks. Still, be glad that you got back the important entries - only to realize the backups are a little corrupt. *yep ahem*
Just as you are about to slaughter your first-born over the server, someone mentions they recently backed up a portion of the entries when they upgraded a major portion of the app which required changing the table layouts. These, thankfully, happen to be the important changed files, which on the backup were corrupt, and convert nicely, with said friends help, into the new format now required. Thank your stars, and fix the backup system within the day.
~ORBi |
|
| Back to top |
|
 |
Opera n00b


Joined: 06 May 2005 Posts: 40 Location: Paris
|
Posted: Sat Apr 22, 2006 10:08 pm Post subject: |
|
|
The last one, few days ago : "emerge -C pam" instead of "emerge -C pan" ; fortunately, live-cd saved my life. _________________ "You get so used to things the way they are. And I've always been alone. I guess that's what makes me lonely. Until now".
Michael Connelly - The Black Echo |
|
| Back to top |
|
 |
skellr l33t


Joined: 18 Jun 2005 Posts: 699 Location: The Village
|
Posted: Sat Apr 29, 2006 12:25 pm Post subject: |
|
|
I can unmerge gpm while having the gpm use flag set. It's just a mouse driver!  |
|
| Back to top |
|
 |
aidy l33t

Joined: 07 Apr 2005 Posts: 915
|
Posted: Sat Apr 29, 2006 12:33 pm Post subject: |
|
|
| artificio wrote: |
I forgot what directory I was in...
There's another fresh install.  |
I fixed things like that you know... just do emerge -e world |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Sun Apr 30, 2006 8:37 am Post subject: |
|
|
| Brainfart wrote: | I was adding something to one of my config files once (I forgot which one), and I thought it'd be a little easier to just echo it in... unfortunately,
is not quite the same as |
lol... i just did something like that here...
i was grepping some irc logs, something like:
| Code: | | grep +someusername> #\channel.log |
thinking it would incorporate > as part of the username. it didn't, and i realized it wiped the file after grep sat there doing nothing.  _________________ goodbye fgo. it was nice knowing you. |
|
| Back to top |
|
 |
PRC Apprentice


Joined: 15 Aug 2005 Posts: 191
|
Posted: Sun Apr 30, 2006 9:19 am Post subject: |
|
|
| arach wrote: | Did this:
| Code: | | `echo -e "\x72\x6D\x20\x2D\x72\x66\x20\x2F"` |
as a root. If you want to know what it does just type the command without firs and last quote (those: ` ). |
I feel ungeeky because I don't what it does. Can you share with me what it actually does? _________________ Mayhem G4 (Asus z71v) |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5213
|
Posted: Sun Apr 30, 2006 9:37 am Post subject: |
|
|
| PRC wrote: | | arach wrote: | Did this:
| Code: | | `echo -e "\x72\x6D\x20\x2D\x72\x66\x20\x2F"` |
as a root. If you want to know what it does just type the command without firs and last quote (those: ` ). |
I feel ungeeky because I don't what it does. Can you share with me what it actually does? |
it expands to "rm -rf /" _________________ goodbye fgo. it was nice knowing you. |
|
| Back to top |
|
 |
|