| View previous topic :: View next topic |
| Author |
Message |
john.newman Tux's lil' helper

Joined: 17 Oct 2009 Posts: 78
|
Posted: Wed May 25, 2011 10:59 pm Post subject: Ways you have broken your gentoo install in the past? |
|
|
Many years ago, gentoo was a lot of walking on eggshells for me. I've destroyed installs in a number of ways, and i'm sure most everyone has ran into some interesting mistakes. However, I don't think any of them were totally unrepairable (besides the accidental "rm -rf" type commands (and yes, I've done /*, more than once )). The question of knowing how to or taking the time to repair it is another story.
Now I don't worry about it as much, and if there's something out there I haven't done yet, it would be helpful to know about it now.
A few things that i've done
# emerge -C linux-headers # that was difficult to repair - I've -C'd a lot of important packages.. libcrypt etc)
# echo '"ACCEPT_KEYWORDS="~amd64"' >> /etc/make.conf # makes for a fun time.. noob thing to do
# rm -rf * # a lot of times due to carelessness with the ! trick
USE="a million different flags that you dont need"
-O3
be careful with that ! trick  |
|
| Back to top |
|
 |
BradN Advocate


Joined: 19 Apr 2002 Posts: 2325 Location: Wisconsin (USA)
|
Posted: Thu May 26, 2011 12:02 am Post subject: |
|
|
I think one of the more insidious gotchas is how to remove all hidden files/dirs from the current directory.
Hint: rm -rf .* is a very bad idea.
And honestly, I don't know who decided ! would be a nice character to use for a useless (in my opinion) history expansion function. The couple times I did want to use it, I would put the ! on the wrong side and make it worse. |
|
| Back to top |
|
 |
Jaglover Advocate


Joined: 29 May 2005 Posts: 3971 Location: Saint Amant, Acadiana
|
Posted: Thu May 26, 2011 12:05 am Post subject: |
|
|
Can't add anything exceptional ... worst I've done was removing /var/db/pkg/* ... in an attempt to free some disk space. _________________ Please learn how to denote units correctly! |
|
| Back to top |
|
 |
djdunn l33t


Joined: 26 Dec 2004 Posts: 617 Location: Under the moon and all the stars in the sky.
|
Posted: Thu May 26, 2011 5:11 am Post subject: |
|
|
I had the kernel crash all the time when i decided to compile it with -O3 _________________ Now, with penguins, (cuddly such), "contented" means it has either just gotten laid, or it's stuffed on herring. Take it from me, I'm an expert on penguins, those are really the only two options.
--Linus Torvalds |
|
| Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1931 Location: Zurich, Switzerland
|
Posted: Thu May 26, 2011 5:26 am Post subject: |
|
|
I followed an install guide, which recommended acovea optimizations. The system was somewhat unstable.
did a dd if=/dev/zero of=/dev/sda7 bs=4k skip=123456 (instead of seek) on my var partition to fix a dead sector. As the last backup was more than a Year old, reinstalling was faster.
Trying to run core2 optimized code on a amd system, and wondering why my multimedia apps and browsers were crashing. SSSE3 is not supported on amd.
V. _________________ read the portage output!
If my answer is too short, just ask for an explanation. |
|
| Back to top |
|
 |
forrestfunk81 Guru


Joined: 07 Feb 2006 Posts: 355 Location: münchen.de
|
Posted: Thu May 26, 2011 12:39 pm Post subject: |
|
|
In one of my first installs i somehow uninstalled coreutils. So no cp, mv, ls and portage couldn't install anything. _________________ # cd /pub/
# more beer |
|
| Back to top |
|
 |
ToeiRei Veteran


Joined: 03 Jan 2005 Posts: 1146 Location: Austria
|
Posted: Thu May 26, 2011 1:11 pm Post subject: |
|
|
An old portage update back in about the year 2001 or such broke gcc - that was quite some hell here.
Besides that I had some experimental stuff from that broke python, which kills emerge/portage
Other fun included fucked up kernel configs, graphit optimization and a few other things I don't remember anymore (there were plenty as I started back in 1999 with enoch linux) _________________ Blog | btrfs | Please stand by - The mailer daemon is busy burning your messages in hell... |
|
| Back to top |
|
 |
albright Veteran


Joined: 16 Nov 2003 Posts: 1898 Location: Near Toronto
|
Posted: Thu May 26, 2011 2:26 pm Post subject: |
|
|
Not destruction, but this was painful
| Code: | | echo "whatever" > /etc/portage/package.keywords |
_________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
| Back to top |
|
 |
rh1 Guru


Joined: 10 Apr 2010 Posts: 495
|
Posted: Thu May 26, 2011 3:34 pm Post subject: |
|
|
| One time I was doing a test install on another partition but the problem was i typoed the mount /dev/sda* command and ended up mounting my current install instead. Got interesting after i untarred a new stage3 which has all stable packages overtop of my ~amd64 system. |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3673
|
Posted: Thu May 26, 2011 4:41 pm Post subject: |
|
|
| i gave my computer to my neightbor for 2 days |
|
| Back to top |
|
 |
piedar Tux's lil' helper

Joined: 09 Aug 2010 Posts: 80
|
Posted: Thu May 26, 2011 5:50 pm Post subject: |
|
|
Hibernate with one kernel, resume with another. Spend days recovering files.
Last edited by piedar on Thu May 26, 2011 8:21 pm; edited 1 time in total |
|
| Back to top |
|
 |
ToeiRei Veteran


Joined: 03 Jan 2005 Posts: 1146 Location: Austria
|
Posted: Thu May 26, 2011 6:57 pm Post subject: |
|
|
zfs, reiser4... no comment. _________________ Blog | btrfs | Please stand by - The mailer daemon is busy burning your messages in hell... |
|
| Back to top |
|
 |
Kollin Veteran


Joined: 25 Feb 2006 Posts: 1033 Location: Sofia/Bulgaria
|
Posted: Thu May 26, 2011 7:20 pm Post subject: |
|
|
| Code: | eselect python list
Available Python interpreters:
[1] python2*
[2] python3
|
| Code: | | eselect python set 2 |
_________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29952 Location: 56N 3W
|
Posted: Thu May 26, 2011 8:04 pm Post subject: |
|
|
I've always run ~arch so I expect a surprise to keep me on my toes now and again.
My two nasty moments were, doing the Xorg update to the split ebuilds and finding libexpat thrown in for free.
That meant no Xorg, as I had to uninstall it, and everything that uses libexpat, most of the rest of the system, broken as the ABI had changed.
That took a whole weekend to unpick.
In the early days of baselayout2 (I installed in mid 2007) openrc was only available from git. Now, it was late at night and my firewall blocked git.
I managed to get baselayout2 without openrc and decided that was a good time to shut down and go to bed.
As, I run ~arch, I set FEATURES=buildpkg, so I have binaries of everything I build. The get out of jail free card was to boot the CD, get into the chroot and emerge -K =baselayout-1. Then I was able to have another go. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
genstorm Advocate


Joined: 05 Apr 2007 Posts: 2238 Location: Austria
|
Posted: Thu May 26, 2011 8:40 pm Post subject: |
|
|
best self-ownage: uninstalling python (via --depclean methinks)
~arch-ownage: lvm2 update that broke startup with separate /usr partitions
hardware-ownage: bad memory that subsequently killed the system
Only the last made a rebuild necessary though. _________________ backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic |
|
| Back to top |
|
 |
krinn Advocate


Joined: 02 May 2003 Posts: 3673
|
Posted: Thu May 26, 2011 8:50 pm Post subject: |
|
|
ah remind me i have been trap by wget & e2fsprogs upgrade times ago (the good old days without revdep-rebuild).
and i do remember been one time (never get one again after that) by ati radeon pissing drivers that weren't supporting my card.
Not really breaking my system, but i really do remember i was really upset to brought a kickass 3d card that i've paid big money to just run xorg thru vesa at end. |
|
| Back to top |
|
 |
ToeiRei Veteran


Joined: 03 Jan 2005 Posts: 1146 Location: Austria
|
Posted: Fri May 27, 2011 7:05 am Post subject: |
|
|
But there's one thing for sure: we did learn from our mistakes I'm pretty sure about that _________________ Blog | btrfs | Please stand by - The mailer daemon is busy burning your messages in hell... |
|
| Back to top |
|
 |
Yamakuzure l33t

Joined: 21 Jun 2006 Posts: 945 Location: Bardowick, Germany
|
Posted: Fri May 27, 2011 9:04 am Post subject: |
|
|
The most ugly thing I ever did was to add Graphite's loop parallelization to the default C(X)FLAGS. After "emerge --emptytree @world" and a reboot I had about 5 to 10 Minutes before the "self-built-fork-bomb" lead to a kernel panic. _________________ I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other!  |
|
| Back to top |
|
 |
dE_logics Veteran


Joined: 02 Jan 2009 Posts: 1979 Location: $TERM
|
Posted: Fri May 27, 2011 3:16 pm Post subject: |
|
|
Bash history mistakes, I've a habit of -
ionice -c 3 rm -Rf *
However I also -
ionice -c 3 rsync/httrack/cp etc....
And sometimes when passing through bash history to reexecute rsync/httrack/cp etc.... I see the 'ionice -c 3' and hit enter to realize it was 'rm -Rf *'. And the whole day goes bad.
| Quote: | | The most ugly thing I ever did was to add Graphite's loop parallelization to the default C(X)FLAGS. After "emerge --emptytree @world" and a reboot I had about 5 to 10 Minutes before the "self-built-fork-bomb" lead to a kernel panic. |
Guess what, I was about to do that too, but I discarded
| ToeiRei wrote: | | zfs, reiser4... no comment. |
REISER4... HOLY SHIT!! specially with 2.6.38. _________________ Buy from companies supporting opensource -- IBM, Dell, HP, Hitachi, Google etc...
Disfavor companies supporting only Win -- Logitech, Epson, Adobe, Autodesk, Pioneer, Kingston, WD, Yahoo, MSI, XFX
My blog |
|
| Back to top |
|
 |
BradN Advocate


Joined: 19 Apr 2002 Posts: 2325 Location: Wisconsin (USA)
|
Posted: Fri May 27, 2011 4:52 pm Post subject: |
|
|
| To be fair, reiser4 would probably have been much more kick-ass had certain events not occurred and the main developer not residing in prison... |
|
| Back to top |
|
 |
BradN Advocate


Joined: 19 Apr 2002 Posts: 2325 Location: Wisconsin (USA)
|
|
| Back to top |
|
 |
Hypnos Advocate


Joined: 18 Jul 2002 Posts: 2756 Location: Omnipresent
|
Posted: Sun May 29, 2011 1:49 am Post subject: |
|
|
Been using Gentoo since 2002, and administering Linux systems since 1995.
Never a fuck up.
It's possible that I'm forgetting some potential disasters because I have always kept full backups (currently, with rsnapshot) and easily corrected any mistakes with a boot disk.
These have always been personal and research team machines. Perhaps the stakes would be higher in a multi-user environment in which I was not acquainted with all the users. _________________ Personal overlay | Simple backup scheme |
|
| Back to top |
|
 |
Yamakuzure l33t

Joined: 21 Jun 2006 Posts: 945 Location: Bardowick, Germany
|
Posted: Tue May 31, 2011 11:08 am Post subject: |
|
|
| dE_logics wrote: | | Bash history mistakes, I've a habit of - | *hehe* I know those only too well...  | dE_logics wrote: | | Yamakuzure wrote: | | The most ugly thing I ever did was to add Graphite's loop parallelization to the default C(X)FLAGS. | Guess what, I was about to do that too, but I discarded  | Loop parallelization can do wonders on *some* packages. To be honest I've set up the whole /etc/portage/package.env thing for that. Quite nasty and a lot of testing in the beginning, but where it works, it works.  _________________ I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other!  |
|
| Back to top |
|
 |
yoshi314 l33t


Joined: 30 Dec 2004 Posts: 796 Location: PL
|
Posted: Tue May 31, 2011 12:40 pm Post subject: |
|
|
| Yamakuzure wrote: | | dE_logics wrote: | | Bash history mistakes, I've a habit of - | *hehe* I know those only too well...  | dE_logics wrote: | | Yamakuzure wrote: | | The most ugly thing I ever did was to add Graphite's loop parallelization to the default C(X)FLAGS. | Guess what, I was about to do that too, but I discarded  | Loop parallelization can do wonders on *some* packages. To be honest I've set up the whole /etc/portage/package.env thing for that. Quite nasty and a lot of testing in the beginning, but where it works, it works.  |
can you share some examples where it really works? _________________ ~amd64, ~x86
shrink your /usr/portage with squashfs+aufs |
|
| Back to top |
|
 |
Frustie Tux's lil' helper


Joined: 31 Aug 2007 Posts: 94 Location: My own little planet.
|
Posted: Tue May 31, 2011 12:41 pm Post subject: |
|
|
apache-apr killed my system at some point
and the best, suddenly missing ext3 module from initrd _________________ If we ignore it maybe it will go away. |
|
| Back to top |
|
 |
|