Whoops...

bobross419

Golden Member
Oct 25, 2007
1,981
1
0
Code:
> sudo rm -rf /lib /src Makefile
>

Week 3 of playing with LFS and I accidentally put the '/' on the wrong side of 'lib'.

All I can do at this point is laugh :D

Anyone else care to share their whoops moments?
 

skyking

Lifer
Nov 21, 2001
22,365
5,329
146
Code:
> sudo rm -rf /lib /src Makefile
>
Week 3 of playing with LFS and I accidentally put the '/' on the wrong side of 'lib'.

All I can do at this point is laugh :D

Anyone else care to share their whoops moments?
too many years ago to remember what, but I had to go to console more than once for fumblefingering a firewall rule in BSD.
 

lxskllr

No Lifer
Nov 30, 2004
57,931
8,190
126
A few weeks ago I hosed my Ubuntu install. I had a dual boot setup with XP. I never used XP, and since I changed hardware, it didn't boot anyway. Well, I formatted that whole part of the drive without thinking that was where the MBR was. Needless to say, it wouldn't boot. That could have been easy to recover from, but I got the brilliant idea of running fsck on the remaining partition. That ensured I'd never be able to use it again :^S

I now have a shiny Debian install, and I've given the TestDisk suite a good workout recovering files from the hosed section of drive. It really is a nice package. Live and learn. The do something, even if it's wrong philosophy isn't always the best approach :^D
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,332
4,006
75
One time I was playing with /dev/snd. You can write data there and hear it in the speakers. You can also record data from there and play it back by writing it back. Sadly, it has to be accessed as root.

So, I was playing with that, when I accidentally typed a command to write to /dev/sda instead of /dev/snd. :$ Fortunately, I had a useless partition at the start of the drive, but I wiped out my main partition table. Eventually, I did find a utility to rebuild it, but it took several days.