LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-04-2011, 02:38 PM   #1
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Rep: Reputation: Disabled
getting io error filesystem readonly


[root@cspdv-dblade-07 activemq]# lvscan
File-based locking initialisation failed.
[root@cspdv-dblade-07 activemq]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
4062912 733348 3119852 20% /
/dev/mapper/VolGroup00-LogVol05
4062912 1325876 2527324 35% /home
/dev/mapper/VolGroup00-LogVol04
6094400 4368492 1411336 76% /var
/dev/mapper/VolGroup00-LogVol03
4062912 140968 3712232 4% /tmp
/dev/mapper/VolGroup00-LogVol02
8125880 4942096 2764356 65% /usr
/dev/mapper/VolGroup00-data
94535540 724192 89009200 1% /data
/dev/sda3 194449 30147 154262 17% /boot
tmpfs 8388608 0 8388608 0% /dev/shm
[root@cspdv-dblade-07 activemq]# mount -a
mount: special device LABEL=/boot does not exist
[root@cspdv-dblade-07 activemq]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.9G 717M 3.0G 20% /
/dev/mapper/VolGroup00-LogVol05
3.9G 1.3G 2.5G 35% /home
/dev/mapper/VolGroup00-LogVol04
5.9G 4.2G 1.4G 76% /var
/dev/mapper/VolGroup00-LogVol03
3.9G 138M 3.6G 4% /tmp
/dev/mapper/VolGroup00-LogVol02
7.8G 4.8G 2.7G 65% /usr
/dev/mapper/VolGroup00-data
91G 708M 85G 1% /data
/dev/sda3 190M 30M 151M 17% /boot
tmpfs 8.0G 0 8.0G 0% /dev/shm
[root@cspdv-dblade-07 activemq]# cd /boot
[root@cspdv-dblade-07 boot]# ls -ltra
ls: reading directory .: Input/output error
total 0
[root@cspdv-dblade-07 boot]#
 
Old 08-04-2011, 03:21 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi there,

Welcome to LQ!!!

It would be good if you would have put some text to explain the issue that you are facing rather then just quoting the output of the commands that you ran.

From the output and little bit that I can collect from the title of this thread it appears that you /boot partition is either not mounted or is mounted as read only.

When you run df -h or df -k it does show you that your /boot partition is mounted but when you try to perform any operation on that it gives you error.

Could you please let us know the output of the following commands:

1. mount | grep /dev/sda3
2. cat /etc/fstab
 
Old 08-04-2011, 04:45 PM   #3
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I was trying to delete some files when I got error operation f

failed io error direcotry readonly

here is output

[root@cspdv-dblade-07 ~]# mount | grep /dev/sda3
/dev/sda3 on /boot type ext3 (rw)
[root@cspdv-dblade-07 ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
/dev/VolGroup00/LogVol05 /home ext3 defaults 1 2
/dev/VolGroup00/LogVol04 /var ext3 defaults 1 2
/dev/VolGroup00/LogVol03 /tmp ext3 defaults 1 2
/dev/VolGroup00/LogVol02 /usr ext3 defaults 1 2
/dev/VolGroup00/data /data ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
[root@cspdv-dblade-07 ~]# lvscan
File-based locking initialisation failed.
 
Old 08-04-2011, 04:54 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

I can see that your /boot directory is mounted as read-write.

Which were the files that you were deleting or was trying to delete?
 
Old 08-04-2011, 05:25 PM   #5
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
filed

/usr/local/jboss
 
Old 08-04-2011, 06:18 PM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Alright.

Which OS you are using? Did you give reboot a try?

From the output it should allow you to read and write to the file system but sometime system just act weird and reboot fix it :-)

I can see your logical volumes mounted so the system appears to be ok.
 
Old 08-04-2011, 06:26 PM   #7
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
mount - a gets
[root@cspdv-dblade-07 jboss]# mount -a
mount: special device LABEL=/boot does not exist
 
Old 08-04-2011, 06:29 PM   #8
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Alright. Give this a try:

In /etc/fstab Change

Code:
LABEL=/boot     /boot       ext3       defaults 1 2
To

Code:
/dev/sda3       /boot       ext3       defaults 1 2
and then run mount -a

Make sure you backup /etc/fstab before making changes.
 
Old 08-04-2011, 06:53 PM   #9
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
these are the actual errors when deleting
reading directory `CPMDL60PERF.war/WEB-INF/license/SAXPath': Input/output error
rm: reading directory `CPMDL60PERF.war/WEB-INF/license/MPL1.1': Input/output error
rm: reading directory `CPMDL60PERF.war/WEB-INF/license/SLF4J': Input/output error
rm: reading directory `CPMDL60PERF.war/WEB-INF/license/BSD': Input/output error
 
Old 08-05-2011, 08:32 AM   #10
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
the OS in LINUX

I have not tried to reboot yet
 
Old 08-11-2011, 10:02 AM   #11
jcottonesr
LQ Newbie
 
Registered: Jul 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
reboot worked thanks
 
  


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
Difference between Readonly Filesystem and Mounting filesystem as readonly bluepenguine Linux - Newbie 1 06-19-2009 02:26 AM
My filesystem is readonly , how can do read and write raghuveer520 Linux - Newbie 11 10-17-2008 12:55 AM
Best filesystem for readonly data? pxumsgdxpcvjm Linux - General 1 03-27-2007 11:43 PM
how to detect readonly filesystem using C edenCC Linux - General 2 12-30-2006 07:35 AM
EXT-fs error (device hda3) in start_transaction: Readonly filesystem kiwibird Linux - Hardware 2 10-21-2005 11:15 AM


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