Author Topic: No grub menu: Win7 LMDE lvn2 encryption with restore partitions  (Read 7146 times)

Offline rm

  • Newbie
  • *
  • Posts: 1
Thanks for reading. A laptop, one drive.
Was Win7, virus hit, had to do a backup and complete restore. Took opportunity to resize windows partition down and enlarge boot partition and install LMDE with LVN and ecryption.  Followed this http://forum.linuxmint.com/viewtopic.php?f=141&t=71159&start=0  except substituted sda4 for sda2 as the destination drive.

Code: [Select]
sda1 recovery ~14.6Gb ntfs
sda2 boot ext2 ~500mb   (was 100mb ntfs, read that it needed to grow to be able to start the encrypted lvn)
sda3 Windows7 ntfs ~100Gb
sda4 lvn luks encryption  / (50gb)
                                        /swap (12gb)
                                        /home (~200gb+)

In the beginning, Grub couldn't load a name which looked like a kernal name.

Used Rescatux to install a Grub for LMDE, failed.
Used Rescatux to install a Grub for Windows, did something then at start it now reports only
MBR 23:

Using, SuperGrubDisk, Searching for a Grub finds (hd0,msdos2)/grub/grub.cfg
This starts the load for LMDE, which does prompt for password for LVN, then LMDE loads fine.
If Windows7 is selected, Windows Boot Manager wants an installation disk.  Don't want to do this as it'll probably change boot again.

An attempt to reinstall grub using
>dpkg-reconfigure grub-pc
does not change the MBR 23: that comes up.

Advice and Directions welcome, Thanks for reading. RM 




« Last Edit: 2012/04/01, 11:22:36 am by adrian15 »

Offline adrian15

  • Administrator
  • Hero Member
  • *****
  • Posts: 833
  • Please test Rescatux and report back feedback...
    • El blog de adrian15
Re: No grub menu: Win7 LMDE lvn2 encryption with restore partitions
« Reply #1 on: 2012/04/01, 11:39:23 am »
Thanks for reading. A laptop, one drive.
Was Win7, virus hit, had to do a backup and complete restore. Took opportunity to resize windows partition down and enlarge boot partition and install LMDE with LVN and ecryption.  Followed this http://forum.linuxmint.com/viewtopic.php?f=141&t=71159&start=0  except substituted sda4 for sda2 as the destination drive.
So I suppose that Windows booted ok and then you resized windows partition and you made sure that it still booted. And then finally you installed LMDE stuff.

Code: [Select]
sda1 recovery ~14.6Gb ntfs
sda2 boot ext2 ~500mb   (was 100mb ntfs, read that it needed to grow to be able to start the encrypted lvn)
sda3 Windows7 ntfs ~100Gb
sda4 lvn luks encryption  / (50gb)
                                        /swap (12gb)
                                        /home (~200gb+)
It's quite probable that you need a /boot partition so it's ok to have it. You said that you recycled it from a ntfs partition. You have to make sure with fdisk command that the /boot partition is Linux (83 in hexadecimal if I'm not mistaken) and not the ntfs code. Not sure it will help but it might.

I advise you to upgrade or recreate ext2 partition into ext3 one.

In the beginning, Grub couldn't load a name which looked like a kernal name.

Used Rescatux to install a Grub for LMDE, failed.
Rescatux does not support neither LVM2 (but it will) nor encryption (not sure it will). In the old times with Grub1 in /boot partition it could be restored to the MBR with Super Grub Disk even if there were no lvm support. Rescatux doesn't have such a feature.

Used Rescatux to install a Grub for Windows, did something then at start it now reports only
MBR 23:
I was supposed to fix that problem (letting the user to choose bootable partitions). Which Rescatux version where you using?

In theory you should be able to type 2 or 3 and mbr program will try to boot one of these partitions.

Using, SuperGrubDisk, Searching for a Grub finds (hd0,msdos2)/grub/grub.cfg
This starts the load for LMDE, which does prompt for password for LVN, then LMDE loads fine.
If Windows7 is selected, Windows Boot Manager wants an installation disk.  Don't want to do this as it'll probably change boot again.
That's good.
An attempt to reinstall grub using
>dpkg-reconfigure grub-pc
does not change the MBR 23: that comes up.
Well, not sure if it's included in the dpkg-reconfigure command but once you are in your system you just need to issue:
Code: [Select]
grub-install /dev/sda
If your hard disk is sda. About windows boot... I think you should have made sure that Windows boot fined after resizing their partitions. And just pray so that the ntfs 100 MB partition that you recycled wasn't the windows 7 boot partition. Yes, Windows 7 now has a boot partition!

I think you would have to find yourself on how to solve Windows boot when you delete Windows 7 boot partition.

Advice and Directions welcome, Thanks for reading. RM
Waiting your positive feedback on getting Grub2 into MBR and probably the negative one on the Windows side ;).

adrian15
If you have liked this piece of advice please consider donating to the Super Grub Disk project.