LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2004, 08:20 PM   #1
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Rep: Reputation: 15
Unhappy gentoo problem


Howdy folks, Ive switched from RH8 to gentoo 1.4. I have it set up with 3 partitions:


/dev/hda1 1 3 24866 83 linux
/dev/hda2 4 66 586047 82 linux
/dev/hda3 67 1891 14659312+ 83 linux



when booting, these are the errors i get in order.
"fsck: fsck.xfs not found
fsck: error 2 while executing fsck.xfs for /dev/ROOT
fsck.ext2: no such file or directory while trying to open /dev/BOOT
/dev/BOOT:

The SuperBlock could not be read or does not desctribe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (abd bit a swao ir ufs ir something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 (dev) {bieng the example they gave me}

fsck could not correct all errors, manual repair needed. "
i bet you know where this is going now


so needless to say im experiencing some problems.
1. I cannot su to root with any user (when i log in with the root passwd it tells me login failed, but i can log in as root with the root passwd)
2. the ethernet card doesnt see the router, and has assigned itself a 192.168.0.2 address (the address it should have is 192.168.1.102)

how i got into this sticky situation is while installing mozilla-firefox it told me there where several config files that needed to be taken care of, and i shoould run etc-update. I ran that, and it gave me several options. And the one i chose was to keep the new configuration, and trash the old. The programs ran fine, but when i closed my aterm window that was running as su, i noticed i couldnt su in a new aterm window. then i rebooted, and it displayed the messages you see above. I have deducted it has written over config files that I need, and my question is, how can i either:
a. revert back to the old config
b. find, and replace the files i need.
i tried to run fsck like it said, but im a newbie, and dont really know what to type in. so if some kind person could somewhat walk me through what i need to do, that would be great.

Thanks,
Digsby
 
Old 04-13-2004, 08:36 PM   #2
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
also, if anyone would like to AIM me a message about this, talib0007 is my screen name (and just to clear it up its not taliban, its talib qwuali the rapper)

thanks again
 
Old 04-13-2004, 09:29 PM   #3
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
I don't really know what the problem is, but it is odd that you have a dev/BOOT and dev/ROOT. When you install gentoo, these are the default partition names in /etc/fstab, and you're supposed to change them to /dev/hda1 and /dev/hda3 in your case (I assume based on your partition table).
 
Old 04-13-2004, 09:54 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
When you do etc-update instead of letting it replace new config files you should check the differences and merge them as necessary, unless you know what you're doing.

As for 'su' you need to add the users to the "wheel" group, this is the default behaviour in Gentoo.

for the network you need to edit /etc/conf.d/net and use dhcp
 
Old 04-13-2004, 10:21 PM   #5
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
as far as the su problem, why was i able to use it previously and now i have to add it to a group. and btw, how do i add a user to the wheel group?


thanks,
digsby
 
Old 04-13-2004, 10:28 PM   #6
digsby0007
Member
 
Registered: Jan 2003
Posts: 94

Original Poster
Rep: Reputation: 15
ok i changed fstab so that dev/boot, dev/root, where the correct devices. The change to conf.d/net also fixed the dhcp problem. but i dont have a gui interface for adding/changing groups so i need some help with adding my user to the wheel group.

Thanks!!!!
digsby
 
Old 04-13-2004, 10:44 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:
as far as the su problem, why was i able to use it previously and now i have to add it to a group. and btw, how do i add a user to the wheel group?
Maybe because of the changes in baselayout or pam, not exactly sure.
Anyway to add an user to a group you can use the usermod command
 
Old 02-03-2005, 08:26 PM   #8
cyborman
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
OK, to answer your question about all this, After installing, when you do the etc-update, if you try to auto-emerge everything, and then just hit yes, to all the prompts, it will reset your /etc/fstab, remove your users from groups, reset your /etc/conf.d/net, and a few other things, I haven't yet found. The fixes above are what I did to fix the problem. and to add the users to the proper groups, (going by the default settings the directions tell you to add them to) :

usermod -G users,wheel,audio username

for me, I'm still looking for a way to fix the errors I get during bootup:

fsck: fsck.xfs: not found
fsck: Error 2 while executing fsck.xfs for /dev/hda3

everything on the computer appears to be working fine, I just don't like seeing errors in my bootup.
 
Old 02-03-2005, 08:57 PM   #9
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
You need to look at fstab again and change the type,ext2 or ext3 or reiserfs ect.
Click Here For Help

Last edited by comprookie2000; 02-03-2005 at 08:59 PM.
 
Old 02-04-2005, 06:00 PM   #10
cyborman
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
That fixed my problem. Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with gentoo linus johann Linux - Newbie 21 09-16-2005 07:33 AM
Problem Installing Gentoo. (Partioning Problem) w33k Linux - Software 7 08-10-2004 11:06 PM
Emerge Problem in Gentoo! Baryonic Being Linux - Software 2 06-15-2004 01:27 PM
Gentoo problem <_< Mahony Linux - General 18 05-12-2004 06:56 PM
problem at gentoo Txlyo Linux - Newbie 3 10-16-2003 09:51 AM


All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration