LinuxQuestions.org
Review your favorite Linux distribution.
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 12-14-2012, 06:48 PM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,583

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
hmod: changing permissions of `users/': Read-only file system


excuse me... this is a LVM that is part of my NFS server, how is the world did it get to read only and how do i fix this:

drwxr-xr-x. 4 root root 4096 Dec 13 16:33 ./
dr-xr-xr-x. 24 root root 4096 Dec 13 10:59 ../
drwxr-xr-x. 2 root root 4096 Dec 13 16:33 USB/
drwsrwxrwx. 4 root root 4096 Dec 11 15:45 users/

it is most defiantly NOT set to read only.

ray@sparky ~]$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 97G 6.6G 85G 8% /
tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 ext4 504M 68M 412M 15% /boot
/dev/mapper/backup-LVM
ext4 585G 75G 480G 14% /mnt/users
/home/ray/Fedora-18-Beta-x86_64-DVD/Fedora-18-Beta-x86_64-DVD.iso
iso9660 4.3G 4.3G 0 100% /media/cdrom
 
Old 12-14-2012, 10:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,791
Blog Entries: 54

Rep: Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979
Check dmesg and syslog for any errors or warnings wrt the partition, run tune2fs on it ('man tune2fs', "-e") to check the "error-behavior" setting and see if an fsck is necessary?
 
Old 12-15-2012, 01:36 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 231Reputation: 231Reputation: 231
Check the file system quota.
Use tune2fs -Q to set and unset quotas; run fsck as unSpawn advised above.
Check also if nothing auto remounts the volume to ro.
 
Old 12-15-2012, 08:46 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,583

Original Poster
Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Code:
root@sparky mnt]# tune2fs -e /dev/mapper/backup-LVM 
tune2fs 1.41.12 (17-May-2010)
tune2fs: bad error behavior - /dev/mapper/backup-LVM
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
	[-i interval[d|m|w]] [-j] [-J journal_options] [-l]
	[-m reserved_blocks_percent] [-o [^]mount_options[,...]] 
	[-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label]
	[-M last_mounted_dir] [-O [^]feature[,...]]
	[-E extended-option[,...]] [-T last_check_time] [-U UUID]
	[ -I new_inode_size ] device
[root@sparky mnt]# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda2     ext4     97G  6.6G   85G   8% /
tmpfs        tmpfs    1.9G     0  1.9G   0% /dev/shm
/dev/sda1     ext4    504M   68M  412M  15% /boot
/dev/mapper/backup-LVM
              ext4    585G   75G  480G  14% /mnt/users
[root@sparky mnt]# tune2fs -e /mnt/users/
tune2fs 1.41.12 (17-May-2010)
tune2fs: bad error behavior - /mnt/users/
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
	[-i interval[d|m|w]] [-j] [-J journal_options] [-l]
	[-m reserved_blocks_percent] [-o [^]mount_options[,...]] 
	[-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label]
	[-M last_mounted_dir] [-O [^]feature[,...]]
	[-E extended-option[,...]] [-T last_check_time] [-U UUID]
	[ -I new_inode_size ] device
[root@sparky mnt]# tune2fs -Q /dev/mapper/backup-LVM 
tune2fs 1.41.12 (17-May-2010)
tune2fs: invalid option -- 'Q'
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
	[-i interval[d|m|w]] [-j] [-J journal_options] [-l]
	[-m reserved_blocks_percent] [-o [^]mount_options[,...]] 
	[-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label]
	[-M last_mounted_dir] [-O [^]feature[,...]]
	[-E extended-option[,...]] [-T last_check_time] [-U UUID]
	[ -I new_inode_size ] device
nothing doing...

not sure if this helps:

Code:
[root@sparky mnt]# exportfs -v
/mnt/users/ray	 192.168.2.0/24(rw,wdelay,root_squash,no_subtree_check)
 
Old 12-15-2012, 10:26 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,791
Blog Entries: 54

Rep: Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979
Quote:
Originally Posted by lleb View Post
nothing doing...
This shows a partitions current error behavior setting:
Code:
tune2fs -l /path/to/partitionname|grep ^E
and this how you change it:
Code:
tune2fs -e remount-ro /path/to/partitionname
 
Old 12-15-2012, 10:58 AM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,583

Original Poster
Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
well sadly all of this looks to be a mute point. looks like my HDDs have taken a dump, that or the MB is dead.

thanks for trying to help, this is a hardware issue ill have to deal with.
 
  


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
Permissions changing, System Changing swgeek Linux - Desktop 2 09-24-2011 12:37 PM
Changing the dvd read/writer permissions Graham Findlay Linux - Newbie 1 12-01-2008 10:54 AM
Permissions cannot touch `testFile': Read-only file system windsurfer Linux - Software 2 04-17-2007 08:13 AM
How to disable password changing permissions to normal users ? toraghun Linux - Newbie 14 11-17-2005 11:17 AM
K3B won't let users burn -- even after changing permissions! theMonkeY Linux - Software 8 08-23-2004 07:39 AM


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