Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
08-10-2002, 11:25 PM
|
#1
|
Member
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31
Rep:
|
module wont load
Mdk 8.2 Kernel 2.4.18-6
I get this error while booting.
"/etc/rc.d/rc.modules Line 18: syntax error : unexpected end of file"
The module loads fine from the command line.
Contents of rc.modules follows
#!/bin/sh
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>
# $Id: rc.modules,v 1.1.1.1 2000/07/30 05:07:38 chmouel Exp $
# description: launch modules specified in /etc/modules inspired by a
# Debian idea.
[ -f /etc/modules ] || exit 0
# Loop over every line in /etc/modules.
(cat /etc/modules; echo) | while read module args
do
case "$module" in
\#*|"") continue ;;
esac
initlog -s "Loading module: $module"
modprobe $module $args >/dev/null 2>&1
/sbin/modprobe NVdriver
|
|
|
08-11-2002, 12:24 AM
|
#2
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
so you got 17 lines in your rc.modules and it complains about line 18, interesting, try openning the file with vi (any other your favorite editor) place the cursor below the last line (/sbin/modprobe NVdriver) I suppose there is an empty line after it - hit dd to remove an empty line, save and exit. It might be mulformed new line character or something.
|
|
|
08-11-2002, 12:49 AM
|
#3
|
Member
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31
Original Poster
Rep:
|
Thanks neo,
I'll give it a go.
|
|
|
08-11-2002, 01:11 AM
|
#4
|
Member
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31
Original Poster
Rep:
|
Nope...didnt work.
Tried 3 editors...they all show the end as the end of line 17
|
|
|
08-11-2002, 02:26 AM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Ok, well I would try the other approach then, make a blank line at the end of the file.
|
|
|
08-11-2002, 02:37 AM
|
#6
|
Member
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31
Original Poster
Rep:
|
Didnt work either, MasterC
|
|
|
08-11-2002, 02:51 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Just throwing things out...
You could try adding "EOF" to the end of the file.
|
|
|
08-11-2002, 02:57 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
I am viewing a rc.modules file now at:
http://www.jasensky.com/files/rc.modules
Maybe where you have
You don't need double ;;
Again, just ideas, not too sure what's wrong.
|
|
|
08-11-2002, 03:18 AM
|
#9
|
Member
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31
Original Poster
Rep:
|
Nope, neither of those worked MasterC.
|
|
|
10-13-2002, 06:51 PM
|
#10
|
LQ Newbie
Registered: Oct 2002
Posts: 5
Rep:
|
same thing
Hello all
Just to let you know I am having the same problem, it doesnt appear to be affecting my system, but just errors in boot.
My rc.modules file is IDENTICAL
its been like this ever since I loaded the tarballs for 2960 nvidia drivers onto my Mandrake 9.0 installation.
It may be a bug in the nvidia module for that version of the driver?
I am not sure but am exploring possibilities
I have been trying out linux for a long time now, being a HPUX admin, unix is my first love.
Mandrake 9.0 is so far the only one that has installed without me needing to re-configure too many drivers, the nvidia one being the only one but only because I wanted GL capability.
Hope someone finds an answer.
I will post again if a newer version of the driver fixes the problem
BOFH1971
|
|
|
10-13-2002, 07:17 PM
|
#11
|
LQ Newbie
Registered: Oct 2002
Posts: 5
Rep:
|
invisible character?
Ok tried adding eos (end of script) to file
it then posted unexpected end of file in line 19 instead.
I appended to NVdriver and hit enter to create a new line. so the character after NVdriver will have moved onto the next line.
still rather strange
BOFH1971
|
|
|
All times are GMT -5. The time now is 12:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|