LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-08-2004, 10:19 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
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

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

B.R.
satimis
 
Old 02-08-2004, 10:27 PM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
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
 
Old 02-09-2004, 01:28 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
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 -'

B.R.
satimis
 
Old 02-09-2004, 08:01 AM   #4
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
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
 
Old 02-09-2004, 08:24 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
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

TIA

B.R.
satimis
 
Old 02-10-2004, 12:22 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi all folks,

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 /boot ext2 noauto,noatime 1 1
/dev/ROOT / xfs noatime 0 0
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
....
.....
none /dev/shm tmpfs defaults 0 0


Compared it with chapter 15 of
http://www.gentoo.org/doc/en/gentoo-x86-install.xml

and found following difference;

/dev/ROOT / xfs noatime 0 0 (new)

/dev/ROOT / reiserfs noatime 0 1 (Chapter15 'reiserfs)
(shall I change 'xfs' back to 'reiserfs')

none /dev/shm tmpfs defaults 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:0perator:/root:/bin/bash

(USER/satimis not found there)

Kindly advise how to revive Gentoo. What shall I do next.

TIA

B.R.
satimis
 
Old 02-10-2004, 04:39 AM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 02-10-2004, 06:39 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
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?

TIA

B.R.
satimis
 
Old 02-10-2004, 02:06 PM   #9
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Here is a link that should explain if you can't follow what I typed below:

http://forums.gentoo.org/viewtopic.php?t=23378


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

Last edited by rberry88; 02-10-2004 at 02:09 PM.
 
Old 02-11-2004, 12:04 AM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally posted by rberry88
Here is a link that should explain if you can't follow what I typed below:

http://forums.gentoo.org/viewtopic.php?t=23378


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

I don't know how to proceed further.

Thanks

B.R.
satimis
 
Old 02-20-2004, 10:08 AM   #11
zigmund555
Member
 
Registered: Sep 2003
Location: Maryland
Distribution: Slackware -current
Posts: 87

Rep: Reputation: 15
satimis.. I ran into this problem as well.

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.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gentoo + emerge --update world kurrupt Linux - General 8 06-05-2005 01:18 AM
emerge -u world with native language for openoffice Abec Linux - Software 2 01-15-2005 05:32 AM
emerge -u --deep world - blockers patientzero Linux - Distributions 2 02-21-2004 08:39 PM
after emerge -u --deep world what's next? patientzero Linux - General 0 02-20-2004 04:35 PM
emerge errors during emerge -u world busbarn Linux - Distributions 6 04-23-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:29 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
Open Source Consulting | Domain Registration