Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo box can't start after 'emerge -u world'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Tue Feb 10, 2004 8:03 am    Post subject: Gentoo box can't start after 'emerge -u world' Reply with quote

Hi all folks,

For unknown reason my Gentoo 1.4 box can't start after running 'emerge -u world' Login as ROOT does not need root-password (key in root-password popup invalid password) and can't login as USER.

Incidentally Fail-Safe can be started

cat /etc/fstab found following difference.

ReiserFS changed to xfs;
/dev/ROOT / xfs noatime 0 0

following line being added;
none /dev/shm tmpfs defaults 0 0

Can I delete above line and change 'xfs' back to 'reiserfs' to fix starting problem?


# cat /etc/passwd
root:x:0,0:root:root:/bin/bash
...
...
Operator:x:11:0:operator:/root:/bin/bash

(USER/satimis not found there)

How to restore 'root-password' and re-add USER. Whether;

# /etc/passwd passwd

and

# /etc/passwd useradd

can solve my problem.

This test box without backup therefore I have to taking precaution on each step made.

TIA

B.R.
satimis
Back to top
View user's profile Send private message
RikBlankestijn
Guru
Guru


Joined: 01 May 2003
Posts: 315
Location: Arnhem the Netherlands

PostPosted: Tue Feb 10, 2004 8:17 am    Post subject: Re: Gentoo box can't start after 'emerge -u world' Reply with quote

satimis wrote:
Hi all folks,

For unknown reason my Gentoo 1.4 box can't start after running 'emerge -u world' Login as ROOT does not need root-password (key in root-password popup invalid password) and can't login as USER.

Incidentally Fail-Safe can be started

cat /etc/fstab found following difference.

ReiserFS changed to xfs;
/dev/ROOT / xfs noatime 0 0

following line being added;
none /dev/shm tmpfs defaults 0 0

Can I delete above line and change 'xfs' back to 'reiserfs' to fix starting problem?


I assume that that is not the only thing that has changed in your fstab. /dev/ROOT does not exist you should replace it with for example /dev/hda1. Same thing for /dev/BOOT and /dev/SWAP.

satimis wrote:

# cat /etc/passwd
root:x:0,0:root:root:/bin/bash
...
...
Operator:x:11:0:operator:/root:/bin/bash

(USER/satimis not found there)

How to restore 'root-password' and re-add USER. Whether;

# /etc/passwd passwd

and

# /etc/passwd useradd

can solve my problem.

This test box without backup therefore I have to taking precaution on each step made.

TIA

B.R.
satimis


Change a password with passwd <username> as root.
Next time when you do update world when it says you need to update some config files, do not just say -5 to automerge the changes. because then it replaces the config files with the default ones.
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Tue Feb 10, 2004 9:07 am    Post subject: Re: Gentoo box can't start after 'emerge -u world' Reply with quote

RikBlankestijn wrote:
satimis wrote:
Hi all folks,

For unknown reason my Gentoo 1.4 box can't start after running 'emerge -u world' Login as ROOT does not need root-password (key in root-password popup invalid password) and can't login as USER.

Incidentally Fail-Safe can be started

cat /etc/fstab found following difference.

ReiserFS changed to xfs;
/dev/ROOT / xfs noatime 0 0

following line being added;
none /dev/shm tmpfs defaults 0 0

Can I delete above line and change 'xfs' back to 'reiserfs' to fix starting problem?


I assume that that is not the only thing that has changed in your fstab. /dev/ROOT does not exist you should replace it with for example /dev/hda1. Same thing for /dev/BOOT and /dev/SWAP.

satimis wrote:

# cat /etc/passwd
root:x:0,0:root:root:/bin/bash
...
...
Operator:x:11:0:operator:/root:/bin/bash

(USER/satimis not found there)

How to restore 'root-password' and re-add USER. Whether;

# /etc/passwd passwd

and

# /etc/passwd useradd

can solve my problem.

This test box without backup therefore I have to taking precaution on each step made.

TIA

B.R.
satimis


Change a password with passwd <username> as root.
Next time when you do update world when it says you need to update some config files, do not just say -5 to automerge the changes. because then it replaces the config files with the default ones.

Hi,

Thanks for your advice.

Edited /etc/fstab as per advice.

Rebooted the PC from xterm window on 'Fail Safe'

Still failed to start Gentoo with following warning;
Warning...fsck, reiserfs for device /dev/Root exited with signal 6
Filesystem couldn't be fixed.


This time 'Fail Safe' did not start

# cat /etc/fstab
.....
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / reiserfs noatime 0 1
/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

# Adding the following line to /etc/fstab should take care of this:

#none /dev/shm tmpfs defaults 0 0

I commented out the last line. This time I was not allowed to make any change to /etc/fstab

Login as ROOT without password OK
Login as ROOT with root-password keyed in - Failed, invalid password

Soft-reboot failed and I have to press the reset button to reboot Gentoo box.

Quote:
Next time when you do update world when it says you need to update some config files, do not just say -5 to automerge the changes. because then it replaces the config files with the default ones.

Noted with thanks

IIRC during 'emerge -u world'
it did not ask for any input.

What is '-5' representing for

Kindly advise. TIA

B.R.
satimis
Back to top
View user's profile Send private message
Keldon
n00b
n00b


Joined: 11 Feb 2003
Posts: 26
Location: Rotterdam

PostPosted: Tue Feb 10, 2004 3:11 pm    Post subject: Re: Gentoo box can't start after 'emerge -u world' Reply with quote

satimis wrote:


This time 'Fail Safe' did not start

# cat /etc/fstab
.....
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / reiserfs noatime 0 1
/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

# Adding the following line to /etc/fstab should take care of this:

#none /dev/shm tmpfs defaults 0 0

I commented out the last line. This time I was not allowed to make any change to /etc/fstab



You still have the /dev/boot /root and /swap references in your fstab. You should change these to /dev/hda1 for /dev/boot, /dev/hda2 for /dev/swap and /dev/hda3 for /dev/root (if you installed gentoo on /dev/hda and followed the installation guide ofcourse).

Code:

/dev/hda1      /boot      ext2          noauto,noatime      1 2
/dev/hda3      /      reiserfs   noatime         0 1
/dev/hda2      none      swap   sw         0 0


_________________
Microsoft and standards-compliance go together when it's a Microsoft standard.
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Tue Feb 10, 2004 3:58 pm    Post subject: Re: Gentoo box can't start after 'emerge -u world' Reply with quote

Keldon wrote:
satimis wrote:


This time 'Fail Safe' did not start

# cat /etc/fstab
.....
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / reiserfs noatime 0 1
/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

# Adding the following line to /etc/fstab should take care of this:

#none /dev/shm tmpfs defaults 0 0

I commented out the last line. This time I was not allowed to make any change to /etc/fstab



You still have the /dev/boot /root and /swap references in your fstab. You should change these to /dev/hda1 for /dev/boot, /dev/hda2 for /dev/swap and /dev/hda3 for /dev/root (if you installed gentoo on /dev/hda and followed the installation guide ofcourse).

Code:

/dev/hda1      /boot      ext2          noauto,noatime      1 2
/dev/hda3      /      reiserfs   noatime         0 1
/dev/hda2      none      swap   sw         0 0


Hi,

Thanks for your advice.

Now I could not start 'Fail Safe' the second time. I think that I have to use CD1 to start the Gentoo box and;

mount /dev/hda3 /mnt/gentoo
nano -w /mnt/gentoo/etc/fstab

Last time I made mistake on editing /etc/fstab. Before editing, /etc/fstab looked as follows;

# <fs> <mountpoint> <type> <opts> <dump/pass>

# 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

# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults 0 0
*********


To avoid further mistake, kindly advise whether I should edit /etc/fstab as follows;

/dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda3 / reiserfs noatime 0 0
/dev/hda2 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

# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults 0 0
*************


Shall I comment out the last line
'none /dev/shm tmpfs defaults 0 0'

TIA

B.R.
satimis
Back to top
View user's profile Send private message
ncsudc
n00b
n00b


Joined: 06 Dec 2003
Posts: 10
Location: Raleigh, NC

PostPosted: Tue Feb 10, 2004 4:39 pm    Post subject: Reply with quote

where was this thread about 2 months ago.... it took me forever to realize that my fstab was changed and wouldn't let me boot.
_________________
Dustin
http://www.dchoe.com
Back to top
View user's profile Send private message
RikBlankestijn
Guru
Guru


Joined: 01 May 2003
Posts: 315
Location: Arnhem the Netherlands

PostPosted: Tue Feb 10, 2004 6:31 pm    Post subject: Reply with quote

Code:
# read more the gentoo forums for more info
# http://forums.gentoo.org/viewtopic.php?p=778111#778111

proc                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
#  memory if not populated with files)

tmpfs                   /dev/shm        tmpfs           defaults                0 0

https://forums.gentoo.org/viewtopic.php?p=778111#778111

maybe this will help you.
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Tue Feb 10, 2004 6:50 pm    Post subject: Reply with quote

RikBlankestijn wrote:
Code:
# read more the gentoo forums for more info
# http://forums.gentoo.org/viewtopic.php?p=778111#778111

proc                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
#  memory if not populated with files)

tmpfs                   /dev/shm        tmpfs           defaults                0 0

https://forums.gentoo.org/viewtopic.php?p=778111#778111

maybe this will help you.

Hi,

Thanks for your advice.

My immediate problems are;

1) I could not start 'Fail Safe' again
2) I booted up the Gentoo box with CD1 but could not mout

cdimage # mount -t reiserfs /dev/hda3 /mnt/gentoo
/dev/hda3 no such file or directory

I tried /ext2/ext3/xfs
with same result

B.R.
satimis
Back to top
View user's profile Send private message
RikBlankestijn
Guru
Guru


Joined: 01 May 2003
Posts: 315
Location: Arnhem the Netherlands

PostPosted: Tue Feb 10, 2004 7:58 pm    Post subject: Reply with quote

I do not know the exact answer for you unfortunatly, but here is some good documentation on preparing your disks 'n stuff: http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=4
Back to top
View user's profile Send private message
Keldon
n00b
n00b


Joined: 11 Feb 2003
Posts: 26
Location: Rotterdam

PostPosted: Wed Feb 11, 2004 12:41 pm    Post subject: Re: Gentoo box can't start after 'emerge -u world' Reply with quote

satimis wrote:


To avoid further mistake, kindly advise whether I should edit /etc/fstab as follows;

/dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda3 / reiserfs noatime 0 0
/dev/hda2 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

# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults 0 0
*************


Shall I comment out the last line
'none /dev/shm tmpfs defaults 0 0'


This is the correct /etc/fstab (including the last line) to use -if- you have installed Gentoo on /dev/hda and paritioned it using the install guide.

But your last message tells me you didn't, or did something wrong

Quote:

cdimage # mount -t reiserfs /dev/hda3 /mnt/gentoo
/dev/hda3 no such file or directory


Check (using fdisk) if the partition really exists.

Code:

fdisk /dev/hda


and then 'p' to print the partition table.

Which should look something like this

Code:

Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1         5     40131   83  Linux
/dev/hda2             6        68    506047+  82  Linux swap
/dev/hda3            69      3649  28764382+  83  Linux

_________________
Microsoft and standards-compliance go together when it's a Microsoft standard.
Back to top
View user's profile Send private message
iamchrist
n00b
n00b


Joined: 11 Feb 2004
Posts: 3

PostPosted: Wed Feb 11, 2004 7:57 pm    Post subject: Reply with quote

try running cfdisk to quickly see if your partitions are still in place, and if the drives are where you left them and such. it's a bit more friendly than fdisk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum