Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

logging in without /dev/ttyX? or general slackware question?

Posted on 1998-07-01
2
Medium Priority
?
321 Views
Last Modified: 2013-12-05
while fixing the kernel to my laptop (slackware 3.5 <2.0.30>), i added the line "/sbin/depmod -a" to my /etc/rc.S file. the problem that i encountered was that i was using a precompiled version of microEMACS that (unknown) to me changed the permissions on rc.S to 700.

so now when i boot up linux can't find the rc.S file, and when i try and log on i get:
        unable to change tty '/dev/tty1' for user 'root'
        unable to change tty /dev/tty1: Bad file number

so is there a way to log into linux with using a tty device?
it is not networked, i was hoping to try sunglu user mode but that fails as well.

one solution that i've seen is that on somewhat related redhat problems, ths user can start a reinstall of the OS, but when asked to do so <ctrl-z> and mount the drive and fix the problem. so if there is not a way to boot into linux i guess i'll be giving that a try.

erik
0
Comment
Question by:errorik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
richrussell earned 210 total points
ID: 1637484
Yep, you should have a boot and a root floppy for Slackware. You can boot these, and ctrl-z out after you've chosen the location on your root partition. This will have mounted it for you, but not necessarily in an obvious place!

Now you should be able to use ls, cd, etc.. to find your broken file and fix it. You probably won't have any editors available beyond sed, but you can substitute the correct line for the duff one, or just remove it altogether.

I've done this (too) many times with an older version of Slackware, but I doubt they've changed the installer that much.

It's the same with RedHat 4.1, you wait until it says 'in second stage install' then dump out with ctrl-z
0
 

Author Comment

by:errorik
ID: 1637485
what i ended up doing was just loading the bootdisk, and when it asked for extra parameters i just had it mount my root partition.

ohterwise the fix that i applied (that caused the problem) didn't work so it was all for naught.

thanks, though.
erik
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question