Linux - NewbieThis 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
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.
My install linux Centos 6.5, 64 bit system is now a read only install. I cannot write to it.
Does that mean it had been working for some time and now you get this message? I doubt that CentOS 6.5 is going to show your drives as hd? rather than sd?. What changes did you make to the system just prior to this? Becoming read only geneerally happens with a problem with the filesystem and you need to run fsck on the system.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487
Rep:
If you can't mount your root filesystem, first try a fsck from the rescue console, then mount -a; failing that, use a 'live' system to take a look at your disk.
Oaky, I see the problem now. I am in emergency mode in my Centos 6.5, 64 bit system, from what I have read emergency mode is like runlevel 1 except the system install is now read only.
One is very limited in the commands that he can give. I am looking for anything online that tells one how to get out of emergency mode.
So is there a step-by-step process to get out of emergency mode and into runlevel 1. I can take it from there.
I would love to use the Centos rescue CD/DVD. I am relieved that I finally found out
what run-level that I am in : emergency mode. I thougt is was in some bott purgatory.
At least that is a start. I need to repopulate the boot directory and the grub subdirectory.
I know in Ubuntu there is a program to do just this, is it compatible with Centos 6.5, 64 bit?
Your guess is correct. Also, when I installed CentOS 6.5, it was still using Grub Legacy. switched to Grub2 with 7.0. What happened to your boot directory? You should be able to copy the necessary files from the installation medium of CentOS but you would need to modify the grub.conf/menu.lst file to suit your machine or else create a new one.
This all very new and that is why I am asking these questions.
My last command was
chroot /mnt/sysimage/
which generated no complaints.
Now I would love to run
fdisk -l and any other command.
However, I would like to run them on my /mnt/sysimage/ mounted install and I am not sure how to do that. Also I would like to run any other commands given above.
Changing to read only often happens with a corrupted filesystem and as suggested above, you could try running fsck on whichever partition it is. Why do you think you need to re-populate your boot and grub directories? Have you mounted your boot partition and the files are not there?
I boot up into Centos rescue. I am asked a set of questions about language and keyboard. It asks me if I want to start the network interfaces and I respond - no.
It gives a choice of rescue environments:
Continue Read-Only Skip Advanced
I select continue.
It says it is examining storage devices.
Then it says system has been mounted under
/mnt/sysimage
it also says the
Press return to get a shell. If you want to move your system the root environment, run the command:
chroot /mnt/sysimage.
I select ok.
It then says you system is mounted under the /mnt/sysimage directory. I acknowledge with ok.
It then gives a choice of three items:
shell Start shell
fakd run diagnostic
roboot Reboot
I select start shell and I get choose ok.
I get a shell prompt.
bash-4.1#
I can access my system at the command line. I cd /mnt/sysimage/
It is there - my system.
At this point I issue the command
chroot /mnt/sysimage/
(I assume that it is all that is required since that is all it says to do in the
boot up screens).
I issue the command and after a delay of 1 or 2 seconds it responds:
with a carriage return.
At this point it seems my entire file is now on the regular hard drive as I have known it.
I type (ls) at the coomand prompt and I get a listing of fles and directories.
The mnt directory is there. I cd into it and the sysimage is gone. Only the cdrom directory is there.
I type exit is it puts me back into graphical command mode.
I know that chroot usually has three bind commands (dev,run...). I did not use them.
The graphical interface only shows the one command.
chroot /mnt/sysimage/
I can use the LiveCD that I made, but it seems that simply using the Centos rescue option on the
on my centos 6.5, 64 bit install disk was easier.
I do not want to do anymore harm than necessary.
I have yet to make my Centos install read write from read only, but I will when I am sure of the commands.
I hope this shows acurrately where I am.
Any help appreciated.
R,
jyunker
I know that to run fsck one not mount files. So if I ran fsck i will not select continue
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.