Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ways you have broken your gentoo install in the past?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
john.newman
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2009
Posts: 78

PostPosted: Wed May 25, 2011 10:59 pm    Post subject: Ways you have broken your gentoo install in the past? Reply with quote

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 :roll: )). 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 :idea: :arrow:
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2325
Location: Wisconsin (USA)

PostPosted: Thu May 26, 2011 12:02 am    Post subject: Reply with quote

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


Joined: 29 May 2005
Posts: 3971
Location: Saint Amant, Acadiana

PostPosted: Thu May 26, 2011 12:05 am    Post subject: Reply with quote

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


Joined: 26 Dec 2004
Posts: 617
Location: Under the moon and all the stars in the sky.

PostPosted: Thu May 26, 2011 5:11 am    Post subject: Reply with quote

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


Joined: 27 Jul 2004
Posts: 1931
Location: Zurich, Switzerland

PostPosted: Thu May 26, 2011 5:26 am    Post subject: Reply with quote

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


Joined: 07 Feb 2006
Posts: 355
Location: münchen.de

PostPosted: Thu May 26, 2011 12:39 pm    Post subject: Reply with quote

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


Joined: 03 Jan 2005
Posts: 1146
Location: Austria

PostPosted: Thu May 26, 2011 1:11 pm    Post subject: Reply with quote

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


Joined: 16 Nov 2003
Posts: 1898
Location: Near Toronto

PostPosted: Thu May 26, 2011 2:26 pm    Post subject: Reply with quote

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


Joined: 10 Apr 2010
Posts: 495

PostPosted: Thu May 26, 2011 3:34 pm    Post subject: Reply with quote

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


Joined: 02 May 2003
Posts: 3673

PostPosted: Thu May 26, 2011 4:41 pm    Post subject: Reply with quote

i gave my computer to my neightbor for 2 days
Back to top
View user's profile Send private message
piedar
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2010
Posts: 80

PostPosted: Thu May 26, 2011 5:50 pm    Post subject: Reply with quote

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


Joined: 03 Jan 2005
Posts: 1146
Location: Austria

PostPosted: Thu May 26, 2011 6:57 pm    Post subject: Reply with quote

zfs, reiser4... no comment.
_________________
Blog | btrfs | Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1033
Location: Sofia/Bulgaria

PostPosted: Thu May 26, 2011 7:20 pm    Post subject: Reply with quote

Code:
eselect python list
Available Python interpreters:
  [1]   python2*
  [2]   python3
 


Code:
eselect python set 2


Code:
python-updater

_________________
"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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29952
Location: 56N 3W

PostPosted: Thu May 26, 2011 8:04 pm    Post subject: Reply with quote

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


Joined: 05 Apr 2007
Posts: 2238
Location: Austria

PostPosted: Thu May 26, 2011 8:40 pm    Post subject: Reply with quote

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


Joined: 02 May 2003
Posts: 3673

PostPosted: Thu May 26, 2011 8:50 pm    Post subject: Reply with quote

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


Joined: 03 Jan 2005
Posts: 1146
Location: Austria

PostPosted: Fri May 27, 2011 7:05 am    Post subject: Reply with quote

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


Joined: 21 Jun 2006
Posts: 945
Location: Bardowick, Germany

PostPosted: Fri May 27, 2011 9:04 am    Post subject: Reply with 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.
_________________
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
View user's profile Send private message
dE_logics
Veteran
Veteran


Joined: 02 Jan 2009
Posts: 1979
Location: $TERM

PostPosted: Fri May 27, 2011 3:16 pm    Post subject: Reply with quote

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

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 :wink: :lol:

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


Joined: 19 Apr 2002
Posts: 2325
Location: Wisconsin (USA)

PostPosted: Fri May 27, 2011 4:52 pm    Post subject: Reply with quote

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


Joined: 19 Apr 2002
Posts: 2325
Location: Wisconsin (USA)

PostPosted: Sat May 28, 2011 10:24 pm    Post subject: Reply with quote

Got a brand new one. See here: http://forums.gentoo.org/viewtopic-p-6702881.html
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2756
Location: Omnipresent

PostPosted: Sun May 29, 2011 1:49 am    Post subject: Reply with quote

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


Joined: 21 Jun 2006
Posts: 945
Location: Bardowick, Germany

PostPosted: Tue May 31, 2011 11:08 am    Post subject: Reply with quote

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 :wink: :lol:
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
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 796
Location: PL

PostPosted: Tue May 31, 2011 12:40 pm    Post subject: Reply with quote

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 :wink: :lol:
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
View user's profile Send private message
Frustie
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2007
Posts: 94
Location: My own little planet.

PostPosted: Tue May 31, 2011 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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