LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-16-2006, 07:22 AM   #1
jovie
Member
 
Registered: May 2006
Posts: 54

Rep: Reputation: 15
"Read-only file system" but it's rw


Hi

Can anyone explain why my system cliams /data is read only when half an hour ago I could write to it and mount say's it's rw?

It won't umount either, dievice busy even after fuesr -mk /data.

Thanks


Code:
[root@galaxy /data]# mkdir junk
mkdir: cannot create directory `junk': Read-only file system
[root@galaxy /data]# mount
/dev/hda2 on / type ext3 (rw)
/dev/proc on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
/dev/shm on /dev/shm type tmpfs (rw)
/dev/hda3 on /home 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)
automount(pid1988) on /misc type autofs (rw,fd=4,pgrp=1988,minproto=2,maxproto=4)
automount(pid2030) on /net type autofs (rw,fd=4,pgrp=2030,minproto=2,maxproto=4)
/dev/sda1 on /data type ext3 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
[root@galaxy /data]#

[root@galaxy /]# fuser -mk /data
[root@galaxy /]# umount /data
umount: /data: device is busy
umount: /data: device is busy
 
Old 06-16-2006, 08:15 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
According to this "[root@galaxy /data]#", you are in the /data directory when trying to umount. You are keeping it busy. Cd out of /data, then try to umount.

As for writing to /data, check the user's permission to write. The partition can be mounted rw, but if the user doesn't have write permission, he can't write to /data.
 
Old 06-16-2006, 09:15 AM   #3
jovie
Member
 
Registered: May 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks for responding

Quote:
Originally Posted by bigrigdriver
According to this "[root@galaxy /data]#", you are in the /data directory when trying to umount.
Nope I was in / when I tried umount. I was in /data when I tried (as root) to write to it with mkdir as an example of the problem. 'mount' say's it's still rw and I can't umount so I can't re-mount it which would solve the problem if not the cause.

This is happening ~twice a day and the only way I have to clear it is a reboot. I'm going to leave the next occurence to see if some process is making it temporarily read-only.

Any other ideas?
 
  


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
perplexing "read-only file system" error Chomper Linux - General 1 11-16-2005 08:56 PM
"Read-Only File System" external USB HD logan2004 Linux - Hardware 3 04-01-2005 10:07 AM
KDE freezes up. Getting "Read-only file system" GoodVibrations Slackware 6 02-28-2005 08:49 AM
Can't boot Mandrake 10.0, "Cannot touch, Read-Only File System" RasutoIbuki Mandriva 5 07-23-2004 09:57 PM
"mkdir: cannot create directory `foo': Read-only file system" on FAT32 maddes Linux - Hardware 1 11-26-2003 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:04 AM.

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