LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-09-2003, 09:10 PM   #1
rgreene
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
zipslack and 486sx


I'm trying to set up LINUX to do some temperature measurement stuff.

I downloaded zipslack - unzipped it on a disk where I have space, and copied everything onto the 486sx machine which is running win95. Put everything in a \linux directory. made a boot disk - rawwrite.

have booted system from both the boot disk and the hd - edited linux.bat

here's where I'm stuck:

after a long loading sequence I get

INIT: version 2.84 booting
INIT: cannot execute "/etc/rc.d/rc.S"

and

INIT: cannot execute "/etc/rd.d/rc.M"

when I look in /LINUX/etc/rd.d, I don't see rc.M or rc.s - I do see rc_m.{_4 and rc_s.{_5

This is a newbie forum, right? where do I go from here?

The machine is a 486sx with 32 meg of ram and a 2 gig ide disk, cd, and network card.

thanks for your help!
 
Old 06-09-2003, 09:37 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'd just rename the files - FAT and ext2 (or whathaveyou) sometimes don't translate filenames well and several distros install scripts make incorrect assumptions about the machine and so on. If you encounter other problems, it may be that a lot went wrong and you either have a lot of work or need to start over but just try renaming first - as long as they look like good init scripts - just give them the right names. Then everything may be fine.

Another problem I know of, regarding SXs, is that not all distros work on them - some can fudge the lack of coprocessor and some can't. But if it boots at all, you're okay there.

Good luck - I have a 486SX, too, but with next to no RAM and a *tiny* hard drive - about the best I can do is BasicLinux1.8.
 
Old 06-09-2003, 10:17 PM   #3
rgreene
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I renamed them both, same results.

How do I turn on logging to see the complete dialog? It flies by on the console, and I can scroll thru it, but not share it with you guys for help.....

When I look at the files, they appear "unformatted" (in notepad - got a better idea?), but when I cut and past to show you a fragment, it looks ok...? Here's a snip of the beginnig of rc.S...



#!/bin/sh
#
# /etc/rc.d/rc.S: System initialization script.
#
# Mostly written by: Patrick J. Volkerding, <volkerdi@slackware.com>
#

PATH=/sbin:/usr/sbin:/bin:/usr/bin

# Start devfsd if necessary
if [ -r /dev/.devfsd ]; then
if [ -x /sbin/devfsd ]; then
echo "Starting devfs daemon: /sbin/devfsd /dev"
/sbin/devfsd /dev
fi
fi

# enable swapping
/sbin/swapon -a

# Test to see if the root partition is read-only, like it ought to be.
READWRITE=no
if echo -n >> "Testing filesystem status"; then
rm -f "Testing filesystem status"
READWRITE=yes
fi

# See if a forced filesystem check was requested at shutdown:
if [ -r /etc/forcefsck ]; then
FORCEFSCK="-f"
fi

# Check the root filesystem:
if [ ! $READWRITE = yes ]; then
if [ ! -r /etc/fastboot ]; then
echo "Checking root filesystem:"
/sbin/fsck $FORCEFSCK -C -a /
RETVAL=$?
fi
# An error code of 2 or higher will require a reboot.
if [ $RETVAL -ge 2 ]; then
# An error code equal to or greater than 4 means that some errors
# could not be corrected. This requires manual attention, so we
# offer a chance to try to fix the problem in single-user mode:
if [ $RETVAL -ge 4 ]; then
echo
echo
echo "***********************************************************"
echo "*** An error occurred during the root filesystem check. ***"
echo "*** You will now be given a chance to log into the ***"
echo "*** system in single-user
 
Old 06-09-2003, 10:59 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'dmesg' should give you some of the boot info. I've been a bad Linuxer lately and I'm forgetting what I knew. There's stuff in /proc that should be informative, too.

Unformatted? Notepad as in Windows? That'll read the eol markers wrong, don't worry about that, I don't think.

Looks okay to me. I'm afraid I'm going to have to bow out to someone more experienced. Somebody will get it worked out soon. Good luck.

Oh - one last shot - they all should be in /etc/rc.d and not in any rd.d, as far as I know - and all the scripts need to reflect that. I don't know if that was a typo or what's actually in your file system.

Another thing that might help is to post those install batch files you mentioned you modified - you do usually have to modify them but maybe the issue is in how they were modified.

Oh! And they need to be chmod'ed to be executable if they aren't already. Otherwise it's no surprise they can't be executed. *g*

- edit - and btw - welcome to LQ!

Last edited by slakmagik; 06-09-2003 at 11:02 PM.
 
Old 06-10-2003, 05:53 AM   #5
rgreene
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply. You spotted my typo! - its all in rc.d

this is the line in the batch file that loads it:

\linux\loadlin \linux\vmlinuz root=/dev/hda1 rw

What's a good editor that will recognize eol's? (in windows - no LINUX yet).
 
Old 06-10-2003, 08:02 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
A great windows text editor that can save with a unix file format is textpad. Worpad can translate unix EOL.

BTW
unix EOL Ctrl-A
DOS EOL Ctrl-A, Ctrl-D
 
Old 06-10-2003, 06:17 PM   #7
rgreene
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Checked out the textpad editor - thanks!

Now back to the main problem - anyone - HELP!
 
Old 06-10-2003, 07:32 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
MetaPad's good for Linux/Windows, too. And there are ports of Vim and all.

Maybe it's /etc/inittab that's screwed up. Could try checking that. And, unless I'm mistaken, this won't work as you'll still need rc.S but you could try telling LILO 'ZipSlack init 1' or whatever you type - like in BasicLinux I type 'BasicLinux' at the prompt - just add 'init 1'. That should get around rc.M just to see if anything works but, like I say, it'll still hang on rc.S. As far as I know, that's really it - init's complaining so it's okay and it needs a proper inittab and set of proper, executable scripts in rc.d. If those are okay, I can't think what else it would be unless hardware like the SX issue, but that would produce a different error.

If any wizards out there know - even if the rc scripts are gibberish init will still happily try to execute the nonsense, right? It's just checking for the presence and executability of the scripts? So if the scripts *do* exist, it has to be an error in how inittab describes them or what permissions they have or where they're located?
 
  


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
Notebook 486SX 25 bronko Linux - Laptop and Netbook 9 11-03-2005 11:35 PM
[ZipSlack 10.0] Installing KDE on ZipSlack - HELP!!! Rookie One Slackware - Installation 3 12-03-2004 02:39 PM
Linux options for 486sx 173mb HD, does not boot from CD ajr Linux - Newbie 4 01-22-2004 11:22 PM
Need a small Distro for 486sx Ryan Collings Linux - General 3 12-15-2003 09:20 AM
distro 4 a 486sx poacher Linux - Distributions 7 09-09-2002 04:53 PM


All times are GMT -5. The time now is 08:43 AM.

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