Visit Our UNIX and Linux User Community


root filesystem goes readonly


 
Thread Tools Search this Thread
Operating Systems Linux root filesystem goes readonly
# 1  
Old 10-07-2011
root filesystem goes readonly

I see this when tried to create a dir using root

fstab entries are pretty normal
tried to remount with rw but it is still the same


Code:
block device /dev/sda2 is write-protected

---------- Post updated at 04:57 PM ---------- Previous update was at 03:51 PM ----------

fstab entry
Code:
LABEL=/                 /                       ext3    defaults        1 1

dmesg
Code:
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
audit(1317999399.316:2): user pid=16747 uid=0 auid=4294967295 msg='avc:  0 AV en                 tries and 0/512 buckets used, longest chain length 0
'
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
ext3_abort called.
EXT3-fs error (device sda2): ext3_remount: Abort forced by user
end_request: I/O error, dev fd0, sector 0

---------- Post updated at 04:58 PM ---------- Previous update was at 04:57 PM ----------

also treid

Code:
mount -o remount,rw /

---------- Post updated at 05:00 PM ---------- Previous update was at 04:58 PM ----------

release
Code:
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

uname -a
Code:
Linux hostname 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 athlon i386 GNU/Linux

# 2  
Old 10-07-2011
What is your disk device? Some flash devices have a 'read only' tab.

Also, check your dmesg. Disk errors can force a filesystem to go read-only.
# 3  
Old 10-07-2011
If the disk was in rw mode and it suddently went ro, then I suspect you've hit this bug which is pretty common on RHEL4:

https://bugzilla.redhat.com/show_bug.cgi?id=197158
# 4  
Old 10-08-2011
Quote:
Originally Posted by Corona688
What is your disk device? Some flash devices have a 'read only' tab.

Also, check your dmesg. Disk errors can force a filesystem to go read-only.
i checked the dmesg found a journal error which i dont rememmber Smilie now

---------- Post updated at 07:47 PM ---------- Previous update was at 07:46 PM ----------

Quote:
Originally Posted by verdepollo
If the disk was in rw mode and it suddently went ro, then I suspect you've hit this bug which is pretty common on RHEL4:

https://bugzilla.redhat.com/show_bug.cgi?id=197158
oh thank you verdepollo
# 5  
Old 10-10-2011
solved!!

no opion but rebooted and
ran fsck that fixed this Smilie

Previous Thread | Next Thread
Test Your Knowledge in Computers #406
Difficulty: Medium
Cygwin was originally developed by Cygnus Solutions, which was later acquired by Microsoft.
True or False?

8 More Discussions You Might Find Interesting

1. Red Hat

Root Access not working as FileSystem in ReadOnly Mode

Hi Experts I am facing a problem wherein Root Access not working as FileSystem in ReadOnly Mode. Due to a Disk failure, my Filesystem went into Read-Only mode: report@xx> grep root /proc/mounts /dev/root / ext3 ro,data=ordered 0 0 Now, I am not able to login using root user on the... (5 Replies)
Discussion started by: navkanwal
5 Replies

2. Solaris

Resizing the Root Filesystem

Is it possible to increase the root filesystem size without reboot ?? (4 Replies)
Discussion started by: gowthamakanthan
4 Replies

3. Linux

Encrypt already install root filesystem

All, Is there a way to encrypt my Ubuntu root HD after installation? (1 Reply)
Discussion started by: markdjones82
1 Replies

4. UNIX for Dummies Questions & Answers

Root filesystem filling up!

Hi all. New to the forum and new to Unix admin... / filesystem filled up and I can't find where the large files are. Any help will be apppreciated: # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c1t0d0s0 8063580 7941745 41200 100% / /proc ... (4 Replies)
Discussion started by: jamie_collins
4 Replies

5. Solaris

Root Filesystem

Hi, Can we install root file system on other than 0th slice???? (5 Replies)
Discussion started by: tirupathiraju_t
5 Replies

6. Solaris

Move root filesystem to other slice

Hi, df -h display: # df -h Filesystem size used avail capacity Mounted on /dev/dsk/c1t0d0s0 9.8G 8.1G 1.7G 84% / /proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab fd 0K 0K 0K 0% /dev/fd swap 1.0G 152K 1.0G 1% /var/run swap 1.1G 24M 1.0G 3% /tmp /dev/dsk/c1t0d0s3 57G 13G 43G 24%... (4 Replies)
Discussion started by: lamoul
4 Replies

7. Linux

/root filesystem size is full

hi in my server ( / ) root filesystem size is full how to reduce the size and what are the files i want to remove. i need answer for linux and AIX also. (6 Replies)
Discussion started by: chomca
6 Replies

8. UNIX for Advanced & Expert Users

Mounted Root Filesystem

In my Solaris 10 based server, I have noticed the following mounts when a use DF -K /dev/dsk/c0t0d0s0 5062414 3213876 1797914 65% / / 5062414 3213876 1797914 65% /net/se420 I understand the first mount because it appears in my vfstab file and is the mount of root that I would expect.... (1 Reply)
Discussion started by: jimthompson
1 Replies

Featured Tech Videos