View previous topic :: View next topic |
Author |
Message |
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Thu Jan 09, 2003 1:19 am Post subject: OOOPS! (help! Won't boot after update) |
|
|
Hi..
I compiled a whole bunch of system upgrades today through emerge -u world (cant even remeber which they were., but one of them was binutils)
Anyway.. emerge warned me that I had config files in /etc that needed attention, but I accidentally rebooted before having a chance to take a look at them.
Now Linux doesnt boot anymore.. It complains it doesnt have permission to read /bin/rc, and cant find a lot of stuff in the sbin folder when init changes.
I'm obviously going to have to boot off of the livecd, mount my root partition and edit the approrpiate files in /etc.... But... Which ones are they, and what should I change them to?
GAAAH!
I'd appreciate any help!
Thanks,
Matt _________________ ----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
---- |
|
Back to top |
|
|
li1_getoo l33t
Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Thu Jan 09, 2003 7:55 am Post subject: |
|
|
the best way to fix this is go back here http://www.gentoo.org/doc/en/gentoo-x86-install.xml
and edit back all the files u edited while installing
ie. /etc/conf.d/net (to restore ur settings for ur eth0)
no need to rc-update them |
|
Back to top |
|
|
keratos68 Guru
Joined: 27 Dec 2002 Posts: 561 Location: Blackpool, Lancashire, UK.
|
Posted: Fri Jan 10, 2003 3:31 pm Post subject: |
|
|
Is it the case that filesystems cannot be mounted (corrupt /etc/fstab) or they are all mounted but binaries are corrupt?
What happens if you boot from install-CD, login, and fsck the partitions?
Failing all this, the previous suggestion is perhaps your only door! _________________ Someone told me that "..they only ever made one mistake...."
...and that's when they said they were wrong!! |
|
Back to top |
|
|
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Sun Jan 12, 2003 2:57 am Post subject: |
|
|
dazzle68 wrote: | Is it the case that filesystems cannot be mounted (corrupt /etc/fstab) or they are all mounted but binaries are corrupt?
What happens if you boot from install-CD, login, and fsck the partitions?
Failing all this, the previous suggestion is perhaps your only door! |
When I boot up from a CD, and mount the partitions everything seems to work ok. From memory, this is the error screen I see when it finally stops:
Code: |
INIT: Cannot execute "/sbin/agetty"
INIT: Cannot execute "/sbin/agetty"
INIT: Cannot execute "/sbin/agetty"
INIT: Cannot execute "/sbin/agetty"
Id "c1" respawning too fast: Disabled for 5 minutes.
INIT: Cannot execute "/sbin/agetty"
Id "c2" respawning too fast: Disabled for 5 minutes.
INIT: Cannot execute "/sbin/agetty"
Id "c6" respawning too fast: Disabled for 5 minutes.
INIT: Cannot execute "/sbin/agetty"
Id "c3" respawning too fast: Disabled for 5 minutes.
INIT: Cannot execute "/sbin/agetty"
Id "c4" respawning too fast: Disabled for 5 minutes.
INIT: Cannot execute "/sbin/agetty"
Id "c5" respawning too fast: Disabled for 5 minutes.
No more processes left in this runlevel
|
and if I <Crtl><alt><del> I get:
Code: |
INIT: Cannot excecute /bin/shutdown
|
There is more stuff above the agetty crap, but it goes by too fast for me to read it.
Any ideas what might be going on? _________________ ----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
---- |
|
Back to top |
|
|
keratos68 Guru
Joined: 27 Dec 2002 Posts: 561 Location: Blackpool, Lancashire, UK.
|
Posted: Sun Jan 12, 2003 9:45 am Post subject: |
|
|
When you boot from CD, access to binaries will be from the CD not your filesystem, consequently your filesystems could be the problem, bad emerges or bad bootup, so, check these IN ORDER GIVEN:
1."Bad filesystems"
As I said earlier, which you still haven't done(!), perform an fsck. If you are not sure what to do, then boot off the CD, and "fsck -a /dev/xxxx" where "xxxx" is each of your partitions. Make sure each partition IS NOT mounted.
2. Check your root device is correctly specified in LILO and/or GRUB configuration files. If you are not sure what to do here, then post us your configuration files /etc/lilo.conf and /boot/grub/menu.lst and /boot/grub/grub.conf and the output of "cfdisk /dev/hda".
3."Emerges"
Re-emerge packages. _________________ Someone told me that "..they only ever made one mistake...."
...and that's when they said they were wrong!! |
|
Back to top |
|
|
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Mon Jan 20, 2003 4:08 am Post subject: |
|
|
dazzle68 wrote: |
2. Check your root device is correctly specified in LILO and/or GRUB configuration files. If you are not sure what to do here, then post us your configuration files /etc/lilo.conf and /boot/grub/menu.lst and /boot/grub/grub.conf and the output of "cfdisk /dev/hda".
|
hehe after reinstalling three times, I think I finally figured out what I was doing wrong hehe. I forgot to add a symlink from grub.conf to menu.lst hehe.
I'm going to see if that fix works.
brb _________________ ----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
---- |
|
Back to top |
|
|
Zarathustra[H] Guru
Joined: 30 Dec 2002 Posts: 389 Location: Cambridge, MA, USA
|
Posted: Mon Jan 20, 2003 4:42 am Post subject: |
|
|
oh man..
I feel so embarrased now.
Soo much aggravation and work over somethin a silly as this.
It wasnt the symlink that was the problem. The problem was that I accidentally added the option "user" to my boot and root partitions in fstab.
Oh Well..
At least now it works. Time to recompile X. (wohoo, just what I want to do.)
Thanks for the help guys. _________________ ----
Athlon 64 3000+ / 1Gb Kingston Hyperx PC3500 / MSI K8N Neo / Geforce 6800GT
---- |
|
Back to top |
|
|
Kethinov Apprentice
Joined: 20 Aug 2003 Posts: 166 Location: ESU, Student Teaching 5th Grade
|
Posted: Sat Jan 10, 2004 8:12 pm Post subject: |
|
|
I realize this thread is a year old but I just wanted to thank you, Zarathustra[H], for your last post in this thread no matter how embarassing it was for you because I did the exact same thing! A search in the forums revealed your thread and my problem was solved. |
|
Back to top |
|
|
Robin79 l33t
Joined: 18 Oct 2003 Posts: 632 Location: /home/valdemarsvik
|
Posted: Tue Mar 16, 2004 2:18 am Post subject: |
|
|
What Can i say i did the same thing thanx Zarathustra[H] for making it before me so i could fix it!! _________________ Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------
Registered Linux User Nr # 319050 http://counter.li.org |
|
Back to top |
|
|
gmcle454 Apprentice
Joined: 10 Mar 2004 Posts: 173 Location: U.S. - Virginia
|
Posted: Sun May 02, 2004 5:25 am Post subject: |
|
|
Did it too. _________________ Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi. |
|
Back to top |
|
|
Peruzulu n00b
Joined: 12 Oct 2004 Posts: 4
|
Posted: Thu Apr 21, 2005 5:46 pm Post subject: |
|
|
I too am a donkey, and will no doubt not be the last!!!!
Forums, the saviour of countless systems!!!
P |
|
Back to top |
|
|
Myko n00b
Joined: 08 May 2005 Posts: 4
|
Posted: Sun May 08, 2005 3:49 am Post subject: Old forum, still helpful |
|
|
After hours hours hours of googling, #gentoo-ing, doing random stuff on my own, and eventually signing up on this forum and searching for my error - this fixed it =) Soo thank you! And from now on I'll remember that adding "auto" to my root partition in /etc/fstab is a Bad Thing (tm)
Thanks! _________________ -JEP |
|
Back to top |
|
|
ben_dash Apprentice
Joined: 12 Aug 2003 Posts: 239
|
Posted: Mon Oct 24, 2005 1:21 am Post subject: |
|
|
I'm still having the same problem, however, I'm using an nfs root.
Could anyone please tell me if I have passed the wrong parameters in my fstab:
Code: | # <fs> <mountpoint> <type> <opts> <dump/pass>
192.168.0.1:/mnt/data/xbox / nfs nolock,exec,rw,nfsvers=2 0 0
/dev/hda50 /mnt/fatx/E fatx defaults 0 0
/mnt/fatx/E/linuxswap none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
# NOTE: The next line is critical for boot!
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).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
Thanks! |
|
Back to top |
|
|
|