Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

server = Ubuntu 11.04

login as a root, able to create directory, copy file previously few weeks ago, but now try to create directory but failed

 mkdir abc

 mkdir: cannot create directory `abc': Read-only file system

Any idea?

Thank you.

share|improve this question
    
Which partition are you trying this on? Is it mounted as read only? –  slhck Jun 28 '12 at 13:19
    
check if its read only in /etc/fstab –  Brandon Kreisel Jun 28 '12 at 13:23
    
Hi all, thanks for your reply. Got the server reboot and solved the problem but how this happen? root@server:/etc# ls -l /etc/fstab -rw-r--r-- 1 root root 620 2011-05-16 08:24 /etc/fstab root@server:/etc# cat /etc/fstab # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/xvda1 during installation /dev/xvda1 / ext3 errors=remount-ro 0 1 # swap was on /dev/xvdb during installation /dev/xvda2 none swap sw 0 0 –  gz y Jun 29 '12 at 3:09
    
sorry forget to use mini-Markdown formatting. <br/> im a new here. <br/> thanks for all the comments. still unable to make a line-break –  gz y Jun 29 '12 at 3:18
add comment

2 Answers

Is volume mounted as rw volume? or r only.

mount -oremount,rw /path/to/disk may work to remount volume as rw but only god can fix it there are other failures.

check status of system message buffer for relevant errors first...

sudo dmesg

share|improve this answer
    
sorry for the late reply. thought using '@TonyStewart' at the previous reply would post to u too. im new here. Thank for your comment. am able to gain back root's commands after reboot the server but still not sure what caused it. Thank again ^^ –  gz y Jun 29 '12 at 3:48
add comment

Like the error says: the filesystem is mounted read-only. Check dmesg for any errors, which can cause the filesystem to be automatically switched to read-only mode.

share|improve this answer
    
@TonyStewart sorry for the late reply. i able to gain back root's commands after reboot the server. but still not sure what caused it. == Thank psusi and Tony Stewart ^^ –  gz y Jun 29 '12 at 3:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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