Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Stephen Liu wrote: Hi Christoph, I can't imagine how this can happen without the use of etc-update... Please note that he is booting his system from a rescue floppy, therefore booting into single user mode. Boot into the live CD. Run e2fsck on your hda1 and hda2. Do the chroot routine. Edit the /etc/fstab and change the /dev/BOOT to your real device (/dev/hda1) and change the /dev/ROOT to your real root device (/dev/hda3). Same with the /dev/SWAP (/dev/hda2 most likely). Make sure the filesystem type is what you formatted them as. e.g. reiser, ext2, ext3, etc. Make sure your grub or lilo correct. Then you can run # passwd root to enter your root password. If you already ran useradd, then run # passwd Then remove the floppy and/or the live CD and try to reboot to your hard drive system. -- Johnny Sistumz injunear -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Hi Christoph, To my surprize, I can start 'Fail Safe' Hereinbelow is /etc/fstab # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/BOOT/bootext2noauto,noatime1 1 /dev/ROOT/xfsnoatime0 0 /dev/SWAPnoneswapsw0 0 /dev/cdroms/cdrom0/mnt/cdromiso9660noauto,ro0 0 #/dev/fd0/mnt/floppyautonoauto0 0 # NOTE: The next line is critical for boot! none/procprocdefaults0 0 . none/dev/shmtmpfsdefaults0 0 Compared it with chapter 15 and found following difference /dev/ROOT/xfsnoatime0 0 (new) /dev/ROOT / reiserfsnoatime 0 1 (Chapter15 'reiserfs) (shall I change 'xfs' back to 'reiserfs' none/dev/shmtmpfsdefaults 0 0 (I think the above line was added during 'emerge -u world' and /mnt/cdwriter disappears) I can login as ROOT without password but can't login as USER (satimis) with/without password. # cat /etc/passwd root:x:0,0:root:root:/bin/bash ... ... Operator:x:11:0:operator:/root:/bin/bash (USER/satimis not found there) Kindly advise how to revive Gentoo. What shall I do next. TIA B.R. Stephen Stephen Liu wrote: I am not quite familiar with rescue on Gentoo. I shall do follows; 1) boot up the Gentoo box with the rescue diskette 2) mount /dev/hda3 /mnt/gentoo 3) mount /dev/hda1 /mnt/gentoo/boot 4) mount t proc proc /mnt/gentoo/proc there's a typo: mount -t proc proc /mnt/gentoo/proc ^ 5) chroot /mnt/gentoo /bin/bash 6) nano -w /mnt/gentoo/etc/fstab (to edit 'fstab') change ROOT, BOOT and SWAP with the appropriate devices (/dev/hda3, /dev/hda1 and /dev/hda2 I assume) One thing I could not resolve why I can login as ROOT without password. If key in ROOT password then it says wrong password This could mean that you've also overwritten your /etc/passwd. Is your normal user still in the /etc/passwd? If not, just add it with # useradd and reset your root-password with # passwd I can't imagine how this can happen without the use of etc-update... bye, christoph -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Stephen Liu wrote: I am not quite familiar with rescue on Gentoo. I shall do follows; 1) boot up the Gentoo box with the rescue diskette 2) mount /dev/hda3 /mnt/gentoo 3) mount /dev/hda1 /mnt/gentoo/boot 4) mount t proc proc /mnt/gentoo/proc there's a typo: mount -t proc proc /mnt/gentoo/proc ^ 5) chroot /mnt/gentoo /bin/bash 6) nano -w /mnt/gentoo/etc/fstab (to edit 'fstab') change ROOT, BOOT and SWAP with the appropriate devices (/dev/hda3, /dev/hda1 and /dev/hda2 I assume) One thing I could not resolve why I can login as ROOT without password. If key in ROOT password then it says wrong password This could mean that you've also overwritten your /etc/passwd. Is your normal user still in the /etc/passwd? If not, just add it with # useradd and reset your root-password with # passwd I can't imagine how this can happen without the use of etc-update... bye, christoph -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Hi Nox, Thanks for your response. - snip - Hi Ernie, Thanks for your response. I have not ran 'etc-update' in this test. I ran # emerge -u world ending up with following warning and exited 'emerge -u world' .. .. extensions/libipt_ROUTE.c: In function `init': extensions/libipt_ROUTE.c:51: error: structure has no member named `flags' extensions/libipt_ROUTE.c: In function `parse': extensions/libipt_ROUTE.c:138: error: structure has no member named `flags' extensions/libipt_ROUTE.c:138: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c:138: error: (Each undeclared identifier is reported only once extensions/libipt_ROUTE.c:138: error: for each function it appears in.) extensions/libipt_ROUTE.c: In function `print': extensions/libipt_ROUTE.c:186: error: structure has no member named `flags' extensions/libipt_ROUTE.c:186: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c: In function `save': extensions/libipt_ROUTE.c:209: error: structure has no member named `flags' extensions/libipt_ROUTE.c:209: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) make: *** [extensions/libipt_ROUTE_sh.o] Error 1 !!! ERROR: net-firewall/iptables-1.2.9 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! (no error message) This warning appeared before and I could not fixed it (I have posted this problem on Gentoo forum but without a solution) I ran '# emerge -u world' on Konsole window. Login as USER on KDE desktop first, started Konsole window and then 'su -' as ROOT I rebooted on Konsole window but could not start Gentoo. As I recalled, before rebooting, I tried to start another Konsole window on KDE desktop, it popup 'hostname not found..' and I could not 'su -' B.R. Stephen Hello, I think that you overwrite some of your /etc files. To su - verify that you're in the group wheel in /etc/group for hostname problem re-edit /etc/hostname and /etc/hosts.conf If you can repopulate /etc with a backup it should be great for you but if not reedit one by one your /etc files. Don't know what you've done but it seems there's a problem. Verify your CONFIG_PROTECT variable Another folk on the list also ran into the same situation similar to my case: Could not 'su -' after running 'emerge -u world' I doubt whether 'upgrading betagenkernel' has influence. IIRC I saw upgrading it on the screen. B.R. Stephen -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Hi Christoph, Thanks for your response I have not ran 'etc-update' in this test. You did not? So, this must be your first reboot since installing gentoo. No, this Gentoo box has been running several months for test purpose. It has been idle for a period. Last week I started # emerge -u world (Remark: I operated all commands on Konsole window after login as USER on KDE desktop and then 'su -') Because this is a slow machine it took about 6 x 24 hrs to complete. Finally it ended up as follows; .. .. extensions/libipt_ROUTE.c: In function `init': extensions/libipt_ROUTE.c:51: error: structure has no member named `flags' extensions/libipt_ROUTE.c: In function `parse': extensions/libipt_ROUTE.c:138: error: structure has no member named `flags' extensions/libipt_ROUTE.c:138: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c:138: error: (Each undeclared identifier is reported only once extensions/libipt_ROUTE.c:138: error: for each function it appears in.) extensions/libipt_ROUTE.c: In function `print': extensions/libipt_ROUTE.c:186: error: structure has no member named `flags' extensions/libipt_ROUTE.c:186: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c: In function `save': extensions/libipt_ROUTE.c:209: error: structure has no member named `flags' extensions/libipt_ROUTE.c:209: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) make: *** [extensions/libipt_ROUTE_sh.o] Error 1 !!! ERROR: net-firewall/iptables-1.2.9 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! (no error message) Then I ran # emerge sync # emerge -u world (again) But it returned to the same situation again. Repeat chapter 7 from the installation guide at http://www.gentoo.org/doc/en/gentoo-x86-install.xml, chroot as described in chapter 8 and edit /etc/fstab as described in chapter 15. I am not quite familiar with rescue on Gentoo. I shall do follows; 1) boot up the Gentoo box with the rescue diskette 2) mount /dev/hda3 /mnt/gentoo 3) mount /dev/hda1 /mnt/gentoo/boot 4) mount t proc proc /mnt/gentoo/proc 5) chroot /mnt/gentoo /bin/bash 6) nano -w /mnt/gentoo/etc/fstab (to edit 'fstab') OR omitting step 4) Kindly advise. TIA One thing I could not resolve why I can login as ROOT without password. If key in ROOT password then it says wrong password B.R. Stephen -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Stephen Liu wrote: Thanks for your response. I have not ran 'etc-update' in this test. You did not? So, this must be your first reboot since installing gentoo. Repeat chapter 7 from the installation guide at http://www.gentoo.org/doc/en/gentoo-x86-install.xml, chroot as described in chapter 8 and edit /etc/fstab as described in chapter 15. Feel free to ask again if any problem occurs. bye, christoph -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
On Mon, 09 Feb 2004 14:59:23 +0800 Stephen Liu <[EMAIL PROTECTED]> wrote: > Ernie Schroder wrote: > > >>- snip - > >> > >> > >>>Stephen Liu wrote: > >>> > >>> > Hi all folks, > > I encountered problem in rebooting Gentoo 1.4 after running > > # emerge -u world > > IIRC the last item updated is "betagenkernel" > > During rebooting following warning popup; > > .. > > Checking all filesystems... > fsck.ext2: No such file or directory while tryinng to open > /dev/BOOT /dev/BOOT: > The superblock could not be read or does not describe a correct > ext2 filesystem (and not swap or ufs or something else), then > the superblock is corrupt, and you might try running e2fsck with > an alternate superblock: > e2fsck - b 8193 > > * Fsck could not correct all errors, manual repair need > > Give root password for maintaince > (or type Control-D for normal startup): > > No root password is required to enter. If typing in root > password I can't enter, following warning popup; > Login incorrect > > It is rather strange > > Tried; > # fsck /dev/hda > # fsck /dev/hda1 > # fsck /dev/hda3 > etc. > > fsck.ext2: No such file or directory while tryinng to open > /dev/hda .. /dev/hda1 > ../dev/hda3 > etc. > > (remark: harddrive is connected to a ATA controller card) > IIRC Gentoo is running on 'reiser fs' . How to check it. > > Furthermore 'reboot' (soft) has no effect. I have to press > hard-reboot (reset button) > > Kindly advise how to fix the problem. > > TIA > > Stephen Liu > > -- > [EMAIL PROTECTED] mailing list > > > >>-- > >>[EMAIL PROTECTED] mailing list > >> > >> > > > > > >Stephen, > > When you ran etc-update after your emerge -u world, you overwrote > >your /etc/fstab. You will need to boot the live CD and chroot into > >your Gentoo and recreate the file. > > > > > > Hi Ernie, > > Thanks for your response. I have not ran 'etc-update' in this test. > > I ran > > # emerge -u world > > ending up with following warning and exited 'emerge -u world' > > .. > .. > extensions/libipt_ROUTE.c: In function `init': > extensions/libipt_ROUTE.c:51: error: structure has no member named `flags' > extensions/libipt_ROUTE.c: In function `parse': > extensions/libipt_ROUTE.c:138: error: structure has no member named `flags' > extensions/libipt_ROUTE.c:138: error: `IPT_ROUTE_CONTINUE' undeclared > (first use in this function) > extensions/libipt_ROUTE.c:138: error: (Each undeclared identifier is > reported only once > extensions/libipt_ROUTE.c:138: error: for each function it appears in.) > extensions/libipt_ROUTE.c: In function `print': > extensions/libipt_ROUTE.c:186: error: structure has no member named `flags' > extensions/libipt_ROUTE.c:186: error: `IPT_ROUTE_CONTINUE' undeclared > (first use in this function) > extensions/libipt_ROUTE.c: In function `save': > extensions/libipt_ROUTE.c:209: error: structure has no member named `flags' > extensions/libipt_ROUTE.c:209: error: `IPT_ROUTE_CONTINUE' undeclared > (first use in this function) > make: *** [extensions/libipt_ROUTE_sh.o] Error 1 > > !!! ERROR: net-firewall/iptables-1.2.9 failed. > !!! Function src_compile, Line 53, Exitcode 2 > !!! (no error message) > > > This warning appeared before and I could not fixed it (I have posted > this problem on Gentoo forum but without a solution) > > I ran '# emerge -u world' on Konsole window. Login as USER on KDE > desktop first, started Konsole window and then 'su -' as ROOT > > I rebooted on Konsole window but could not start Gentoo. As I recalled, > before rebooting, I tried to start another Konsole window on KDE > desktop, it popup 'hostname not found..' and I could not 'su -' > > B.R. > Stephen > > > > -- > [EMAIL PROTECTED] mailing list > Hello, I think that you overwrite some of your /etc files. To su - verify that you're in the group wheel in /etc/group for hostname problem re-edit /etc/hostname and /etc/hosts.conf If you can repopulate /etc with a backup it should be great for you but if not reedit one by one your /etc files. Don't know what you've done but it seems there's a problem. Verify your CONFIG_PROTECT variable ++ -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Ernie Schroder wrote: - snip - Stephen Liu wrote: Hi all folks, I encountered problem in rebooting Gentoo 1.4 after running # emerge -u world IIRC the last item updated is "betagenkernel" During rebooting following warning popup; .. Checking all filesystems... fsck.ext2: No such file or directory while tryinng to open /dev/BOOT /dev/BOOT: The superblock could not be read or does not describe a correct ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck - b 8193 * Fsck could not correct all errors, manual repair need Give root password for maintaince (or type Control-D for normal startup): No root password is required to enter. If typing in root password I can't enter, following warning popup; Login incorrect It is rather strange Tried; # fsck /dev/hda # fsck /dev/hda1 # fsck /dev/hda3 etc. fsck.ext2: No such file or directory while tryinng to open /dev/hda .. /dev/hda1 ../dev/hda3 etc. (remark: harddrive is connected to a ATA controller card) IIRC Gentoo is running on 'reiser fs' . How to check it. Furthermore 'reboot' (soft) has no effect. I have to press hard-reboot (reset button) Kindly advise how to fix the problem. TIA Stephen Liu -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list Stephen, When you ran etc-update after your emerge -u world, you overwrote your /etc/fstab. You will need to boot the live CD and chroot into your Gentoo and recreate the file. Hi Ernie, Thanks for your response. I have not ran 'etc-update' in this test. I ran # emerge -u world ending up with following warning and exited 'emerge -u world' .. .. extensions/libipt_ROUTE.c: In function `init': extensions/libipt_ROUTE.c:51: error: structure has no member named `flags' extensions/libipt_ROUTE.c: In function `parse': extensions/libipt_ROUTE.c:138: error: structure has no member named `flags' extensions/libipt_ROUTE.c:138: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c:138: error: (Each undeclared identifier is reported only once extensions/libipt_ROUTE.c:138: error: for each function it appears in.) extensions/libipt_ROUTE.c: In function `print': extensions/libipt_ROUTE.c:186: error: structure has no member named `flags' extensions/libipt_ROUTE.c:186: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c: In function `save': extensions/libipt_ROUTE.c:209: error: structure has no member named `flags' extensions/libipt_ROUTE.c:209: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) make: *** [extensions/libipt_ROUTE_sh.o] Error 1 !!! ERROR: net-firewall/iptables-1.2.9 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! (no error message) This warning appeared before and I could not fixed it (I have posted this problem on Gentoo forum but without a solution) I ran '# emerge -u world' on Konsole window. Login as USER on KDE desktop first, started Konsole window and then 'su -' as ROOT I rebooted on Konsole window but could not start Gentoo. As I recalled, before rebooting, I tried to start another Konsole window on KDE desktop, it popup 'hostname not found..' and I could not 'su -' B.R. Stephen -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
On Sunday 08 February 2004 11:46 pm, Stephen Liu wrote: > Hi blade, > > > Looks like you let it over-write your /etc/fstab > > You will need to set it up again (be careful with etc-update) > > Tks for your response. > > The problme is I could not start Gentoo. Kindly advise how to run > 'etc-update' > > TIA > > B.R. > Stephen > > > Stephen Liu wrote: > >> Hi all folks, > >> > >> I encountered problem in rebooting Gentoo 1.4 after running > >> > >> # emerge -u world > >> > >> IIRC the last item updated is "betagenkernel" > >> > >> During rebooting following warning popup; > >> > >> .. > >> > >> Checking all filesystems... > >> fsck.ext2: No such file or directory while tryinng to open > >> /dev/BOOT /dev/BOOT: > >> The superblock could not be read or does not describe a correct > >> ext2 filesystem (and not swap or ufs or something else), then > >> the superblock is corrupt, and you might try running e2fsck with > >> an alternate superblock: > >> e2fsck - b 8193 > >> > >> * Fsck could not correct all errors, manual repair need > >> > >> Give root password for maintaince > >> (or type Control-D for normal startup): > >> > >> No root password is required to enter. If typing in root > >> password I can't enter, following warning popup; > >> Login incorrect > >> > >> It is rather strange > >> > >> Tried; > >> # fsck /dev/hda > >> # fsck /dev/hda1 > >> # fsck /dev/hda3 > >> etc. > >> > >> fsck.ext2: No such file or directory while tryinng to open > >> /dev/hda .. /dev/hda1 > >> ../dev/hda3 > >> etc. > >> > >> (remark: harddrive is connected to a ATA controller card) > >> IIRC Gentoo is running on 'reiser fs' . How to check it. > >> > >> Furthermore 'reboot' (soft) has no effect. I have to press > >> hard-reboot (reset button) > >> > >> Kindly advise how to fix the problem. > >> > >> TIA > >> > >> Stephen Liu > >> > >> -- > >> [EMAIL PROTECTED] mailing list > > -- > [EMAIL PROTECTED] mailing list Stephen, When you ran etc-update after your emerge -u world, you overwrote your /etc/fstab. You will need to boot the live CD and chroot into your Gentoo and recreate the file. -- Regards, Ernie 100% Microsoft and Intel free -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Hi blade, Looks like you let it over-write your /etc/fstab You will need to set it up again (be careful with etc-update) Tks for your response. The problme is I could not start Gentoo. Kindly advise how to run 'etc-update' TIA B.R. Stephen Stephen Liu wrote: Hi all folks, I encountered problem in rebooting Gentoo 1.4 after running # emerge -u world IIRC the last item updated is "betagenkernel" During rebooting following warning popup; .. Checking all filesystems... fsck.ext2: No such file or directory while tryinng to open /dev/BOOT /dev/BOOT: The superblock could not be read or does not describe a correct ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck - b 8193 * Fsck could not correct all errors, manual repair need Give root password for maintaince (or type Control-D for normal startup): No root password is required to enter. If typing in root password I can't enter, following warning popup; Login incorrect It is rather strange Tried; # fsck /dev/hda # fsck /dev/hda1 # fsck /dev/hda3 etc. fsck.ext2: No such file or directory while tryinng to open /dev/hda .. /dev/hda1 ../dev/hda3 etc. (remark: harddrive is connected to a ATA controller card) IIRC Gentoo is running on 'reiser fs' . How to check it. Furthermore 'reboot' (soft) has no effect. I have to press hard-reboot (reset button) Kindly advise how to fix the problem. TIA Stephen Liu -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Looks like you let it over-write your /etc/fstab You will need to set it up again (be careful with etc-update) Stephen Liu wrote: Hi all folks, I encountered problem in rebooting Gentoo 1.4 after running # emerge -u world IIRC the last item updated is "betagenkernel" During rebooting following warning popup; .. Checking all filesystems... fsck.ext2: No such file or directory while tryinng to open /dev/BOOT /dev/BOOT: The superblock could not be read or does not describe a correct ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck - b 8193 * Fsck could not correct all errors, manual repair need Give root password for maintaince (or type Control-D for normal startup): No root password is required to enter. If typing in root password I can't enter, following warning popup; Login incorrect It is rather strange Tried; # fsck /dev/hda # fsck /dev/hda1 # fsck /dev/hda3 etc. fsck.ext2: No such file or directory while tryinng to open /dev/hda .. /dev/hda1 ../dev/hda3 etc. (remark: harddrive is connected to a ATA controller card) IIRC Gentoo is running on 'reiser fs' . How to check it. Furthermore 'reboot' (soft) has no effect. I have to press hard-reboot (reset button) Kindly advise how to fix the problem. TIA Stephen Liu -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
[gentoo-user] HELP: Problem in rebooting after running 'emerge -u world'
Hi all folks, I encountered problem in rebooting Gentoo 1.4 after running # emerge -u world IIRC the last item updated is "betagenkernel" During rebooting following warning popup; .. Checking all filesystems... fsck.ext2: No such file or directory while tryinng to open /dev/BOOT /dev/BOOT: The superblock could not be read or does not describe a correct ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck - b 8193 * Fsck could not correct all errors, manual repair need Give root password for maintaince (or type Control-D for normal startup): No root password is required to enter. If typing in root password I can't enter, following warning popup; Login incorrect It is rather strange Tried; # fsck /dev/hda # fsck /dev/hda1 # fsck /dev/hda3 etc. fsck.ext2: No such file or directory while tryinng to open /dev/hda .. /dev/hda1 ../dev/hda3 etc. (remark: harddrive is connected to a ATA controller card) IIRC Gentoo is running on 'reiser fs' . How to check it. Furthermore 'reboot' (soft) has no effect. I have to press hard-reboot (reset button) Kindly advise how to fix the problem. TIA Stephen Liu -- [EMAIL PROTECTED] mailing list