Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have made a small script and placed it in a file inside /etc/profile.d directory. Since then, I can not login in ubuntu 12.04, nor in terminal as the normal user. I can only login as root from recovery mode.

When I login as root, I try to delete the file but reaction is

can not remove file x... read only file system.

I also try to change it in root with nano (put comments everywhere), but I can not save it. Is there any way to delete it?

share|improve this question

marked as duplicate by Raja, Thomas Ward, psusi, stephenmyall, Mateo Apr 17 '13 at 20:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

You have to remount the Filesystem when you are in the recovery mode.

mount -o remount,rw /

This will remount the root-Filesystem "read-write" and you can proceed to change what you have to change.

share|improve this answer
thanks a lot prophecy201 – bob Apr 17 '13 at 13:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.