Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-15-2008, 03:51 PM   #1
LQ Newbie
Registered: Mar 2005
Distribution: Slackware 10.1 - Windows 2000 SP4 Beta 69
Posts: 4

Rep: Reputation: 0
Failed Dist upgrade.. how to recover data?

hi all,

I had a debian 3.1 install that I tried to upgrade to 4.0. Now as it turns out the OS HDD (/dev/hda) has something seriously wrong with it so I need to replace the drive.

My concern is for the data I have on my LVM set up which is as follows:

/dev/hdc1 - LVM
/dev/hdd1 - LVM
/dev/hde1 - LVM
/dev/hdf1 - LVM
/dev/hdg1 - LVM

Here are some pics of lvdisplay + vgdisplay

Sorry for the blurryness of the above pics.Would it be safe to replace hda with a new HDD, and do a fresh install on that? If so how would I be able to keep the LVM data as it currently is?

Any help would be great as my last back up was 27/9/7 an I have since added more things which i dont have a copy of.

Many thanks for any info

Old 01-15-2008, 03:54 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Getting a new HD and doing a fresh install onto that will be fine. What you could do is as you're partitioning the new drive, add in mount points (thru LVM) in the paritioner in the installer. That should grant you access (as it was) to those partitions.

I apologize if my theory is completely wrong here, as I've never messed around with LVMs.
Old 01-16-2008, 11:49 AM   #3
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
I think you have another option. Based on the concepts of LVM you can do a PVMOVE on the second disk. This will do all what you want. Check this :


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to recover files from a formatted HDD using a linux Dist. emt3920 Linux - Newbie 8 11-18-2007 11:53 AM
Failed dist-upgrade @ngelot Debian 6 07-28-2007 06:55 PM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
dist-upgrade failed! HELP! seppe Debian 5 11-05-2003 03:50 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration