LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   I'm an idiot moments. (https://www.linuxquestions.org/questions/linux-general-1/im-an-idiot-moments-4175510176/)

salparadise 07-07-2014 12:06 AM

Accidentally wiped a 250Gig partition with my entire music and video collection on it and about 3 years worth of emails and ICQ logs.

frieza 07-07-2014 01:07 AM

Quote:

Originally Posted by salparadise (Post 5199766)
Accidentally wiped a 250Gig partition with my entire music and video collection on it and about 3 years worth of emails and ICQ logs.

done that too
did it to a friend of mine by accident with a 1TB hard drive with irreplaceable photos of friends of his that had passed on, not pretty.

onebuck 07-07-2014 07:31 AM

Member Response
 
Hi,

I told my students to always 'Measure twice & cut once'. Check & re-check are both good rules to use everyday if you do not want a 'gotcha moment'. ©

Have fun & enjoy!
:hattip:

brianL 07-07-2014 11:06 AM

Hey, Gary! You seem to have become obsessed with copyrighting everything. ©
:D ©

PrinceCruise 07-07-2014 11:33 AM

I once wiped Slackware 13.1 from my laptop just because I couldn't get the Broadcom wireless to work on that. It took me almost an year to come back to 13.37. I was an idiot.

Oh and once I logged in to one of my organization's production DB server using root and did some unspeakable things. :D

Regards.

Germany_chris 07-07-2014 11:36 AM

I tend to make myself feel like an idiot every day at least once.

Two fridays ago I was trying to get home (180km away) but I needed to print a 7' banner I'd made before going home and the f'ing thing would only print partially half to be exact. I futzed and futzed eventually I turned the banner into a poster figuring I'd just print 3 and it still would only print half the image. I finally said F'it and I went home about half way through the drive home I realized I was trying to print to my plotter at 600 dpi which it won't do ( thanks Ps for keeping the last setting) so the Sunday before my daughters birthday I got to make the 360km commute to print off that stupid banner. Needless to say my wife was less than pleased and there is nothing worse than a pissed off German woman.

Hungry ghost 07-07-2014 12:06 PM

Quote:

Originally Posted by onebuck (Post 5199921)
I told my students to always 'Measure twice & cut once'. Check & re-check are both good rules to use everyday if you do not want a 'gotcha moment'. ©

Yes, that's what I always do. Being mildly obsessive, I'm naturally a double-checker (and even triple-checker). But even so, I've had a few dumb moments :).

onebuck 07-07-2014 12:46 PM

Member Response
 
Hi,

Quote:

Originally Posted by brianL (Post 5200030)
Hey, Gary! You seem to have become obsessed with copyrighting everything. ©
:D ©

And the problem is.... :)

brianL 07-07-2014 12:58 PM

No problem...a bit strange, that's all. ©
:)©

Habitual 07-08-2014 11:59 AM

I've pulled every bone head move there is.
It's what has made me the SysAdmin I am today.

Luckily for me, I fix way more than I break.

maples 07-10-2014 09:57 PM

Using --checksum with rsync...my server is slow to begin with, and that one little flag made it a whole lot worse.

replica9000 07-10-2014 10:32 PM

Quote:

Originally Posted by maples (Post 5202057)
Using --checksum with rsync...my server is slow to begin with, and that one little flag made it a whole lot worse.

I did the same thing a couple weeks ago. Tried to sync 3TB of data with the --checksum flag. Woke up 7 hours later to find only about 5 files had been synced.

maples 07-11-2014 09:16 AM

Quote:

Originally Posted by replica9000 (Post 5202071)
I did the same thing a couple weeks ago. Tried to sync 3TB of data with the --checksum flag. Woke up 7 hours later to find only about 5 files had been synced.

Before I looked at the usernames, I thought for sure that you were the one who started this thread: http://www.linuxquestions.org/questi...on-4175509597/

suicidaleggroll 07-11-2014 11:41 AM

Thought I was in ~/bin once, and wanted to clear it out, so I ran "rm -f *". Turns out I was in /bin, and was logged in as root.

I ctrl+c'd within about 5 seconds, but by then I had already lost basically the entire directory, including cp, mv, vi, etc.

Luckily I had another system with the same OS nearby and was able to scp the contents of /bin over, fixing the problem.




Another stupid issue that I've run into MANY times is a result of auto completion putting a space after the file when it matches it. I would want to remove all files with the same prefix, so I would type
Code:

rm -f prefix<tab>*
When there is more than one file matching that prefix, it's fine. The tab matches out to the end of the common prefix, then the * tells it to match all of the files with that prefix. When there is ONE file matching that prefix, the auto completion puts a space after it, and the command becomes
Code:

rm -f nameoffile *
Which, of course, means "remove nameoffile, as well as everything else in the cwd".

I probably made that mistake 4-5 times before I finally got fed up enough that I modified my bash auto-completion rules so that when I'm running rm, it doesn't put a space after the match.

goumba 07-13-2014 06:06 AM

Seems like the formatting drive thing is the common story, I'll add mine.

I had built a Debian Live image for a USB stick which I use at work. Usually I turn the laptop on, plug in the USB stick, and dd the image. All of my partitions are on the single laptop hard drive (sda)

This time, I threw the USB stick in first, and boot. Everything boots fine. Get to a terminal, and
Code:

dd if=binary.img of=/dev/sdb
Then I realize it's late, and will do this tomorrow instead. I Ctrl+C the dd process, and proceed to shutdown. First, I eject the USB stick.

Code:

$ eject /dev/sdb
umount: /home: device is busy.
        (In some cases useful info about processes that use
        the device is found by lsof(8) or fuser(1))
eject: unmount of `/home' failed

HUH??? WHAT??? That ain't right!!!

run dmesg, and it turns out for whatever reason, the USB stick was detected as /dev/sda. Insert expletive here. Since when???

Turns out I had written about half of a gig to the laptop's hard drive. Yup. That sucks.

Fortunately the EFI partitions were first, followed by the root partition. home, usr and etc were unharmed.

I learned a lot about successfully recovering a GPT the next few days. Reinstalled Debian and was back in business. No data recovery needed as I was able to put the partitions back in place.


All times are GMT -5. The time now is 06:24 PM.