CentOS 5 :: Filesystem Became Read-only?
Jul 17, 2009
I have 64bit install with CentOS release 5.3 (Final)It's been stable for about six months. What happened a while ago is really weird, I haven't messed with anything lately but the entire /home filesystem became read-only. Can't write, can't delete to anything on /home. The other filesystems are fine. I am root, and the permissions look normal. My directories and files are writable and readable.
root@atlanta [/home]# touch foo.txt
touch: cannot touch `foo.txt': Read-only file system
root@atlanta [/home]# ls -l
[code]....
View 7 Replies
ADVERTISEMENT
Jun 8, 2011
I'm attempting to build a load balancing cluster for shared web hosting clients and the only thing left is security. Given the track record with some of these sites, I don't trust them being centralized. We've had rootkits on some of the other servers that replaced system binaries, mostly ssh to capture passwords. I figured the only real way to lock it down tight enough to keep this from happening is to use a live cd for the filesystem or read-only toggle USB stick. But I also need to mount a rw drive to store the clients data and config files that are bound to change.
Is this really the way to go about this? If so do I simply make a live cd iso and edit the files within to handle mounting a rw hard drive and linking data and configuration files to that drive? I've considered just leaving all the data on the physical hard disk and mounting it as ro on boot for binaries and such but can't that just be changed with the right permissions?
View 2 Replies
View Related
Mar 24, 2010
I've had a look at some similar threads but as I'm very new to linux they're already a bit technical for me. Sorry, this calls for someone with patience. I gather from other threads that disconnecting an external drive without unmounting is a no-no, and this seems to be the likely cause. Now the disk is read only and I'm unable to change any settings through the usual control panel on ubuntu. I'm just not familiar with the terminal instructions. I tried to cut and past a few command lines from other threads but I got some warnings that proceding could damage data. Like this one: WARNING! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.
View 5 Replies
View Related
Aug 1, 2010
openSuse v9.3 (Yes, it's old)linux 2.6.11.4-21.17-smp i686At some time after July 28 the entire filesystem has become read-only. It was functional on July 28, the last time I logged into the machine and edited a file. Even as the superuser when I attempt to change, say, the permissions of a file, I get:
Code:
> # chmod 777 /opt
chmod: changing permissions of `/opt': Read-only file system
[code].....
View 9 Replies
View Related
Jun 14, 2011
This is very bad even in 11.04! I have an usb disk 40 Gb. And I was loading it with data real fast (svn). At once I could no more write, Read-only file system was reported. I reckon that problem from years ago on redhat, so I try to fix it. But It became worse. It was severe damaged. I created a new filesystem while the disk was out the usb-box and directly connected to de IDE. Started all over, and the error also. Tried to repair with no luck. It looks like the journal get overrun but I'm not sure. However I do think its reproducible. I did it 3 times now and now I am very sick of it. This is happening on a updated 10:10 to 11:04 system, a few weeks ago.
View 3 Replies
View Related
Mar 31, 2010
How can i read out the superblock of a filesystem?
View 5 Replies
View Related
Feb 19, 2011
I have been given a headless linux system running from a SD card. I get into it by putty, directly to root, not other user and even /home dir. Whatever I copy or write will dissapear because is ro.
my etc/fstab file is:
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda1 /boot vfatnoauto,rw 0 0
View 5 Replies
View Related
Aug 23, 2011
Yesterday I post this note, because I've an urgent issue with the filesystem in opensuse 11.4, used like VMWare guest OS, over VMware Server 2 for w2k3 64bit like a host) opensuse 11.4 Filesystem goes read-only in VMware
But, Novell have a fix published for SLES 10, with the 2.6.16.46-0.12 kernel version .
I'm using a Opensuse 11.4 with the 2.6.37.6-0.5-desktop kernel version. May be related with the LSI virtual scsi hardware?
Because exists a fix for SLES 9, 10, RedHat EL 4,5 and Ubuntu 7.10, but doesn't work in opensuse 11.4
View 1 Replies
View Related
May 25, 2010
I have double boot (windows7 and Opensuse) on my laptop.
My problem is when try to login Opensuse says Read only file system.(While booting a lot of things FAILS(written red) because of Read only file system). So i can't login.
Cause of this problem is want to reach my Opensuse filesystem from windows7.I installed Ext2fsd software to windows7.After installed software can see my opensuse filesystem.But it looks empty from windows7.So uninstalled the software.
After that day try to login my Opensuse.While booting alot of thing fails to load it says "FAILED".and when entered my password after entering my username cant login it says ..... Read Only File System.
How can i make the filesystem Read/write permissions to my opensuse operating system.
I can't use any command beceause can't login. (I will try to boot with Opensuse Dvd)
View 9 Replies
View Related
Aug 22, 2011
I'm a issue with a opensuse 11.4 guest VM. The root partition goes read-only while the VM was running normally.
I note this /var/log/messages:
Code:
Aug 22 10:57:02 guest1 kernel: [508161.475307] mptscsih: ioc0: attempting task abort! (sc=dc29c5c0)
Aug 22 10:57:02 guest1 kernel: [508161.475380] sd 2:0:0:0: [sda] CDB: Write(10):
Aug 22 10:57:02 guest1 kernel: [508161.475582] mptscsih: ioc0: task abort: SUCCESS
[Code]....
View 1 Replies
View Related
Mar 11, 2011
I am installing Ubuntu 9.04 Desktop on my system. using entire disk. my disk is new one. first time i installed ubuntu on it successfully, used it and installed new kernel and some upgrades. all were successful.but on installing some drivers, its files system corrupted. so I had the need to re-install the OS again. NOW , when i am installing the OS, it gives error "(Errno 30] Read only filesystem" explaining that either CD/DVD is corrupt or HDD is corrupt. temperature of the environment may be high. I changed the system , ehanged the environment, moved to some cool place, changed CD drive and CD (after making new one from ISO), changed the HDD but all useless, error is there,
while installation is in progress my sda1 is mount on /target. when i see fstab, here in the line of /dev/sda1 ,error=remount-ro is observed. sometime installation gives error no 5 sometimes it gives error no 30 but both the errors convey almost same message explaining that either HDD is corrupt or CD. As i have explained that I changed every thing including HDD and CD but the error is same.
View 5 Replies
View Related
Aug 18, 2011
I want to install 11.04 next to my working 10.04 system. First I need to make room for the new system so I have booted from a live cd and started GParted. In GParted the partition with the 10.04 system on it, /dev/sda1, has a red circle with an exclamation mark in it and I cannot resize it. When I doubleclick on /dev/sda1 there is the following warning
Quote:
Failed to change to directory '.'(Stale NFS file handle)
Failed to change to directory '.'(Stale NFS file handle)
Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The following list of software packages is required for ext4 file system support: e2fsprogs v1.41+.
The 10.04 system is working and has worked like a dream for a couple of years and the machine has never had any other system on it. Why would the live CD not be able to read ext4 fs?
View 4 Replies
View Related
Jul 6, 2010
write a script that will check all filesystems to see if they are read-only.
I have come up with ...
df -h > /tmp/mount.lst
awk '{print $6}' /tmp/mount.lst > /tmp/mounted_systems.lst
This gives me ..
Mounted
/
/boot
/dev/shm
/proc
So now I have ..
How do I automatically get rid of the 'Mounted' header in my /tmp/mounted_systems.lst file ?
Also, I don't want to check the /proc filesystem, so how do I remove that within the script too.
Then I will run ...
while read dir
do
touch $dir/read_only_test
done < /tmp/mounted_systems.lst
If the filesystem is read only, I want that filesystem name to be listed into another file.
View 3 Replies
View Related
May 21, 2009
I'm running CentOS 4.3 on a VM which is an application server for Quinstreet. trouble is when i keep coming in during the mornings it seems to keep making this root filesystem read only. There is no pattern for this and neither is it clear in the messages log why this keeps happening.
View 5 Replies
View Related
Jul 3, 2010
I accidentally changed etc., folder ownership, and now my computer doesn't even start up. I tried starting up in failsafe mode and changing the ownership from the root console, but somehow I wasn't allowed to do that. Then I loaded kubuntu from a live disk and I changed etc ownership to root. I thought that would clear up the mess, but apparently live disk's root is not equivalent to system's: when I try to start up the computer I get a message saying the filesystem is readonly. I'm not too concerned, because I have a complete backup, but I'd rather avoid the time of re-installing all my software again.
View 8 Replies
View Related
Dec 6, 2010
I have a requirement, to read the complete proc filesystem from the linux pc.. Does linux provide some functions to read the proc filesystem means the directories and files present in the filesystem.. in short I want to create a treeview of proc filesystem. and if a user selects the file in the proc.. I should show the contents in the respective file. So I want some library or functions to read the proc filesystem..
View 1 Replies
View Related
May 27, 2011
I had installed ubuntu 11.04 on my system along with windows vista. After a few days, i decided to remove ubuntu so i just logged into windows and formatted the ubuntu partition using the windows partitioner, then extended my main c: drive to span the whole disk so that i was left with a single partition with only windows vista on it.Later when trying to restart my system couldn't log back into windows.I kept getting a prompt sayinggrub rescue>After googling around a bit i shrinked and created another partition the disk again and installed ubuntu on it again.still. =/GRUB doesn't show any windows entry.I noticed something strange though that when i tried viewing my partitions using parted i didnt see any filesystem type listed besides my windows partition (/dev/sda3). I doubt that is why GRUB does not show any windows entry.Also i manually tried to boot into windows from the grub prompt using commands...root(hd0,3)chainloader +1bootbut it says 'invalid signature'Did i somehow corrupted my windows partition during resizing and installing/un-installing? Plus i also booted with the windows installation dvd and when i typed bootmgr /fixbootit said something like no valid filesystem found.
View 5 Replies
View Related
Aug 5, 2010
Some moments ago, I plugged my drive into a computer with some strange data protection software. It turned my drive's filesystem into read only and now it can neither be formatted nor mounted with write option. I've tried
Code:
$ sudo dd if=/dev/zero of=/dev/sdb
but it doesn't work.
The problem is, the computer and the software that have caused this problem has lost forever.
View 3 Replies
View Related
Nov 28, 2010
I am running a dedicated server with linux cent os 5.5 32 bit with lighttpd, php 5.2.14 and mysql
I am getting problem in my server. The filesystem enters read only mode automatically and then I can't edit any file in my server. This happens by itself. I tried to run fsck command and it gives the following output:
Code:
[root@server]# fsck -A -y
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/: recovering journal
Clearing orphaned inode 11108656 (uid=0, gid=0, mode=0140777, size=0)
Clearing orphaned inode 13631499 (uid=27, gid=27, mode=0100600, size=0)
[Code]....
View 2 Replies
View Related
Jul 12, 2010
[URL]
This problem has arrived again.......I tried the same solution but didn't work out...the problem is described below.
I use Ubuntu 9.10 .
I did this in Ubuntu 9.10 live CD.
quote from terminal :-
ubuntu@ubuntu:~$ sudo mkdir /win
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /win
ubuntu@ubuntu:~$ sudo mkdir /vdisk
ubuntu@ubuntu:~$ sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk
[Code]....
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
ubuntu@ubuntu:~$ "
> ^C
ubuntu@ubuntu:~$
^^ quote ends.
View 4 Replies
View Related
Feb 21, 2010
Formated new drive with ext3 on external drive on Suse 11.1 When upgraded to 11.2, drive was not connected... Could not get mounted after that... Set up another boot drive, could not get to mount. Found post with following:
>cryptsetup luksOpen /dev/sde1 restore
>mkdir /restore
>mount /dev/sde1 /restore
Error as follows: mount: unknown filesystem type 'crypto_LUKS' Have also got to another point where superblock was incorrect. I can use terminal, but am not a linux guru... Have looked at other posts under luks, but can not find a solution.
View 6 Replies
View Related
Sep 7, 2011
Summary of issue: EXT4 filesystem won't mount--with error = mount: unknown filesystem type 'ext4'. Is no ext4 in kernel the issue? Or is something corrupted?Really perplexed by this. I updated Centos 5.5 to 5.6 to get ext4 (5.6 is supposed to have full support of ext4). I built several arrays and put the ext4 filesystem on them. All went well until I tried to mount them. BTW, this array (below) is set up as a RAID6 using partition 1 of #8 2TB drives.Bear with me here; just trying to be complete and not waste your time.
Attempting to mount give this:[root]# mount -v /dev/md1 /asc/array1mount: unknown filesystem type 'ext4'Note: it does "fake" mount with ption (which apparently does everything except the system call):[root]# mount -f -v /dev/md1/dev/md1 on /asc/array1 type ext4 (rw,grpquota,usrquote)e2fsprogs:Package e2fsprogs-1.39-23.el5_5.1.x86_64 already installed and latest version (for Centos 5.6; CentOS 6x uses the 1.41...)
View 5 Replies
View Related
May 18, 2011
I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:
*/dev/sda1 contains file system w/errors, check forced it then goes on to say..
*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message
*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage
*Would you like to continue (y/n)
Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.
Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?
View 2 Replies
View Related
Apr 5, 2010
I have a near 200 GB partition. Fat 32.I was copying some files into that and suddenly my computer shut down due to overheating .. am having this problem for some days ..Anyway .. After I restarted it I found I am not being able to any thing except copying for the drive .. Otherwise I dont have permission.I cannot even change the permission into 'Create and Delete' while its saying "Read only filesystem" ..When I restart the comp, everything seems okay .. but after a few seconds the problem arise .. it become inaccessible .. I simply cannot even creat a folder ..
View 3 Replies
View Related
Mar 15, 2010
I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:
chmod: changing permissions of `whatever': read-only filesystem.
This is my mount table:
[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
[code]....
View 6 Replies
View Related
Dec 21, 2010
My linux distro is CentOS 5.3. Today I edited /etc/sysconfig/readonly-root and set "READONLY" to yes, now my /etc/sysconfig/readonly-root file is like this:
# Set to 'yes' to mount the system filesystems read-only.
READONLY=yes
# Set to 'yes' to mount various temporary state as either tmpfs
[code]...
View 3 Replies
View Related
Mar 2, 2011
I have installed Centos 5.5 running in VMware on my windows PC. My PC is part of a network which connects to a Linux Fileshare system. I am wanting to connect to the existing Linux fileshare from centos. The know the fileshare is NFS and I know the IP address and directory name. I attempted to connect using the 'mount' command as#mount -t nfs <server IP address>:/<directory> <local directory>An attempt was made to mount, however it is username/password protected. I have gone through the docco for 'mount' and cannot find anyway of passing <username><password> with 'mount'. Does anyone know how? Or am I using the wrong command?
View 3 Replies
View Related
Aug 4, 2011
I have a centos 5.5 server which hangs with yum update. i did a yum clean all. removed the rpm en /_.rd een did a rebuild. In the logs there are no errors. If there is another update except these to he works just fine. Disk space is enough free. Any ideas? i am runnung yum update as root . when i do a full report of yum i get this:
[Code].....
View 1 Replies
View Related
Apr 5, 2009
today I upgraded (yum update) one of my Dell Poweredge Server from 5.2 to 5.3. After rebooting the system first seems to start normal but then the following Error Messages appear:
Apr 5 14:28:26 srv_1 kernel: I/O error in filesystem ("dm-0") meta-data dev dm-0 block 0x668000008 ("xfs_trans_read_buf") error 5 buf count 4096
Apr 5 14:28:26 srv_1 kernel: attempt to access beyond end of device
Apr 5 14:28:26 srv_1 kernel: dm-0: rw=0, want=27514634256, limitfs]
[code]....
Booting with a rescue disk and doing a xfs_repair solves the file system Problems but moved a lot of files ( at least /usr/bin and /usr/lib completly) to "lost+found"... I tried the update with a spare 5.2 Server (different Hardware), and ended up with exactly the
same effect and error message. Both systems are running XFS as root File system on an LVM Disk.
View 3 Replies
View Related
May 19, 2009
Ive setup a filesystem on a RAID 0+1 and am looking at moving root filesystem from a single disk to the new one. I could not install CentOS on mirrored filesystem as the RAID card did not have a pre-built driver for CentOS 5.3, so I had to compile the driver after installing the system.
What Im going to do now is:
1.Mount the new mirrored filesystem under /root1
2.use find | cpio to copy everything from the existing / to /root1
3.use grub to create a boot record on /root1
4.edit /root1/etc/fstab to point / to the new disk
5. reboot the system and keep my fingers crossed
Is this the way to go? Am I missing anything?
View 6 Replies
View Related