Re: Recovering a folder on an LVM ext3 partition
- From: "Folkert Rienstra" <see_reply-to@xxxxxxxx>
- Date: Wed, 6 Sep 2006 00:54:24 +0200
"Arno Wagner" <me@xxxxxxxxxxx> wrote in message news:4m536mF4gor0U2@xxxxxxxxxxxxxx
Previously microx <microx.topics@xxxxxxxxxxxxxxxx> wrote:
I just had a sudden break down of my hard disk running Linux, don't
know what the reason is, but the result is that all the partitions in an
LVM group are now seriously corrupt. The HD layout looks something
like this:
hda1 - primary Windows partition
hda2 - primary ext3 for /boot
hda3 - LVM containing 4 logical ext3 partitions: / (root), /home,
/usr/local, swap
It's strange that LVM itself reports no errors, but the logical
partitions are all screwed, while the 2 partitions not inside LVM are
untouched.
Anyone have a clue why that is?
Because of how LVM works, maybe?
Can you be a bit more specific what "screwed" means? Also:
What kernel version, what were you doing when the corruption occured?
Is it possible that yopu acctdentially overwrote parts of hda3?
The LVM descriptor block is at the end of the volume, so it would be
the last thing to go.
Anyway, obviously the partition I care most about is /home. I booted
from a LiveCD and I tried doing fsck on the root first as a trial, and
ended up with a working, but empty, partition. :-) So I proceeded with
more caution on the /home partition, I answered "no" to any questions
about "force rewrite", but I let it move things to lost+found. At the
end, I attempted to mount the partition, it worked, but one top-level
folder which was called "data" is gone. At one point during fsck, I
noticed it asking about clearing this folder's extra inodes or somthing
like that. This folder contained tons of photo files, as well as some
other media and documents. There are lots of files in the lost+found,
and some folders, so I assumed the "data" folder just might be one of
those folders, however corrupted. However, if I try to cd into any of
them, I just get thrown back to the home folder (the home of the
LiveCD, not the one I'm recovering). Is there any way I can try to
recover these folders?
Hmm. Since you worked on the original partitions without backup, there
is a good possibility that you destroyed additional data.
Also there will be only files in lost+found, not directories.
The behaviour you observe is correct
(depending on shell settings).
So actually may not be correct.....
Advice: Stop writing to the disk immediuately. Make a sector image anf
work on that. Then start looking for your files in lost+found. Other steps
depend on what caused the corruption, but stop writing on the original
immediately!
I am also curious what prompted the use of LVM for this setup.
Usually you would just do a conventional extended partition,
using LVM does not really make sense.
So when does making use of LVM make sense if "using LVM does not really make sense", babblebot.
Additional advice: It is Linux and pretty corruption resistent,
As the above example easily illustrates.
but backup is non-optional for important files, no matter what..
Arno
- Follow-Ups:
- Re: Recovering a folder on an LVM ext3 partition
- From: microx
- Re: Recovering a folder on an LVM ext3 partition
- References:
- Recovering a folder on an LVM ext3 partition
- From: microx
- Re: Recovering a folder on an LVM ext3 partition
- From: Arno Wagner
- Recovering a folder on an LVM ext3 partition
- Prev by Date: Re: 2nd 4gb flash drive to die in 6 months
- Next by Date: Re: Yet another Disk Boot Failure debacle
- Previous by thread: Re: Recovering a folder on an LVM ext3 partition
- Next by thread: Re: Recovering a folder on an LVM ext3 partition
- Index(es):
Relevant Pages
|
|