LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-10-2002, 11:25 PM   #1
cinders
Member
 
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31

Rep: Reputation: 15
Angry 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




 
Old 08-11-2002, 12:24 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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.
 
Old 08-11-2002, 12:49 AM   #3
cinders
Member
 
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks neo,
I'll give it a go.
 
Old 08-11-2002, 01:11 AM   #4
cinders
Member
 
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31

Original Poster
Rep: Reputation: 15
Nope...didnt work.
Tried 3 editors...they all show the end as the end of line 17
 
Old 08-11-2002, 02:26 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Ok, well I would try the other approach then, make a blank line at the end of the file.
 
Old 08-11-2002, 02:37 AM   #6
cinders
Member
 
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31

Original Poster
Rep: Reputation: 15
Didnt work either, MasterC
 
Old 08-11-2002, 02:51 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Just throwing things out...

You could try adding "EOF" to the end of the file.
 
Old 08-11-2002, 02:57 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I am viewing a rc.modules file now at:
http://www.jasensky.com/files/rc.modules

Maybe where you have
Quote:
\#*|"") continue ;;
esac
You don't need double ;;

Again, just ideas, not too sure what's wrong.
 
Old 08-11-2002, 03:18 AM   #9
cinders
Member
 
Registered: Aug 2002
Location: Australia
Distribution: Mdk 9, Debian 3, OpenLinux 2.3, Slackware 8.1, RedHat 8
Posts: 31

Original Poster
Rep: Reputation: 15
Nope, neither of those worked MasterC.
 
Old 10-13-2002, 06:51 PM   #10
bofh1971
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Rep: Reputation: 0
Question 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
 
Old 10-13-2002, 07:17 PM   #11
bofh1971
LQ Newbie
 
Registered: Oct 2002
Posts: 5

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


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rtl8139 module wont load scuzzman Linux - Hardware 5 11-19-2004 12:45 AM
Gigafast WF741-UHI wireless thumb drive driver module wont load on MDK 10.1. RHLinuxGUY Mandriva 0 11-08-2004 11:43 PM
nvidia driver 5328 redhat 9 module wont load restlekak Linux - Hardware 1 01-24-2004 03:21 PM
USB module wont load!! gazzer82 Linux - Hardware 1 01-07-2004 04:07 PM
Network Card Module wont load. Druaga Linux - Hardware 4 06-05-2003 10:21 AM


All times are GMT -5. The time now is 05:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration