Solved

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

Posted on 1998-07-01
2
311 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
2 Comments
 
LVL 2

Accepted Solution

by:
richrussell earned 70 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ftp to port 21 4 54
Need To Copy Terminal Window Text To Another Terminal Window 8 38
Using sort and uniq to pare down large syslog 6 53
php56-php-mcrypt for rhel7 php56 1 55
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

830 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