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.
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?
I have got arch Linux dual booting with Win XP on my laptop. I have been getting a filesystem check error since yesterday and am unable to start Arch. Upon googling and searching the arch fora, I came upon some advice which I tried which has not worked yet. Hence the new post.Basically, I was attempting to print something off and accidentally chose a printer that was not connected to my laptop. After half a minute or so, it repeatedly started giving me notifications that the printer was not connected...in excess of 200 messages that the printer was not working which continued to pop up despite me canceling the print job. The whole system got really sluggish (for the first time in the last year) and I had to restart the laptop upon which the boot messages appear. It gets to the point where its loading the various filesystems. It mounts root and says it fine.
I tried fsck which tells me that home and boot are still mounted.So I booted up using an Ubuntu Live CD and checked and repaired each file system which it successfully did. Upon rebooting into Arch, I am getting the same message.I have not installed anything new and had upgraded the whole system a few days before the problem started.
fsck from util-linux-ng 2.17.2 e2fsck 1.41.11 (14-Mar-2010) /dev/sda1 is mounted. WARNING!!! The filesystem is mounted. If you continue you ***WILL*** cause ***SEVERE*** filesystem damage. Do you really want to continue (y/n)?
I don't want to cause damage, but I'd rather not go into BIOS.
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.
you can refer to this ubuntu thread for context, but i'll sum up what i'm trying to do here to spare the reading. basically i want to be able to schedule a filesystem check with automatic repairs at the next boot time. but i'm not sure if this will try to automatically fix errors which is what i want to do. the reason i want to do this is because i experienced a power outage (the machine was not plugged into an UPS) and i want to make sure everything is ok.
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.
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:
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)
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
my Fedora 12 does fsck on boot time to time and sometimes it's really annoying having to wait for the check to complete. In Linux Mint pressing <Esc> cancelled the check; however in Fedora this does not work (nor does Ctrl+C nor anything other I've tried). What is the key to cancel the check in Fedora?
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
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
how can I disable the automatic file system check after power outages or system crashes? The check sometimes prompts for a key (ignore, repair etc.) but the panels do not have a keyboard.
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.
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?
A few days ago I upgraded my debian sid system, and since then systemd does a filesystem check on every boot which takes over two minutes, disobeying the existing settings I had. How can I set systemd to do a filesystem check only once every a set number of mounts, like I had set up before the upgrade?
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
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)
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.
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?
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.
This is a Natty system. I ran update manager to update to the latest releases for Natty, and it crashed. I ran it again and it told me it could only do a partial upgrade, and that I should do apt-get install -f. I did that, but apt-get told me the system was locked by another program. Not to worry I thought, I'll just reboot. So I did that, and I think Update-Manager got a lot further through the process than I thought, because my system is borked. It'll boot into Gnome, but when booting up the Boot Screen no longer shows the pretty Ubuntu Logo, but rather a line of text that says "Ubuntu 11.04".
When it gets into Gnome the keyboard and mouse more or less don't work (although the keyboard based Fn+9 and Fn+10 brightness control still works) and there is no desktop background. After about 30 seconds something crashes but I can't click on it to find out what. Going into the recovery console doesn't help either. The latest Kernel (2.6.38-7) stops moving forwards after "Begin:Running /scripts/init-bottom...done". has occurred for the second time. Luckily I still have the previous kernel, which gets to the same spot and then tells me: "init: udevtrigger main process (390) terminated with status 1" and then "init: udevtrigger post-stop process (394) terminated with status 1".
I then get the message "The disc drive for / is not ready yet or not present. Continue to wait; or Press S to skip mounting or M for manual recovery". S goes back to "Begin:Running /scripts/init-bottom...done" a second time, M brings up the message: "Root filesystem check failed. A maintenance shell will now be started" and then it asks for the root password and gives me a terminal. Everything seems to be there, but apt-get and dpkg both can't do anything as the filesystem is read only.
I'm a bit of a Linux newbie, but I did manage to set up the following RAID-5 system:1x 500GB system drive on ATA IDE4x 1TB SATA drives in software RAIDLinux = Fedora 13So here's what happened. I set up the system to send me an email every time the mdadm stat file changed, so it would send me emails when in periodically ran a self-test. I was away and noticed that the self-test was going incredibly slow (usually took 8 hours...was on course for taking 250 days!) A colleague decided to just reboot the system.Afterwards, the system would not boot and, while all 5 drives were connected, would stop at an endlessly scrolling error message of: Code: ata4.01: exception Emask 0x0 SErr 0x0 action 0x0
ata4.01: BMDMA stay 0x64 ata4.01: failed command: READ DMA ata4.01: (a bunch of hex numbers)
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.
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..