All of lore.kernel.org
 help / color / mirror / Atom feed
From: KiKouN <kikoun@kikoun.org>
To: linux-lvm@redhat.com
Subject: [linux-lvm] help to recovering my home volume
Date: Mon, 05 Apr 2010 16:45:09 +0200	[thread overview]
Message-ID: <1270478709.31665.99.camel@localhost> (raw)

Hello, 

First, sorry for my english.


The other day, I wanted to create a multi-iso usb (for install- 
party) but I stupidly copied the image on my main hard drive.

When I have seen my error, I have stop the copy and run
"cat /proc/partitions" to make a backup of my partition table. But the
system was crash before.

I have reboot to a liveCD and make a copy of my disk on an other disk.

I have run testdisk and gpart on this image without success. So I have
make a bash script with dd and grep to find some file or some special
block.

With this script, I have found my last lvm backup text file
( http://pastebin.com/TTSnpr47 )

I want to know if I can make an image file of my home LV with this file
and how to calculate the start/end sector (on the disk) of my home LV.

dd if=sda.img of=home.img bs=512 count=size_of_home_part1
skip=start_sector_of_home_LV

I think that size_of_home_part1 is 11008*8192 but I want to know how to
calculate start_sector_of_home_LV. How to calculate this value ?

In the lvm backup file, I don't know what is the value "pe_start" in pv0
section. What is this value ? 

thanks for your help.



Some more info:

# hdparm -g /dev/sda

/dev/sda:
 geometry      = 14593/255/63, sectors = 234441648, start = 0


My partition table before the crash. 
/dev/sda1	/boot 	~200Mo
/dev/sda2	/boot2 	~200Mo
/dev/sda3	swap	~1Go
/dev/sda4
  /dev/sda5	PV	~107Go
End of disk

             reply	other threads:[~2010-04-05 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-05 14:45 KiKouN [this message]
2010-04-05 15:45 ` [linux-lvm] help to recovering my home volume Phillip Susi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1270478709.31665.99.camel@localhost \
    --to=kikoun@kikoun.org \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.