LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gentoo problem (https://www.linuxquestions.org/questions/linux-newbie-8/gentoo-problem-169773/)

digsby0007 04-13-2004 07:20 PM

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

digsby0007 04-13-2004 07:36 PM

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

mbegovic 04-13-2004 08:29 PM

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).

Demonbane 04-13-2004 08:54 PM

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

digsby0007 04-13-2004 09:21 PM

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

digsby0007 04-13-2004 09:28 PM

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

Demonbane 04-13-2004 09:44 PM

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

cyborman 02-03-2005 07:26 PM

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.

comprookie2000 02-03-2005 07:57 PM

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

cyborman 02-04-2005 05:00 PM

That fixed my problem. Thank you.


All times are GMT -5. The time now is 08:41 PM.