View previous topic :: View next topic |
Author |
Message |
tybaldchina n00b
Joined: 04 Dec 2002 Posts: 4
|
Posted: Thu Dec 05, 2002 11:51 pm Post subject: A wierd thing happened when I rebooted |
|
|
I seemed to boot up properly once i linked grub.conf to the *.lst file(I can't remember the name)except that I seem to have a line repeating through the boot that doesn't seem right.
/sbin/runscript.sh:1:: command not found
It repeats with the "1" alternating between 1 and 2, 5 to 15 times between every starred statement.
Anybody ever seen anything like that, and better yet know how to fix it?
Jeff |
|
Back to top |
|
|
s0be Apprentice
Joined: 23 Nov 2002 Posts: 240
|
Posted: Thu Dec 05, 2002 11:55 pm Post subject: |
|
|
I dunno, it sounds like it's not correctly mounting your / filesystem. Any info about that? What file system you running?
/*
S0Be
*/ |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Dec 06, 2002 12:24 am Post subject: |
|
|
It's not migrated over to the new FAQ forum yet, but see https://forums.gentoo.org/faq.php#17. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
tybaldchina n00b
Joined: 04 Dec 2002 Posts: 4
|
Posted: Fri Dec 06, 2002 12:37 am Post subject: Not accidently, I just misunderstood how to set the protocol |
|
|
I've fixed it now but I wish you could explain to me how you knew so fast what the problem probably was? I guess you can't teach experience and maybe next time somebody has the same prob, I can do the enlightening.
Thanks |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Dec 06, 2002 2:22 am Post subject: Re: Not accidently, I just misunderstood how to set the prot |
|
|
tybaldchina wrote: | I wish you could explain to me how you knew so fast what the problem probably was? | I wrote that FAQ entry, based on /sbin/runscript.sh: command not found, which was the first time I saw it. In shell scripts, "command not found" is preceded by the name of the command and a colon. That way, you know that the "command" that isn't being found is '1:', and as is described in that earlier thread, I used grep on various things that users generally edit in /etc, and found it that way. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Dec 25, 2002 1:04 am Post subject: boot problems debugging: rc-envupdate.sh and runscript.sh |
|
|
Hi,
I also had some errors on boot, after my Gentoo actually humed to life:
Code: |
* Updating environment
/sbin/rc-envupdate.sh: line 1: id: command not found
/sbin/rc-envupdate.sh: line 10: [: -ne: unary operator expected
* Cleaning /var/lock , /var/run
/sbin/runscript.sh : line 44: cd: /var/lock: no such file or directory
/sbin/runscript.sh : line 48: cd: /var/run: no such file or directory
touch: creating '/var/log/wtmp': no such file or directory
chgrp: failed to get attributes of '/var/run/utmp': no such file or directory
chgrp: failed to get attributes of '/var/log/wtmp': no such file or directory
chmod: failed to get attributes of '/var/run/utmp': no such file or directory
chmod: failed to get attributes of '/var/log/wtmp': no such file or directory
/sbin/runscript.sh : line 73: /var/locg/.keep: no such file or directory [OK]
* Cleaning /tmp directory [OK]
* The setfont/consolechars executable not found [!!]
* Loading key mappings
cannot open file windowkeys
* Error loading key mappings [!!]
* Bringing do up ... [OK]
* Initialiizing random number generator
* Error initializing random number generator [!!]
INIT: Entering runlevel 3
* Starting metalog ...
Start-stop daemon: stat /usr/sbin/metalog: no such file or directory
* Failed to start metalog [!!]
* Mounting network filesystems [OK]
* Error starting needed services
* 'vcron' was not started
* Starting local [OK]
idk-002c307.id.uni-karlsruhe.de login:
|
Of course, I know it must be some errors in my rc.conf file but I checked it and tried some other parameters without success. It could also be a nano wrap error. I will post the important lines of rc.conf later, yet I am tired and I go sleeping.
Merry Christmas to you all. Hope the 1.4 stable will come out soon, as christmas surprise
Sébastien |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Dec 25, 2002 3:32 pm Post subject: |
|
|
Suite:
Code: |
# /etc/rc.conf
KEYMAP="fr-latin1"
CONSOLEFONT="default8x16"
CLOCK="local"
DISPLAYMANAGER=gdm
XSESSION=gnome
|
I can't handle the "rc-envupdate issue", if it refers to /etc/hostname, I just wrote "idk-002c307".
Concerning the random number generator, I didn't compile it at all, so I presume, I must recompile the kernel with it but I don't understand why it is needed.
Also, I am not at home and have my ethernet connection disable, which I normally use to download packages, could it be a source of error (I don't think so)?
For the rest (the majority) of this errors, I have no idea |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Dec 25, 2002 9:58 pm Post subject: |
|
|
Do you have a separate /usr partition? It may be that /usr is not yet mounted by the time these things are running. I would consider this a bug in the init scripts - they should work even without /usr. In any case 'id' on my system is in /usr/bin/id.
You may be able to work around the problem by copying affected executables to /bin, but that's rather ugly, as Portage will not know about it. Another option would be to add "require localmount" to the affected services, in which case they will not try to run before all local disks are mounted. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Dec 26, 2002 10:46 am Post subject: |
|
|
Yes, I have a separated /usr partition. I think it's the problem you named (/usr/bin/id exists for me also), I'll try to fix this issue later. I also have a separate /var partitionand it seems to cause the same problem. Just a precision: where exactly do I need to add "require localmount", in rc-envupdate.sh I suppose ? |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 4:50 pm Post subject: |
|
|
It's later than I thought and here I am now: after the installation, I can reboot and login as root but I can't do anything, just simple commands like ls, ping (doesn't ping anything, although I configured my netwrk and it worked before the reboot) ... but most of the commands (like less, nano, halt and so on) do not work either.
What can I do ? |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 7:37 pm Post subject: |
|
|
Moreover, as I log in, I receive this message from bash:
Code: |
-bash: /usr/bin/whoami: no such file or directory
-bash: [: =: unary operator expected
|
Now, I don't see my /usr files (as it also probably is for /var, according to the error message at boot time) and the corresponding partition is mounted (I have a separated /usr partition, a separated /var partition and so on). But when I boot from the 1.2 livecd (I have a laptop on which the other installation cd didn't work, at least the 1.4rc1), I can see all that files. |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 8:44 pm Post subject: |
|
|
Come on, help ! Is there anybody out there ? |
|
Back to top |
|
|
relyt Apprentice
Joined: 29 Aug 2002 Posts: 238 Location: Massachusetts
|
Posted: Wed Jan 08, 2003 9:07 pm Post subject: |
|
|
Are you *sure* you have /usr and /var mounted? If so, when you did your install, did you mount them _prior_ to untaring that stage* tarball? |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 9:11 pm Post subject: |
|
|
I did it as said in user docs, so I mounted my partitions before untaring the stage1 tarball |
|
Back to top |
|
|
relyt Apprentice
Joined: 29 Aug 2002 Posts: 238 Location: Massachusetts
|
Posted: Wed Jan 08, 2003 9:17 pm Post subject: |
|
|
Okay, and you added them your /etc/fstab?
The fact that you can't see anything in these partitions even after the boot process ends seems to imply that they are not mounted. |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 9:51 pm Post subject: |
|
|
I know, that it implies, they are not mounted, but when I tried to mount the usr partition, mount said the partition is already mounted or the device is busy. |
|
Back to top |
|
|
eryvile Apprentice
Joined: 14 Aug 2002 Posts: 234 Location: europe
|
Posted: Wed Jan 08, 2003 9:56 pm Post subject: |
|
|
sebgarden wrote: | I know, that it implies, they are not mounted, but when I tried to mount the usr partition, mount said the partition is already mounted or the device is busy. |
what does just typing say? Usually it should show just the partitions that are mounted. |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 10:06 pm Post subject: |
|
|
Code: |
root # mount
/dev/hda9 on / type reiserfs (rw,noatime,notail)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0664,size=2048k)
/dev/hda3 on home type xfs (rw,noatime,nodiratime,nosyncisdsync)
/dev/hda5 on /tmp type reiserfs (rw,noatime,notail)
/dev/hda6 on /usr type reiserfs (rw,noatime,notail)
/dev/hda7 on /usr/local type reiserfs (rw,noatime,notail)
/dev/hda8 on var type reiserfs (rw,noatime,notail)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs
|
|
|
Back to top |
|
|
eryvile Apprentice
Joined: 14 Aug 2002 Posts: 234 Location: europe
|
Posted: Wed Jan 08, 2003 10:08 pm Post subject: |
|
|
sebgarden wrote: | Code: |
root # mount
/dev/hda9 on / type reiserfs (rw,noatime,notail)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0664,size=2048k)
/dev/hda3 on home type xfs (rw,noatime,nodiratime,nosyncisdsync)
/dev/hda5 on /tmp type reiserfs (rw,noatime,notail)
/dev/hda6 on /usr type reiserfs (rw,noatime,notail)
/dev/hda7 on /usr/local type reiserfs (rw,noatime,notail)
/dev/hda8 on var type reiserfs (rw,noatime,notail)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs
|
|
Do you have support for reiserfs compiled into your kernel or is it a module? Also the entries for home and var don't seem to be right, i.e. the slash '/' is somewhat missing (I'm not really sure of that, it just looks a little bit strange, maybe an typo in your fstab?)
Last edited by eryvile on Wed Jan 08, 2003 10:11 pm; edited 1 time in total |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 10:10 pm Post subject: |
|
|
Support for reiserfs is compiled in the kernel. |
|
Back to top |
|
|
relyt Apprentice
Joined: 29 Aug 2002 Posts: 238 Location: Massachusetts
|
Posted: Wed Jan 08, 2003 10:12 pm Post subject: |
|
|
sebgarden wrote: | Code: |
root # mount
/dev/hda9 on / type reiserfs (rw,noatime,notail)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/.init.d type tmpfs (rw,mode=0664,size=2048k)
/dev/hda3 on home type xfs (rw,noatime,nodiratime,nosyncisdsync)
/dev/hda5 on /tmp type reiserfs (rw,noatime,notail)
/dev/hda6 on /usr type reiserfs (rw,noatime,notail)
/dev/hda7 on /usr/local type reiserfs (rw,noatime,notail)
/dev/hda8 on var type reiserfs (rw,noatime,notail)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs
|
|
Okay, that looks like hda8 is mounting on "var" instead of "/var". Check your fstab to make sure it says "/var". |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Wed Jan 08, 2003 10:16 pm Post subject: |
|
|
Oups, excuse me, it's a typo in the code above, you should read /var and /home. fstab is not in question.
Last edited by sebgarden on Thu Jan 09, 2003 1:02 pm; edited 1 time in total |
|
Back to top |
|
|
relyt Apprentice
Joined: 29 Aug 2002 Posts: 238 Location: Massachusetts
|
Posted: Wed Jan 08, 2003 10:46 pm Post subject: |
|
|
Just curious, if you umount /usr, do you see anything in that directory? |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Jan 09, 2003 12:27 pm Post subject: |
|
|
I can't umount /usr: device busy. I don't know what to do. It should be linked with the boot errors but I don't understand how. Is there something I can update with emerge which should improve the situation (I should still reach the network with the installation CD and chroot). I wrote a new topic in this forum to solve this problem:
https://forums.gentoo.org/viewtopic.php?t=29413&start=0 |
|
Back to top |
|
|
|