LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2003, 08:30 AM   #1
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
rc.M error during boot


During boot, I get an error message:

/etc/rc.d/rc.M :line 7 : [:missing `]'

Never touched this file before, but here's the first few lines:

#!/bin/sh
#
# rc.M This file is executed by init(8) when the system is being
# initialized for one of the "multi user" run levels (i.e.
# levels 1 through 6). It usually does mounting of file
# systems et al.
#
# Version: @(#)/etc/rc.d/rc.M 2.23 Wed Feb 26 19:20:58 PST 2003
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Heavily modified by Patrick Volkerding <volkerdi@slackware.com>

Line 7 is commented. I'm confused.

Last edited by snocked; 10-06-2003 at 08:34 AM.
 
Old 10-06-2003, 04:10 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
I'm not entirely sure I can help with this problem, but generally comments and blank lines aren't counted. Thus, when it refers to line 7, it probably is referring to the seventh uncommented line. I would suggest just ignoring all the leading comments, and concentrate on the first 10 or so "active", uncoommented lines of code. That's where I suspect you might find the problem. -- J.W.
 
Old 10-06-2003, 04:27 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I'm a bit confused myself. It should actually read the commented lines as well. What happens if you remove line 7 and reboot, does the same error occur?
 
Old 10-06-2003, 06:46 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
I will defer to trickykid's superior knowledge. If in fact all lines are counted, then maybe the presence of that second # sign in what I would call the eighth line (the one starting with Version: @(#)/etc/rc.d/rc.M ...) might be interpreted as an end-comment mark, and that anything following it should not be treated as a comment. In any event, I agree that it would be useful to eliminate those suspect lines, and see what happens. -- J.W.
 
Old 10-07-2003, 07:06 AM   #5
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Original Poster
Rep: Reputation: 30
The error is still there after removing line 7, which was just a #.
 
Old 10-07-2003, 07:17 AM   #6
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Original Poster
Rep: Reputation: 30
I just remembered that the only thing I had changed was /etc/rc.d/rc.local to start samba daemons automatically. I removed what I added to /etc/rc.d/rc.local and no more rc.M error. Strange.
 
Old 10-07-2003, 12:14 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
It might have been a generic type error and said it was line 7 in rc.M instead of rc.local since it does call upon the rc.local script in the rc.M script..
 
  


Reply



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
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
Grub (error 17) won't boot after new motherboard/vid card.. boot disk anyone? r3dhatter Linux - Newbie 5 02-16-2005 06:52 PM
Dual boot Win/Linux boot error L? jondy Linux - Newbie 2 04-16-2004 10:49 AM
li error and boot disk gives boot failure message Mr.Scum Linux - General 5 05-20-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration