Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-22-2011, 04:31 PM   #1
LQ Newbie
Registered: Nov 2010
Distribution: Ubuntu 12.04 Precise Pangolin AMD64
Posts: 11

Rep: Reputation: Disabled
Can't access harddrive (lvm + dm-crypt) after reinstall.

Debian 6.0 Squeeze (stable) AMD64.

At first the problem was that the old volume group (containing all logical volumes for both physical volumes) had the same name as the new volume group. I did a reinstall where I changed the name and ran vgreduce --removemissing debian which seems to have removed all logical volumes from the old volume group.

When I try to unlock the drive in Gnomes Disk Utility I get "Incorrect Passphrase. Try again." but I *know* it's the right password, and I don't get any error when changing the password so that seems to be possible.


I found the oldest archive in /etc/lvm/archive/ and manually edited it to remove any stuff about the old LVs and PVs. Then I did vgcfgrestore --file groupname. With the help of blkid I edited /etc/fstab and /etc/crypttab to mount the disk at startup.

Last edited by 1937; 02-26-2011 at 05:58 PM. Reason: solved
Old 03-20-2011, 04:06 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Glad you found a solution and thanks for sharing it. Off the Zero Reply List.

Kind regards,



debian, hdd, lvm

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
root on lvm on dm-crypt CoderMan Gentoo 1 08-07-2009 08:54 PM
Debian Lenny dm-crypt LVM Frozen w33k Linux - Software 1 06-26-2009 10:52 AM
LVM and dm-crypt -- best way to encrypt a logical volume? nyle Linux - Newbie 4 01-31-2009 02:53 PM
Second Harddrive - LVM wazzujoel Linux - Newbie 2 07-01-2005 12:09 AM
LVM- 1 harddrive crashed =( daromer82 Linux - General 0 03-06-2004 07:14 PM

All times are GMT -5. The time now is 08:04 AM.

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