LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-13-2009, 01:34 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
"Read-only filesystem" Error on Linux?


I have noticed many times while I have been runnign commands on my RHEL Box with something like:

Code:
[root@localhost RPMS]# rpm -ivh glibc-kernheaders-2.4-9.1.100.EL.x86_64.rpm
warning: glibc-kernheaders-2.4-9.1.100.EL.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: can't create transaction lock on /var/lock/rpm/transaction
[root@localhost RPMS]#
Even if I do that:

Code:
[root@localhost RPMS]# rm -fr /var/lock/rpm/transaction
rm: cannot remove `/var/lock/rpm/transaction': Read-only file system
[root@localhost RPMS]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       72G   23G   45G  34% /
/dev/sda1              99M   11M   84M  11% /boot
none                  721M     0  721M   0% /dev/shm
10.14.124.134:/mnt/lv05
                       89G   79G  5.9G  94% /mnt/iso
Let me tell you something I have been trying to install package by mounting the NFS Repository through the last line of df-command output.
Earlier it was working fine but not now.
Any idea?
 
Old 10-13-2009, 02:36 AM   #2
madmadmod
Member
 
Registered: Sep 2009
Distribution: Fedora, Red Hat
Posts: 52

Rep: Reputation: 18
try "mount / -oremount,rw". If it does not help run a fsck (boot from rescue media first if it is your / filesystem).

good luck!
 
Old 10-13-2009, 02:57 AM   #3
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
How are you running your system? In which init level? 3?
How are you mounting the filesystem?
Paste output of, cat /etc/fstab
 
Old 10-13-2009, 04:25 AM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by your_shadow03 View Post
error: can't create transaction lock on /var/lock/rpm/transaction
This is usually caused by running "rpm" without becoming root. But if the next error message is correct --

Quote:
Originally Posted by your_shadow03 View Post
rm: cannot remove `/var/lock/rpm/transaction': Read-only file system
-- then you need to find out why you have /var mounted read-only. That should never be true -- never.
 
Old 10-13-2009, 04:45 AM   #5
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Quote:
Originally Posted by lutusp View Post
-- then you need to find out why you have /var mounted read-only. That should never be true -- never.
The whole / is mounted ro, which makes it even worse.
 
Old 10-13-2009, 06:49 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Guys..
I dont have any idea what went wrong and I rebooted the Machine.
It threw me into the page:

Code:
FILESYSTEM INCONSISTENCY ERROR
RUN FSCK without -a or -p option..
......
.......
Press Control+D or enter the root password
When I entered the password it threw me to shell #
[Repair Filsystem]#

I ran:
Code:
#fsck -y
It kept displaying:

Inode 1038720 was part of orphaned inode list
Indoe 1038722 was part of orphaned indoe list
;;
;;

Error reading block 1038800 while doing inode scan.
Ignore error? yes
;;
;;
[/code]

Still continuing..
 
Old 10-13-2009, 07:03 AM   #7
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
It's possible that the filesystem crashed, or the hard disk gave way.
Download MHDD, burn it, and boot from it, then run a disk check too hunt down bad sectors, if you'll see MANY red Xs, tehn you can wave your HD goodbye.

Last edited by Tux-Slack; 10-13-2009 at 07:08 AM.
 
Old 10-13-2009, 08:17 AM   #8
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
What do you mean MHDD?
What you mean saying MANY red Xs??
 
Old 10-13-2009, 09:03 AM   #9
THCsphere
Member
 
Registered: May 2008
Location: Chicago, IL
Distribution: Slackware
Posts: 37

Rep: Reputation: 16
Quote:
Originally Posted by your_shadow03 View Post
What do you mean MHDD?
What you mean saying MANY red Xs??
MHDD is a hard drive diagnostic program. If you run it and see to many Xs during the operation, your hard drive is shot sadly.
 
Old 10-15-2009, 12:08 AM   #10
bittus
Member
 
Registered: Aug 2006
Posts: 153

Rep: Reputation: 15
Quote:
Error reading block 1038800 while doing inode scan.
Ignore error? yes
The problem is definitely due to a file system error. A file system check will correct the error for the time being, but I am pretty much sure that it will re appear again.

I had a similar problem before with on of my test boxes and I had to run the fsck every week. Atlast i had to format the partition (in fact, i had to reinstall the whole OS). In my box the prob was with /opt.
 
  


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
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 04:19 PM
How to edit file and make read/write / on "repair filesystem" mode? tovohery Linux - General 5 02-18-2008 02:39 AM
USB hard drive mounts as "Read Only Filesystem" augu2000 Linux - Hardware 11 07-12-2007 11:37 AM
RH9 "remounting root filesystem in read-write mode" ChrisHax Linux - Newbie 3 07-23-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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