SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
if rc.M is corrupt I don't think you can boot from the boot disk since the boot process will try to run rc.M.
So you're saying that I will have to boot from a CD??
I have another PC at home that I can boot to Slackware OR Fedora......could I just boot to Slackware on this box, then copy the rc.6 and rc.M files from there to a disk and move them over?
So you're saying that I will have to boot from a CD??
I have another PC at home that I can boot to Slackware OR Fedora......could I just boot to Slackware on this box, then copy the rc.6 and rc.M files from there to a disk and move them over?
Copying the files from a Fedora installation is probably a bad idea. Not having used Fedora, I can't confirm this, but it is reasonable to suspect they are different from the Slackware ones.
[EDIT]
Misread your post (doh!). Sure, copy the Slackware rc.M and rc.6 over to another Slackware installation. Sounds like the easy way to do it.
[EDIT]
Your best bet might be to use a live CD (such as SLAX). You can then edit the files in your slackware installation with an editor such as kate (part of kde) and set the EOL (end of line) back to UNIX style (as opposed to the DOS style they're probably in having edited them in wordpad).
Booting from the Slackware install CD (as was suggested) won't work if these files are indeed corrupt. This method only uses a kernel from the installation CD, everything else comes from your system.
I got home and it still would let me log in locally. I logged in, went into the GUI, went into Kate, changed the line endings from Windows to UNIX, rebooted, and it worked perfectly!!!
So you're saying that I will have to boot from a CD??
I think that you can add "single" or "1" after the name of your kernel at boot time and boot into single-user mode.
Quote:
Originally Posted by JSLayton
I have another PC at home that I can boot to Slackware OR Fedora......could I just boot to Slackware on this box, then copy the rc.6 and rc.M files from there to a disk and move them over?
If I were you I'd try the ones from Slackware not Fedora. In general it is really important to backup /etc files before editing unless you really know what you are doing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.