Solved

System crash, TTY Read Only file system issue.

Posted on 2006-06-29
6
889 Views
Last Modified: 2008-01-09
After a reboot of SUSE Linux 9.0 server I attempt to log on as root and I get the following error:
FATAL: cannot change permissions of TTY: Read-only file system.
can anyone assist I cant find a fix anywhere.
0
Comment
Question by:ITHCI
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 17012473
1.    Recover any important data!
2.    Attempt to remount the file system. Look at /etc/fstab and attempt:

mount -o remount /

and the same process for the other partitions.

mount -as

may help?

3.     fsck (or equivalent for file system type all files systems

4.     Go and get a can of favourite beverage....*or* make a strong caffeinated drink because 3 often takes a long time.

5.     Pray.

6.     Possibly reinstall from scratch or replace HD - hopefully it won't come to this.

(   (()
(`-' _\
 ''  ''

0
 
LVL 14

Assisted Solution

by:DonConsolio
DonConsolio earned 40 total points
ID: 17012500
reboot your system ans check if there are any file system errors

you might need a manual "fsck" on boot
or start from Knoppix or rescue CD and manually fsck the apropriate partition
0
 

Author Comment

by:ITHCI
ID: 17012513
Thanks, I did the above steps already except for recover data as I am able to still mount the disk and read the files on it etc... if I use a SUSE rescue disk.  oh wait what is the "mount -as" ? I did a mount of the /dev/hda1 as rw and verified all fstab and mtab files seem to be correct with rw and defaults.

I also ran the fsch and all file systems came back good.

Any idea on what causes these issues? you said maybe failing hard disk?

0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 22

Accepted Solution

by:
pjedmond earned 460 total points
ID: 17012958
mount -as

means mount all devices in the /etc/fstab.....but do it in a 'sloppy' fashion - i.e. let the program guess the file system and configuration rather than explicitly stating it.

>I also ran the fsch and all file systems came back good.

You are obviously good at praying!

>Any idea on what causes these issues? you said maybe failing hard disk?

A powersupply 'glitch' could just upset a read/write process and result in a disk error. Operating systems are so complex, that there is no way that anyone can really guarantee that it is absolutely 100% correct....and of course the possibility of a genuine hard drive error which may (or may not) be a precursor to failure of the drive. I'd definitely check that SMART is enabled for the drive concerned, and perhaps treat it with more caution in future. ....but as you have excellent backups, it doesn't really matter if the drive goes up in smoke anyway;)

(   (()
(`-' _\
 ''  ''
0
 

Author Comment

by:ITHCI
ID: 17013295
Is running fsch a bad idea? generally? I may remove all necessary data and then rerun a mount -as as a last resort before complete rebuild.

Thanks,
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17013775
No - it's not a bad idea, in fact, the OS runs it as part of the boot process depending on the settings in the /etc/fstab

(   (()
(`-' _\
 ''  ''
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now