Debian :: Recovering Grub After Windows Installation - Encrypted Partitions And LVM
Nov 4, 2010
I'm running Debian Squeeze AMD64 with full disk encryption and LVM. After reinstalling Windows 7 I lost GRUB from the MBR. I managed to install GRUB after following this guide and using an Ubuntu 10.04 graphical installation disc, but I only get to a GRUB CLI when booting, so I can't actually choose an OS there.
I tried following this guide but I'm stuck after "# Mount the partitions to /mnt/root" and don't know what to do.
Does anyone know how I can fix GRUB so I get to choose between Debian and Windows 7 there?
View 6 Replies
ADVERTISEMENT
Apr 25, 2010
I purchased a larger hard drive to upgrade my HTPC running MythTV and a Samba file server. I put the old hard drive into an e-SATA enclosure and can still boot to it to access my files, but I can't seem to mount it correctly under the new installation to copy over my files even though I have the mount passphrase and encrypted filenames key.I have tried using this howto, but I run into problems with the encrypted filenames.This is how I'm doing it. I replaced the actual key data with A's and B's to protect my keys:
Code:
$ sudo -i
# ecryptfs-add-passphrase --fnek
[code].....
View 2 Replies
View Related
Oct 12, 2014
I have a dual boot machine (Windows 7 and Debian). W7 and debian are on the same HD but on different partitions. The debian partition is an LVM encrypted one.
The W7 needs reinstalling, and as I understand the process will overwrite the debian bootloader (grub).
Question: Is there a way to save the current bootloader and recover it after I've reinstalled W7, so I wont have to reinstall debian from scratch?.
I plan to re-install W7 on the same partition it is now, without overwriting the debian partition.
View 9 Replies
View Related
Oct 16, 2015
My laptop setup is:
sda1: W7
sda2: FAT16
sda3: /boot
sda4: encrypted LVM with debian (everything besides /boot)
now I've re-installed W7 so grub was overwritten. I've tried the procedure which worked for me previously:booting with the netinst usb in rescue mode, choosing a root partition to mount, using grub-install to reinstall the grub:
Code: Select allmount /dev/sda3 /boot
grub-install /dev/sda
Now I'm on Jessie (stable), and this time this fails, and I am able to mount only sda3.grub-install doesn't exit so I'm assuming it has been replaced by `grub-installer'. also '/boot' doesnt exist so I created it manually.
Code: Select allmount /dev/sda3 /boot
grub-installer /dev/sda
The latter fails with
Code: Select all/dev/sda/proc not a directory
View 6 Replies
View Related
May 29, 2011
I have installed debian 6 on two of my laptops. During installation I chose to encrypt my partitions (swap, root and home). Now I find it annoying that during boot up I'm asked for password, for each of these partions seperately. I have given same password for all three of them. How can I make the system ask for the password only once. I know it can be done because on fedora it was like that before.
View 5 Replies
View Related
Apr 8, 2010
I have been using fedora 12 for last 6 months, recently I bought an external USB hard drive of 320 GB capacity. I made 2 partitions using the Disk Utility in Fedora. I encrypted the first partition as it was supposed to hold a lot of sensitive data, and yes it did have. Now I had to change my OS to AV linux for some audio-video editing work which wasnt being done properly on fedora due to some issue beyond my knowledge. now the problem is my encrypted partition is not accessible in my new installation. I see an empty space on my /dev/sda1. although no change to partition data has been done and the data on the second partition /dev/sda2 is easily accessible. when putting the drive on automount, is does not ask me for the password and neither does it show me the data. I have tried fdisk and sme other utilities but have failed to get my drive unencrypted.
View 7 Replies
View Related
Dec 28, 2015
I have Windows 10 and Deb 8 dual boot, and I need to re-install Windows but want to avoid (or at least plan for) losing Grub/Linux boot.
Last time I re-installed Windows after Linux I ended up having to re-install Linux again afterwards as well, because I couldn't recover it (seemingly due to complications from encryption). So this time I'm wanting to plan and avoid that.
CURRENT DISK PARTITIONS:
Code: Select allsda1Â |Â 550MÂ Â |Â EFI System
sda2Â |Â 128MÂ Â |Â Microsoft reserved
sda3Â |Â 175.8G |Â Microsoft basic data
sda4Â |Â 286MÂ Â |Â Linux filesystem (Boot)
sda5Â |Â 28.2GÂ |Â Linux filesystem (Root)
sda6Â |Â 91.3GÂ |Â Linux filesystem (Home)
sda7Â |Â 1.9GÂ Â |Â Linux swap
[Code] ....
As there is a "Microsoft Reserved" partition and a separate Microsoft directory within the EFI partition, if I just go ahead and reinstall Windows will it install it's boot loader/image to one of it's own partitions? And NOT affect anything else like Grub and other Linux things?
Logic tells me yes, but there seems to be many issues on the internet about installing Windows after Linux.
My primary concern is whatever happens with Windows or anything to do with dual loading etc, is that Linux will still just boot, or I can get it working again without much hassle.
Why is there a reserved Microsoft partition AND a Microsoft directory in the EFI partition? Which one boots Windows?
Why is there a separate Linux Boot partition AND a Linux directory in the EFI partition? Which one boots Linux? Where is Grub invoked from, is one redundant, etc?
How these work. It is possible I've set them up wrong, or with redundant partitions, but both systems have been booting ok for months.
View 3 Replies
View Related
Jul 19, 2010
Let's begin from the top. I have a relatively new laptop that I've been running Ubuntu on (along with a little-used Windows boot). Picked it up in November or so, installed the current "latest" version of Ubuntu at the time (9.10). I have been doing incremental upgrades, and it's been progressively breaking down more and more. Yes, this includes 10.04.
After GRUB stopped working, I decided it was time to try a reinstall from the top. I told it to leave all the other operating systems alone and do a full reinstall.
Fortunately, I had managed to stuff most of my current work in duplicate locations during this whole debacle, somehow. Don't ask me how I managed to do that when GRUB wasn't working. However, when I installed, I conscientiously said "Oh, yes, Ubuntu, encrypt my home folder! I love privacy!" As a result, about... 30 gigabytes of useful (but ultimately re-downloadable) material is rather inaccessible at the moment. When I try to boot the old system using the newly fixed GRUB, it goes into kernel panic. This seems like a no-go.
I have a saved hojillion-character long passphrase for decryption from my install back in November. Conscientiously saved in the case of just such an emergency.
I read this how-to and followed it to the letter as far as I could tell, trying to mount with ecrytfs to recover my data.
[USERNAME] here is a proxy for my actual username. Yes, the location of my old home folder may seem a little bizarre.
Code:
sudo mount -t ecryptfs /media/c82ca9fe-2b15-4aca-a98d-6482b1d80a32/home/[USERNAME]/ /home/[USERNAME]/oldhome
Passphrase:
Select cipher:
1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
[Code].....
View 9 Replies
View Related
Jul 20, 2011
I recently suffered a hard disk failure, meaning I had to replace the faulty device. After attempting to mount the old faulty hard drive using and external caddy, I got the following message... Unable to mount 144 GB Filesystem Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
I'd like to attempt to recover what I can from my /home directory but unfortunately I use encryption (although I do actually know my pass phrase). What procedures and software can I use to try and recover data from this drive?
View 5 Replies
View Related
Mar 4, 2010
I have installed fedora 11 in my system. While installing it asked me encrypted password which i passed. But I forgot that. Now the problem is whenever i boot my system before going to root itself it is asking for volume encrypted password, which as i told you i have forgot. Now i am not able to access my hard disk since it is completely locked. Is there any way to decrypt the password or unlock it. Or if that is not possible can data be recovered,which is my primary requirement..
View 6 Replies
View Related
Mar 4, 2010
I have installed fedora 11 in my system. While installing it asked me encrypted password which i passed. But I forgot that. Now the problem is whenever i boot my system before going to root itself it is asking for volume encrypted password, which as i told you i have forgot. Now i am not able to access my hard disk since it is completely locked. Is there any way to decrypt the password or unlock it. Or if that is not possible can data be recovered,which is my primary requirement..
View 1 Replies
View Related
Mar 7, 2010
I installed windows 7 and recover grub from the karmic livecd successfully. Now I can access all the OS in my machine. The only weird issue that I have is that there's no login promote in tty1-6 any more. When I switch to tty1-6, I can only see a flashing underline promote. But I can input anything in tty1-6. How to get tty1-6 back?
View 4 Replies
View Related
Feb 9, 2011
I am installing Ubuntu on the same hard drive as Windows 7. The partitions of Windows 7 have already occupied the left part of the hard drive. From left to right, the Windows partitions are one partition for Windows booting, one for Windows OS and software installation, and one for data which is planned to mount on Ubuntu. I was wondering how to arrange the order of partitions of root, home and swap, i.e. which is on the left just besides one Windows partition, which is in the middle and which is on the far right?
View 1 Replies
View Related
Feb 25, 2010
I have recently recovered from an HDD failure on my Drobo. One of the disks died and corrupted the entire array (which is not supposed to happen). I have since managed to copy the data off onto smaller disks and after replacing the failed drive, have copied everything back.
Now that im up and running again, i was wondering how this situation would play out on encrypted disks, or in the case of a drobo a large encrypted partition (as you cannot encrypt the entire array).
Would i still be able to recover the data if i were to encrypt it? It is a 4.2TB array, and i assume that I would need to copy the data in its entirety to recover it, so using multiple smaller disks would be out of the question right?
View 5 Replies
View Related
Apr 6, 2011
I was trying to fix some hardware on my laptop and i ended up mucking the whole thing up. The HDD seems to fine though. I have it in a external HDD enclosure and it's plugged into my mothers desktop through usb.I'm trying to print some files I have, but my home directory on the external HDD is encrypted.
View 3 Replies
View Related
Apr 17, 2010
I just got an Acer netbook Aspire One. I put the Ubuntu remix on it successfully, and was using it for several days without problems. Now all of a sudden when I turn on my computer I get a grub error message with a command prompt. I've tried following the direction to restore grub but I'm getting stuck right away on the command to mount my ubuntu partition. After I type "sudo mount /dev/sda4 /mnt", I keep getting the error message "mount: you must specify the filesystem type."
View 3 Replies
View Related
May 20, 2011
Trying to follow [URL]
View 9 Replies
View Related
Jun 3, 2015
I have a problem with my debian install. I 've got a laptop with 3 OS:
First I installed windows.
Then I installed ubuntu 15.04 in an encrypted partition, and another partition with /boot (/dev/sda6) created when I installed Ubuntu.
And, finally I installed Debian 8 in an encrypted LVM (/dev/sda8) with 3 partitions (/, /home and swap), and a /boot (/dev/sda7) partition created when I installed Debian.
Needless to say that both /boot partitions are not encrypted
Previously I had a similar configuration with ubuntu 14.04 and Debian wheezy.
The problem is that I can't start the system by using the Debian grub (/dev/sda7). So Ihave to boot the system using Ubuntu's grub (/dev/sa6). The second part of the problem is that when I boot Debian using /dev/sda6 (ubuntu's grub) , plymouth does not work.
I tried purging grub and reinstalling it again with the ubuntu partition mounted, and it did not work.
I did not have this problem with my previous configuration (with wheezy and xubuntu 14.04) ...
View 8 Replies
View Related
May 26, 2011
I recently accidentally corrupted my windows vista partition whilst trying to extend it via gparted under ubuntu 11.04 and then cancelling it shortly after starting. Resulting in me being unable to boot into vista (I don't have another copy of any windows OS so I'd really like not to have trashed this one )
Looking on gparted now my partition is Fat32(?) and apparently only has 36mb used =/
View 7 Replies
View Related
Jun 18, 2011
A friend of mine had inportant files on his windows 7 PC. the pc took a virus, he took it with some "experts" wich happily DELTED the partition and reinstalled W7, and apps, WITHOUT backing up his files.
Ibe faced similar cases before, and on windows ibe used Recuva with mixed resutls, but. Is there an application in linux i can install on my opensuse 11.4 box to do the same task? Can you guys recommend good linux software (available for suse) that will do this? I read about "TestDisk", but ibe never used it.
View 9 Replies
View Related
Apr 30, 2011
My partitions are set up as follows:
[code]...
I installed Ubuntu successfully using rescue mode on the alternate cd, and let Ubuntu use an internal boot and home. At the final stage grub refused to install to the MBR, and then refused to install to my /boot partition on /dev/sda2. It said: No boot loader has been installed, either because you chose not to or because your specific architecture doesn't support a boot loader yet. You will need to boot manually with the /vmlinuz kernel on partition /dev/mapper/volumegroup-natty and root=/dev/mapper/volumegroup-natty passed as a kernel argument. Returning to debian, I did a update-grub, which detects Windows and Ubuntu:
[code]...
How do I make grub decrypt the LUKS partition before attempting to load the Ubuntu kernel?
View 3 Replies
View Related
May 30, 2009
i want to boot windows from grub loader and delete linux .Is this possible?or can i keep only /boot partition so that windows boot from grub prompt i want to boot windows from grub loader and dont want any linux partitions on my machine.Is this possible?or can i keep only /boot partition so that windows boot from grub prompt and delete rest of the linux so that i can get all free space.it is not possible for my system to get windows boot loader hence i want only grub boot loader to load only windows.
View 1 Replies
View Related
Nov 8, 2010
I had windows 7 and i installed ubuntu both on primary partitions. They were running normally and the dual boot was working well. After that I installed debian on a third different logical partition of my disk and then only debian was running and windows and ubuntu didn't. Ubuntu does not seem even when the computer starts! Then i reinstalled ubuntu over the debian so i can run only ubuntu. I cannot see windows 7 at all when grub starts
command sudo fdisk -l gives me:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
[Code]....
Partition table entries are not in disk order
Why i have two * in boot column? I have tried some methods i found on the internet but didn't work.
View 7 Replies
View Related
Sep 14, 2014
I installed Windows Xp 64bit(in a partition called d:) with dual boot with Debian Wheezy. Installed first Windows Xp and after Debian Wheezy, but grub is not seeing Windows!
Look at my "fdisk -l".
root@robgeek:/home/rob# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe274e274
[Code] ....
View 2 Replies
View Related
Sep 4, 2015
i have installed debian but during installation my installed windows 10 was not found by the grubloader. i have installed windows 10 on my ssd and the debian on my hdd. nevertheless i installed the grub loader on the master boot record, because it said i could still configure it so it can boot both the windows and the debian.The debian installation is running fine. But i now want to boot the windows too. The problem is i have never worked with the grub loader yet and i am little scared that i will do something wrong.How can i get grub to load my windows ?
View 9 Replies
View Related
Mar 6, 2010
During a repair windows did overwrite my grub MBR for it's own bootloader. Now how do I get back to my encrypted ubuntu?
View 5 Replies
View Related
May 2, 2011
I've installed Debian on another partition aside with Windows XP: and when I restart the machine it only list the Debian instalation.
When I do fdisk-l, I see this
/dev/sda1 1 12749 102406311 7 HPFS/NTFS
/dev/sda2 12750 38914 210164507 f W95 Ext'd (LBA)
[code]....
View 8 Replies
View Related
Jul 29, 2015
My computer's recent history in chronological order:
1. debian jessie is installed using netinstall iso to sda.
2. windows 8.1 is installed to sdc.
Now "lsblk" returns:
Code: Select allNAMEÂ Â Â Â Â Â Â Â Â MAJ:MIN RMÂ Â SIZE RO TYPEÂ MOUNTPOINT
sda           8:0  0 111.8G 0 diskÂ
├─sda1         8:1  0  512M 0 part /boot/efi
├─sda2         8:2  0  244M 0 part /boot
└─sda3         8:3  0 111.1G 0 partÂ
 └─sda3_crypt    254:0  0 111.1G 0 crypt
 Â
[code]....
Result: My computer boots directly to Windows 8.1. If I press F7 during first seconds of boot and choose "debian" as the boot device (via blue bios screen, not grub), debian boots.
My purpose:
1. To use debian grub screen to choose between debian and Windows. (To avoid pressing F7 during boot to use debian)
2. Set debian as default OS in grub and boot to debian unless I choose otherwise in for example 10 seconds.
I guess that I should update grub to fix this but I don't want to take risk.
View 12 Replies
View Related
Feb 3, 2016
I've been using Debian for a few years but always on dedicated boxes and/or VMs.
Finally decided to dual boot Debian and Windows on my main Desktop PC.
Installed as I normally would using, however this time using a seperate drive (one for the existing Windows 10 install and the other for Debian), Debian install detects that windows has an EFI partition and sticks an entry in there, which is fair enough, and everything working fine. Then I spent some time configuring all my software and set it all up just the way I like it. I've rebooted Debian a few times to check it's working correctly and it is.
The issue arrives when I reboot and load into Windows 10. It boots fine.
However after a further reboot GRUB no longer loads... and the machine just boots directly into Windows 10.
After doing some further digging into my EFI partition (and reinstalling various times) it would appear that after a reboot Windows 10 deletes the entry GRUB creates in my EFI partition after EVERY reboot.
Done some googling and most people advise turning off 'fast boot' in Windows as it locks certain partitions to facilitate the machine going into hibernation, only to find that it's always been turned off on my machine (I recall due to a driver issue with my graphics card this had to be turned off when I installed Windows 10).
I've found this article on the Ubuntu forums : [URL] .... however I've tried their steps and windows is still doing a hostile takeover of my EFI partion after a reboot!
Any way to stop Windows 10 from interfering with my EFI files after a reboot? (without doing the obvious thing and kill Windows off).
View 4 Replies
View Related
May 1, 2011
I have 10.10 installed within my Windows Xp.All was fine.Then,I upgraded to 11.04.Boot screen etc is fine .Log in is automatic in Classic.Unity & Compiz not supported.Now,again everything is fine except that my xp partitions are not recognised and hence I can not mount them and access them.
View 5 Replies
View Related