LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-26-2008, 05:28 PM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
cannot upload data using scp, Read-only file system


I am trying to upload data to a server to the be user dir (using be account, be@xxx), but got a "Read-only file system" error.

Checking the server, i see that the permission is changed. I don't remember changing them.. not sure what happened. Try to login as root and change the permission to 777 with -R, but it did not work,


Quote:
drwx------ 19 be be 4096 Aug 8 11:22 be
drwx------ 9 db db 4096 Jul 29 19:37 db
drwx------ 27 am am 4096 Jul 21 13:13 am
Does anyone have any idea what might have happen? It used to work!
 
Old 08-26-2008, 06:03 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
The permissions on those directories are such that their owners can write into them. The "readonly filesystem" message probably means the whole filesystem has flipped into readonly mode. This can happen if errors are detected on the drive. Check the system logs to see if there is any message about readonly.

You might need to repair the filesystem, and possibly replace the disk if it is going bad.
 
Old 08-26-2008, 11:31 PM   #3
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Original Poster
Rep: Reputation: 30
I grep the /var/log/ directory for the readonly, and got following messages, not sure what it mean

Quote:
messages.5:Jul 15 15:21:22 ee100 gconfd (euser-6230): Resolved address "xml:rea
donly:/home/euser/.gconf.xml.defaults" to a read-only configuration source at po
sition 3
messages.5:Jul 15 15:21:22 ee100 gconfd (euser-6230): Resolved address "xml:rea
donly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at posi
tion 4
messages.5:Jul 15 15:21:34 ee100 gconfd (root-6398): Resolved address "xml:read
only:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at posi
tion 0
messages.5:Jul 15 15:21:34 ee100 gconfd (root-6398): Resolved address "xml:read
only:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at posit
ion 2
How do I check the filesystem if there is any problem? or even repaire it?
The disk is formated with ext3 fs.
 
Old 08-26-2008, 11:46 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Find out what device the drive is, e.g. this in a terminal
Code:
$ cd /the/directory/you/could/not/write/to
$ mount |grep $(df -k . |tail -1 |awk '{ print $NF }')
You should see something like this:
Code:
/dev/sda5 on /home type ext3 (ro)
If the "(ro)" at the end is not there, or there is something else, like "(rw)", then maybe the filesystem is not mounted read only. In any case, paste the output here so I can see what is going on.
If it is mounted read only (i.e. you see the ro at the end of the line), grep for the device name in the log directory. In my case that would be done with the command:
Code:
grep sda5 /var/log/*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
feteching file from remote system using scp through a C programme. ravikumarv Programming 3 02-14-2008 01:17 AM
Read Only File System? Can't read superblock! haughjd Linux - Software 4 01-15-2008 08:27 AM
web server (fedora core 5) became read-only file system after i upload a file nggs8411 Linux - Server 1 03-26-2007 09:23 AM
libpopt.so.0: cannot read file data agustingp7 Linux - Desktop 2 11-22-2006 07:27 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM


All times are GMT -5. The time now is 10:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration