urgent :\ read only filesys

Posted on 2006-05-01
Last Modified: 2013-12-06
filesystem got read only, my last backup is 32 days old.

last time this happened, i could not use my disk anymore after rebooting pc.
i can currently copy files to my other computer, but it's gigabytes, 100.000+ files.

any suggestion what to do ?
should i reboot ? try to copy everything i can first ?
is there a way to copy files created in last 32 days from readonly filesystem ?

load average: 3.50, 3.51, 3.16
but "ps aux" doesn't show any process with %CPU higher that 0.1
Question by:ed987
    LVL 7

    Author Comment

    can i try to add another linux formated disk to current computer without turning off ?

    Expert Comment

    Depending on your build you should be able to boot into a rescue mode via the boot loader or the installation media.

    In the case of red hat which I use you can then remount the FS in read/write.

    I'd assume the disk is either bad or going bad.... hard to tell from the description.

    In any case,  most times I've seen this I was still able to mount the disk manually after booting into a rescue mode and remove the required data.

    A little more info on your situation would be useful.  What build, hardware, drive, what prompted this problem in the first place, etc.
    LVL 19

    Expert Comment

    A) try to add a USB2 disk and use tar to copy your files.

    B) If you cannot add a usb disk, turn off. Add a secondary hard disk, use a Live Linux Disk to boot the computer, and copy all contents from the bad hard disk to the new one. after finished, run a fsck with repair options on your damaged partition.

    C) If recuperation is a MUST, then either
     - use FTP to copy files to another computer
     - mount the other computer using NFS (quite faster)
     - use scp to secure copy your files to another computer (slower since encription is done in-between)
     - you can alternativelly use rsync

    all this before turn off and issue a bit-by-bit copy to a disk image so you can restore it later and start again if your approach didn't got back your files.

    hope this help
    LVL 14

    Expert Comment


    First try to do a "mount -o remount,rw /" ...

    Don't reboot!!!

    LVL 7

    Author Comment

    why would i do "mount -o remount,rw /" ?
    if i make failing disk writable and i'd assume i could destroy current data ?

    i copied most data from ro disk to shm, made packages & ftp'd

    LVL 19

    Accepted Solution

    once you finish, try to fsck your filesystem.

    it maybe will come back fixed and you will not need all these emergency backups

    after that, it would be a good time to plan your backups (maybe via rsync)...
    LVL 19

    Expert Comment


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now