Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The Official Dumb Mistakes Thread (TM) part deux
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
makmortiv
n00b
n00b


Joined: 16 Sep 2003
Posts: 49
Location: Southern California

PostPosted: Sun Mar 12, 2006 5:31 am    Post subject: Reply with quote

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 :cry: 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. 8)
_________________
The goggles...they do nothing!
Back to top
View user's profile Send private message
SirYes
Apprentice
Apprentice


Joined: 15 Jan 2006
Posts: 282
Location: Lodz, Poland

PostPosted: Sun Mar 12, 2006 11:53 am    Post subject: Reply with quote

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... :oops:

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
View user's profile Send private message
oxEz
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2004
Posts: 115

PostPosted: Fri Apr 21, 2006 2:00 am    Post subject: Reply with quote

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
View user's profile Send private message
abaelinor
n00b
n00b


Joined: 27 Aug 2005
Posts: 51

PostPosted: Fri Apr 21, 2006 2:20 am    Post subject: Reply with quote

you know, if you type it this way:
Quote:
rm / -R

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
View user's profile Send private message
Brainfart
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2006
Posts: 123
Location: Redmond, WA, USA

PostPosted: Fri Apr 21, 2006 7:27 am    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar
Back to top
View user's profile Send private message
InfinityX
Guru
Guru


Joined: 31 Jan 2004
Posts: 385

PostPosted: Fri Apr 21, 2006 8:36 am    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar


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:
Code:
echo "foo" >| bar
Back to top
View user's profile Send private message
sn4ip3r
Guru
Guru


Joined: 14 Dec 2002
Posts: 325
Location: Tallinn, Estonia

PostPosted: Fri Apr 21, 2006 9:07 am    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar


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:
Code:
echo "foo" >| bar


The only difference between bash and zsh is that zsh fixes the history.
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Fri Apr 21, 2006 12:33 pm    Post subject: So...uh... Reply with quote

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
View user's profile Send private message
salam
Apprentice
Apprentice


Joined: 29 Sep 2005
Posts: 192

PostPosted: Fri Apr 21, 2006 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
ats007spdou
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 97

PostPosted: Fri Apr 21, 2006 4:41 pm    Post subject: Reply with quote

I believe that my stupid action deserves an honorable mention...

http://forums.gentoo.org/viewtopic-p-2172810-highlight-partition.html#2172810
Back to top
View user's profile Send private message
ats007spdou
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 97

PostPosted: Fri Apr 21, 2006 4:43 pm    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar

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
View user's profile Send private message
den_RDC
Apprentice
Apprentice


Joined: 25 Aug 2002
Posts: 164
Location: beercountry, Belgium;)

PostPosted: Fri Apr 21, 2006 5:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
sn4ip3r
Guru
Guru


Joined: 14 Dec 2002
Posts: 325
Location: Tallinn, Estonia

PostPosted: Fri Apr 21, 2006 5:35 pm    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar

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
View user's profile Send private message
ats007spdou
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 97

PostPosted: Fri Apr 21, 2006 5:47 pm    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar

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
View user's profile Send private message
sn4ip3r
Guru
Guru


Joined: 14 Dec 2002
Posts: 325
Location: Tallinn, Estonia

PostPosted: Fri Apr 21, 2006 5:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
whoracle
n00b
n00b


Joined: 23 Dec 2004
Posts: 33

PostPosted: Fri Apr 21, 2006 5:53 pm    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar

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
View user's profile Send private message
ats007spdou
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 97

PostPosted: Fri Apr 21, 2006 5:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sat Apr 22, 2006 4:24 pm    Post subject: Reply with quote

- 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 :wink: :evil: :lol:
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
orbitrus
n00b
n00b


Joined: 02 Feb 2005
Posts: 15

PostPosted: Sat Apr 22, 2006 8:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Opera
n00b
n00b


Joined: 06 May 2005
Posts: 40
Location: Paris

PostPosted: Sat Apr 22, 2006 10:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 706
Location: The Village

PostPosted: Sat Apr 29, 2006 12:25 pm    Post subject: Reply with quote

I can unmerge gpm while having the gpm use flag set. It's just a mouse driver! :roll:
Back to top
View user's profile Send private message
aidy
l33t
l33t


Joined: 07 Apr 2005
Posts: 915

PostPosted: Sat Apr 29, 2006 12:33 pm    Post subject: Reply with quote

artificio wrote:
Code:
chmod -R 555


I forgot what directory I was in...
There's another fresh install. :D

I fixed things like that you know... just do emerge -e world
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sun Apr 30, 2006 8:37 am    Post subject: Reply with quote

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,
Quote:
echo "foo" > bar
is not quite the same as
Quote:
echo "foo" >> bar


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. :roll: :roll: :lol:
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
PRC
Apprentice
Apprentice


Joined: 15 Aug 2005
Posts: 191

PostPosted: Sun Apr 30, 2006 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sun Apr 30, 2006 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
Page 3 of 12

 
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