Unix Technical Forum

Gentoo broken after emerge --update system

This is a discussion on Gentoo broken after emerge --update system within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello, my Gentoo does no longer boot after a system update First, it wanted /dev/BOOT, which was not existing ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 05:46 AM
Christian Wolff
 
Posts: n/a
Default Gentoo broken after emerge --update system

Hello,

my Gentoo does no longer boot after a system update

First, it wanted /dev/BOOT, which was not existing - i commented that out
from fstab. I then realized that /etc/fstab was completely overwritten, as
a clean dev-filesystem, so I put my drives with their respective
mountpoints back in.

Now Gentoo boots only into the shell, does no longer start KDE as it did
before. But even worse, I can not even log on anymore since the root
password and my user password (both the original passwords of my Jollix
Gentoo Live CD) do not work anymore. So I can get back on my system only
via chroot, I guess and setup new passwords.

What the heck is wrong, why did Gentoo change to a dev fs, without keeping
my old filesystem? And how can I get back the automatic KDE start? I know
that it updated the init scripts - but what a mess that is now.... :-(((

Thank you in advance!

--

Mandrake 9.1 (Kernel 2.4.22-0.18mdk Athlon)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 05:46 AM
Jon Portnoy
 
Posts: n/a
Default Re: Gentoo broken after emerge --update system

On 2003-11-30, Christian Wolff <wolfchri@removethis.web.de> wrote:
> Hello,
>
> my Gentoo does no longer boot after a system update
>
> First, it wanted /dev/BOOT, which was not existing - i commented that out
> from fstab. I then realized that /etc/fstab was completely overwritten, as
> a clean dev-filesystem, so I put my drives with their respective
> mountpoints back in.
>
> Now Gentoo boots only into the shell, does no longer start KDE as it did
> before. But even worse, I can not even log on anymore since the root
> password and my user password (both the original passwords of my Jollix
> Gentoo Live CD) do not work anymore. So I can get back on my system only
> via chroot, I guess and setup new passwords.
>
> What the heck is wrong, why did Gentoo change to a dev fs, without keeping
> my old filesystem? And how can I get back the automatic KDE start? I know
> that it updated the init scripts - but what a mess that is now.... :-(((
>
> Thank you in advance!
>


You screwed up in etc-update and replaced a lot of important files.

--
Jon Portnoy
avenj/irc.freenode.net #gentoo, irc.oftc.net #cola
Opinions expressed are my own, not those of Gentoo Linux or any
other entity I am associated with unless stated otherwise.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 05:46 AM
walt
 
Posts: n/a
Default Re: Gentoo broken after emerge --update system

Christian Wolff <wolfchri@removethis.web.de> writes:

> Now Gentoo boots only into the shell, does no longer start KDE as it did
> before.


In /etc/rc.conf set DISPLAYMANAGER=kde


> But even worse, I can not even log on anymore since the root
> password and my user password (both the original passwords of my Jollix
> Gentoo Live CD) do not work anymore.


Try giving the kernel a boot parameter of 'S' or maybe '-S' to boot
into Single-user mode and set new passwords with 'passwd'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 05:46 AM
Mike Frysinger
 
Posts: n/a
Default Re: Gentoo broken after emerge --update system

On Sun, 30 Nov 2003 23:38:21 +0000, Jon Portnoy wrote:

> You screwed up in etc-update and replaced a lot of important files.


sounds like you basically ran `etc-update` and then hit -3 ...
so you lost your custom fstab, passwd, shadow, etc...

all the tips provided should put you back in bootable shape
-mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 05:46 AM
Christian Wolff
 
Posts: n/a
Default Re: Gentoo broken after emerge --update system

Mike Frysinger wrote:

> On Sun, 30 Nov 2003 23:38:21 +0000, Jon Portnoy wrote:
>
>> You screwed up in etc-update and replaced a lot of important files.

>
> sounds like you basically ran `etc-update` and then hit -3 ...
> so you lost your custom fstab, passwd, shadow, etc...
>
> all the tips provided should put you back in bootable shape
> -mike



Thanky for all your help, but it didnt work, since I also hardened my system
with bastille, so I basically locked myself out very sucessfully :-) Since
I am not hacker, I have no clue how to get back in since I can not even use
su as a user (that worked after I found the old passwd and shadow files).

So now I am copying my backup over the destroyed gentoo. However, what
exactl did I do wrong with this etc-update skript? Is there some
explanation on the gentoo site how I can save my configs without doing a
full backup every time I upgrade my system?

Thank you all a lot for your patience!

--

Mandrake 9.1 (Kernel 2.4.22-0.18mdk Athlon)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 05:46 AM
walt
 
Posts: n/a
Default Re: Gentoo broken after emerge --update system

Christian Wolff <wolfchri@removethis.web.de> writes:

> Thanky for all your help, but it didnt work, since I also hardened my system
> with bastille, so I basically locked myself out very sucessfully


Now you can educate me ;-) What is bastille?


> So now I am copying my backup over the destroyed gentoo. However, what
> exactl did I do wrong with this etc-update skript? Is there some
> explanation on the gentoo site how I can save my configs without doing a
> full backup every time I upgrade my system?



The important thing is to understand what the files in /etc actually do.

The gentoo installation process requires you to customize some of those
files when you are installing gentoo.

Each time you do an emerge sync and then emerge -u world you may be
asked to update some of the files in /etc by running etc-update.

If you see any proposed changes to any of the data you supplied during
gentoo installation , such as hostnames, IP addresses, display manager,
group names, user names, and anything else that is peculiar to your
individual machine, then you should decline to accept the change
and keep the old configuration file in /etc.

This knowledge comes only with experience -- and experience comes only
with mistakes ;-) Don't give up! Keep making mistakes and you will
live to enjoy your mistakes...there is nothing quite as satisfying as
a lifetime of mistakes and the lessons learned from them! ;-)

Just asked any married man ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 05:47 AM
Mike Frysinger
 
Posts: n/a
Default Re: Gentoo broken after emerge --update system

On Mon, 01 Dec 2003 12:35:03 -0800, walt wrote:

> Christian Wolff <wolfchri@removethis.web.de> writes:
>
>> Thanky for all your help, but it didnt work, since I also hardened my system
>> with bastille, so I basically locked myself out very sucessfully

>
> Now you can educate me ;-) What is bastille?


http://www.bastille-linux.org/
generic *nix hardening util
-mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com