LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Am not able to do anything! (https://www.linuxquestions.org/questions/linux-newbie-8/am-not-able-to-do-anything-4175466470/)

a.abdulna 06-18-2013 05:35 AM

Am not able to do anything!
 
Hi,

I have a problem with RHEL 6.3, whenever am trying to create a folder am getting this error.

[root@VMCV ~]# mkdir INDIGO
mkdir: cannot create directory `INDIGO': Read-only file system

and while creating user also, its not allowing, see below..

[root@VMCV ~]# useradd indigo
useradd: cannot lock /etc/passwd; try again later.


Please find below details..

[root@VMCV ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Jun 5 06:13:46 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_vmnep-lv_root / ext4 defaults 1 1
UUID=d9833e40-d4cd-45bd-8202-3157585ac296 /boot ext4 defaults 1 2
/dev/mapper/vg_vmnep-lv_swap swap swap defaults 0 0
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


[root@VMCV ~]# mount
/dev/mapper/vg_vmnep-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.

How can i resolve this issue, anybody knows please help me out..

Regards,
Abdul

druuna 06-18-2013 05:47 AM

Quote:

Originally Posted by a.abdulna (Post 4974041)
[root@VMCV ~]# mount
/dev/mapper/vg_vmnep-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.

Have you done what is suggested by the mount command?

a.abdulna 06-18-2013 05:49 AM

no, what i need to do?

Madhu Desai 06-18-2013 05:52 AM

Try
Code:

# mount -o remount,rw /

a.abdulna 06-18-2013 05:54 AM

@mddesai,

[root@VMCV ~]# mount -o remount,rw /
mount: cannot remount block device /dev/mapper/vg_vmnep-lv_root read-write, is write-protected
[root@VMCV ~]#

druuna 06-18-2013 05:54 AM

Quote:

Originally Posted by a.abdulna (Post 4974047)
no, what i need to do?

As stated: Check the content of /proc/mounts.

mount (and other programs) get their information from this file (among others). The output might not be different from the mount command, but one or more partitions seem to be mounted read only.

You should also check the output of the dmesg command. I'm not sure if this is stored on a partition, I do believe it is not and should produce boot information which might tell you what went wrong.

a.abdulna 06-18-2013 06:11 AM

In dmesg am getting file system remounted as read only

[root@VMCV ~]# dmesg|grep read-only
Write protecting the kernel read-only data: 10240k
EXT4-fs (dm-0): Remounting filesystem read-only
[root@VMCV ~]#

and /proc/mounts also it is showing ready only

[root@VMCV ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,seclabel,nosuid,nodev,noexec,relatime 0 0
devtmpfs /dev devtmpfs rw,seclabel,nosuid,relatime,size=3029264k,nr_inodes=757316,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev,relatime 0 0

/dev/mapper/vg_vmnep-lv_root / ext4 ro,seclabel,relatime,barrier=1,data=ordered 0 0

none /selinux selinuxfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,seclabel,nosuid,relatime,size=3029264k,nr_inodes=757316,mode=755 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda1 /boot ext4 rw,seclabel,relatime,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1532,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1532,timeout=300,minproto=5,maxproto=5,indirect 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=0,group_id=0 0 0
[root@VMCV ~]#

how can i make file system as read/write..

Madhu Desai 06-18-2013 06:20 AM

Show results of

Code:

# lvs
# vgs


a.abdulna 06-18-2013 06:21 AM

this is the messages am getting ..
[root@VMCV ~]# lvs
File-based locking initialisation failed.
[root@VMCV ~]# vgs
File-based locking initialisation failed.
[root@VMCV ~]#

Madhu Desai 06-18-2013 06:26 AM

Reboot in rescuemode and try fsck

a.abdulna 06-18-2013 06:29 AM

Dear mddesai thanks for your valuable replay..

i will try fsck and please let me know, what it is happend coz till yesterday it is working fine.

Madhu Desai 06-18-2013 06:46 AM

http://www.cyberciti.biz/tips/linux-...read-only.html

TB0ne 06-18-2013 08:46 AM

Quote:

Originally Posted by a.abdulna (Post 4974064)
Dear mddesai thanks for your valuable replay..
i will try fsck and please let me know, what it is happend coz till yesterday it is working fine.

And again, since you're using RHEL6, have you contacted Red Hat support, since you are PAYING FOR RHEL, right???


All times are GMT -5. The time now is 03:32 PM.