LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2015, 05:47 AM   #1
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Rep: Reputation: Disabled
Dual boot debian +W7:recovering access to encrypted partitions


Hi

My machine was a dual boot debain + W7. The debian had LUKS encryption and LVM.

I had to re-install W7 and now there is no access to the grub menu and of course to the debian installation.

I tried "boot repair disk"
http://sourceforge.net/projects/boot-repair-cd/
, but it couldnt access the encrypted volume. It did generate the following output:
paste.ubuntu.com/10591353

Would appreciate help how to get the boot repair disk to access the encrypted partition and recover the grub menu

Thanks
 
Old 03-14-2015, 06:23 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Re-install of W7 overwrited the grub's MBR with its own.

All you have to do is reinstall grub. Look here1 and here2.
 
Old 03-14-2015, 08:41 AM   #3
mzzxx11
Member
 
Registered: Sep 2012
Posts: 78

Original Poster
Rep: Reputation: Disabled
Tnx a lot man

That put me in the right direction. I also found this post which actually nailed it:
https://lists.debian.org/debian-user.../msg00739.html

I'm writing in detail in case others might find it useful.

The setup on my machine was:
sda1: W7 NTFS
sda2: FAT32 free space
sda3: /boot
sda4: encrypted LVM

what I did:
booted up with debian netinst usb, enable rescue mode. After a while it asked me which partition to mount and I choose root and entered the passphrase.
It then opened a terminal as su, and I typed:
mount /dev/sda3 /boot
grub-install /dev/sda

and that's it. rebooted the machine & it's all dandy
 
Old 03-14-2015, 09:05 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
That's nice to read.

If your questions is solved then mark it as solved. It is present in 'Threads Tool' at top of thread..
 
  


Reply


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
Recovering encrypted LVM partitions garden3 Linux - General 13 07-09-2013 03:17 PM
Problem recovering encrypted partitions lupe *BSD 1 01-17-2012 05:52 PM
[SOLVED] Recovering grub after Windows installation. Encrypted partitions and LVM. 1937 Debian 6 11-04-2010 06:22 PM
LXer: Three Ways To Access Linux Partitions (ext2/ext3) From Windows On Dual-Boot Sys LXer Syndicated Linux News 0 01-20-2008 12:50 PM
Loading encrypted partitions at boot compu73rg33k Ubuntu 0 11-03-2007 08:59 PM


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

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