LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2010, 10:49 AM   #1
gmac63
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
Crazy mount issue: rw changes to ro. WTF?!?


Ok this is bizarre: I have a mount (/mnt/hdf2) when I mount it, its mounr parameters are rw [$cat /proc/mounts: /dev/hdf2 /mnt/hdf2 ext3 rw,data=ordered 0 0].

As soon as I try to change any ownership [chown -R nobody.nobody /mnt/hdf2/<file or folder>] the mount changes to ro [$cat /proc/mounts: /dev/hdf2 /mnt/hdf2 ext3 ro,data=ordered 0 0] and I get: [chown: changing ownership of `/mnt/hdf2/<file>': Read-only file system]

WTF?!?!? why would any mounted filesystem change from rw to ro spontaneously? I unmount and remount and it comes back rw but changes as soon as I do any permissions change.

/etc/fstab has:
/dev/hdf2 /mnt/hdf2 ext3 defaults 1 2


-WY
 
Old 05-14-2010, 11:05 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Probably filesystem errors. Unmount it and fsck it.
 
Old 05-14-2010, 11:20 AM   #3
gmac63
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
[root@clearos mnt]# umount /mnt/hdf2
[root@clearos mnt]# fsck -a /dev/hdf2
fsck 1.39 (29-May-2006)
/mnt/hdd2: clean, 42875/2445312 files, 8230865/9770796 blocks


Clean. Any other ideas?

-WY
 
Old 05-14-2010, 11:40 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Force the fsck. fsck -f
 
Old 05-14-2010, 11:42 AM   #5
gmac63
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Solved!!!

Ok so I figured when I tried to mount as a windows share (samba) and copied a file to it , which of course complained. I did an 'lsof' just to see if there was any issue with any open files that might preclude me from copying to the mount. Here is what I found:

[root@clearos mnt]# lsof | grep '/mnt/hdf2'
smbd 4820 root cwd DIR 33,66 2048 2 /mnt/hdf2

So something in Samba was causing this issue. I stopped samba and changed perms.

Now on to other things....

-WY
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Crazy kernel issue with 2.4 to 2.6 update SirSlappy Slackware 3 04-04-2007 10:58 PM
Mount: not a directory WTF?! johnnyblade Slackware 7 10-22-2006 09:34 PM
crazy network issue aweber1nj Linux - Networking 4 10-16-2005 03:27 PM
crazy weird printing issue shinepuppy Linux - Software 2 05-02-2003 10:48 AM
security issue is driving me crazy safra Linux - Security 10 07-18-2002 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:18 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