LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-27-2012, 12:24 AM   #1
AsoInfo
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
mkdir: cannot create directory: Read-only file system (Tried sudo and chmod)


Greetings!

Whenever I tried to create directory it give me this error,"mkdir: cannot create directory: Read-only file system".

Some folders are shared between two servers so I created folder from one and want to use the other server for computation but it is unable to store any of the files or to write any file on the computational server.

I have tried sudo command as
sudo mkdir try

and chmod command as
sudo chmod -R 775 try

but no use. I have found the threads related to it but none of it helped me.

Looking forward for your support in this regard.

Thanks in advance!
 
Old 11-27-2012, 12:45 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
As the error message says, you try to write on a file system that is mounted as read-only (for whatever reason). This simply won't work.
Please post the output of
Code:
mount
and the exact location where you try to create the directory.
 
1 members found this post helpful.
Old 11-27-2012, 12:51 AM   #3
AsoInfo
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for such a quick reply!

The output of mount is


/dev/mapper/VolGroup_ID_11645-LogVol1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/VolGroup_ID_11645-LogVol2 on /tmp type ext3 (rw)
/dev/mapper/VolGroup_ID_11645-LogVol4 on /usr type ext3 (rw)
/dev/sdb3 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/mapper/VolGroup_ID_11645-LogVolHome on /home type ext3 (rw)
/dev/mapper/VolGroup_ID_11645-LogVol6 on /genlocalfs type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
linux1:/coredata1 on /coredata1 type nfs (rw,bg,addr=10.248.0.163)
linux1:/extdata1 on /extdata1 type nfs (rw,bg,addr=10.248.0.163)
linux1:/imgdata on /imgdata type nfs (rw,bg,addr=10.248.0.163)

The exact location is /extdata1/soft/Cufflinks on the server linux2 (computational server)

Hope it helps!

Last edited by AsoInfo; 11-27-2012 at 03:05 AM. Reason: server name
 
Old 11-27-2012, 02:53 AM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
It is probably a problem on the server computer, not the one you are typing the command from.

Check the permissions on the server.
https://help.ubuntu.com/community/Se...er_Permissions
 
1 members found this post helpful.
Old 11-28-2012, 01:12 AM   #5
AsoInfo
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you so much for the reply!

I am checking the server permission on the servers and will provide you feedback afterwards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
Create Read-only directory in writeable filesystem (without using chmod)? MarkA Linux - Software 2 08-15-2008 03:38 AM
mkdir: cannot create directory `test': Read-only file system punt Linux - General 2 04-16-2005 09:58 PM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 0 03-02-2004 04:09 PM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration