HELP: Problem in rebooting after running 'emerge -u world'
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 <device>
* 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
Please post your /etc/fstab, I imagine the problem is the following:
Edit your /etc/fstab and change the line that says /dev/BOOT to /dev/hda1, or wherever your boot partition is. Also, change the /dev/SWAP and /dev/ROOT if they are not changed.
Originally posted by ter_roshak Please post your /etc/fstab, I imagine the problem is the following:
Edit your /etc/fstab and change the line that says /dev/BOOT to /dev/hda1, or wherever your boot partition is. Also, change the /dev/SWAP and /dev/ROOT if they are not changed.
If you have already done this, please disregard.
-Josh
Hi Josh,
Thanks for your advice.
Kindly advise how to start Gentoo to get /etc/fstab.
I have not run 'etc-update' in this tes only 'adsl-setup' after 'emerge -u world' finished but have not made any change, just hitting ENTER and closed the Konsole window
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 -'
Do you have a boot disk, or the LiveCD to boot from? If you do, you can boot that way, then mount your partitions and go into your /mnt/gentoo/etc/ and then edit your fstab.
Originally posted by ter_roshak Do you have a boot disk, or the LiveCD to boot from? If you do, you can boot that way, then mount your partitions and go into your /mnt/gentoo/etc/ and then edit your fstab.
-Josh
Hi Josh,
I have Gentoo CD1, CD2 and a diskette, unmarked, which I supposed to be the boot/rescue disc. Anyway if all of them can't work I can download it from another PC.
Now I am not very familiar with the procedure and I wiil do follows after booting up the PC
1) # mount /dev/hda3 /mnt/gentoo
2) # mount /dev/hda1 /mnt/boot
3) # mount t proc proc /mnt/gentoo/proc
4) # chroot /mnt/gentoo /bin/bash
Then
# nano -w /mnt/gentoo/etc/fstab
(OR omitting 2) and 3))
If I am wrong please correct me.
One thing I could not understand why I can login as ROOT without password. If type in password (ROOT password) it can't work saying wrong password
You have taken the /etc/fstab straight out of the installation manual without customizing it for your disks and partitions.
You need tp specify the actual partitions and what file system they use, so this line:
Code:
/dev/BOOT /boot ext2 noauto,noatime 1 1
probably looks something like this (I just made up the device):
Code:
/dev/hda1 /boot ext3 noauto,noatime 1 1
In case you have forgotten (I always jot down the partitions I use on a note when installing) you can probably refresh your memory a bit by doing a fdisk -l /dev/hda (if you're installing on hda...) to list the partitions and types.
Originally posted by hw-tph You have taken the /etc/fstab straight out of the installation manual without customizing it for your disks and partitions.
You need tp specify the actual partitions and what file system they use, so this line:
Code:
/dev/BOOT /boot ext2 noauto,noatime 1 1
probably looks something like this (I just made up the device):
Code:
/dev/hda1 /boot ext3 noauto,noatime 1 1
In case you have forgotten (I always jot down the partitions I use on a note when installing) you can probably refresh your memory a bit by doing a fdisk -l /dev/hda (if you're installing on hda...) to list the partitions and types.
Håkan
Hi Håkan,
Thanks for your response.
Now my problem is I can't edit files anymore because login 'read file system'. I can login without password. If keying in password, 'incorrect password' popup. Any solution?
You should hit CTRL+F2 to get to a text prompt and here sign in as username: root and password: roots password, from here you can do a :
Code:
usermod -G users,wheel,audio,games username
You need to specify all groups for this user that you want to enable since this line will overwrite your existing user line. So make sure you include all groups you want this user to be in.
So in your case you would do this:
Code:
usermod -G users,wheel,audio,games satimis
to enable you (user: satimis) to then su into root.
You should hit CTRL+F2 to get to a text prompt and here sign in as username: root and password: roots password, from here you can do a :
Code:
usermod -G users,wheel,audio,games username
You need to specify all groups for this user that you want to enable since this line will overwrite your existing user line. So make sure you include all groups you want this user to be in.
So in your case you would do this:
Code:
usermod -G users,wheel,audio,games satimis
to enable you (user: satimis) to then su into root.
rberry88
Hi,
Thanks for your advice.
My immediate problem is 'can't login as ROOT' to edit /etc/fstab.
I can start the Gentoo box either
1) with self-booting to text mode but on read-system only. I am not allowed to login as ROOT. root-password did not work, just hitting <ENTER> to login as user. or user-root
OR
2) booting up the PC with Gentoo CD, mount harddrive has problem. It required FS. I tried ext2/ext3/reiserfs/xfs. All can't work
Do you have another distro running you could use? When this happened to me I found that I accidentally had "noauto" as a flag in my fstab for the drive with Gentoo on it. It wasn't being mounted.
I had another distro running so I booted that one up and went in to look at the /etc/fstab.
I had a bunch of issues with the LiveCD not working properly. You could try Knoppix and see if it will mount your gentoo partiton for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.