Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 AgentCool, Thomas W., psusi, Stephen Myall, 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.

1 Answer 1

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.