Windows not loading after grub install
From the Grub menu Windows 8 does not load after I select it I get an error
File:\Boot\BCD Status: 0xc000000e When I change the BIOS to UEFI from legacy Windows works but then Kali is not accessible.I had to install Kali under Legacy because under UEFI the CD didn't do its thing, other than the computer brand's logo on the screen glaring. During install Grub was placed in MBR. As this is a UEFI system is MBR even required? I don't have a spare USB lying around so if the solution can be utilizing the CD that work be ideal.CD is tested and working. Kali iso is a recent download and it's meant to be UEFI friendly. Kali is loading fine. Thanks |
As far as I know, modern versions of Windows will not boot from a GPT disk with a bios. You have to use uefi. And, as you probably know, it is dangerous to keep switching modes because sooner or later you are going to use the wrong one. However, it is possible to convert a bios install to uefi. Basically you have to reinstall grub in uefi mode so that it goes onto your efi system partition. You can do that, using your installation disc.
Here's something I found on a Ubuntu site: Code:
sudo mount /dev/sda1 /mnt # Mount the root filesystem in /mnt |
Quote:
Once a new OS is installed, it is sometimes necessary to run Code:
update-grub So boot your linux distro, run 'update grub' and see if this makes a difference. Making changes on BIOS to UEFI is not related to your problem. All linux distros should now be 'UEFI-friendly'. |
Quote:
http://docs.kali.org/introduction/sh...use-kali-linux Mixing MBR and UEFI as mentioned above is the problem and the simplest solution to the problem the OP has would be to install Kali on a flash drive and select that drive on boot when he wants to try to learn penetration testing. Quote:
|
sounds like you did a different boot method for each one, I'd suggest installing Linux by the same means windows boots. kiss is involved here, get their greatest hits album on apple cares today. :D but that gpt thing well then....
|
Quote:
Quote:
Quote:
Cheers ... |
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
... OK I'll stop. |
Quote:
Quote:
Quote:
Quote:
|
I started with root@(none)
Quote:
Quote:
Quote:
"sudo: unable to resolve host(none): connection refused" Which connection is that? Quote:
Quote:
|
Are you logging in remotely? That "connection refused" thing usually occurs when people use ssh.
Make sure you are using the right device name for the partition. It probably isn't sda3 on your system. That extract I gave you was just an example. Running fdisk -l will give you a list of the partitions on your own hard drive together with their types. The one that is down as an efi system partition is the one you need to mount. You can check if the efi system partition actually has mounted by subsequently using the mount command without any arguments. |
Quote:
Quote:
However when I tried fdisk l on a virtualbox version of Kali I didn't, instead I got: Welcome to fdisk (util-linux 2.29.1) Changes will remain in memory only, until you decide to write them to disk. Be careful before using the write command. fdisk: cannot open 1: no such file or directory Quote:
sudo mount |
Quote:
Quote:
You know, someone who is so much a beginner as you are shouldn't be using Kali at all. |
Quote:
I got sudo: unable to resolve host(none): Connection Refused Quote:
Quote:
sudo: unable to resolve host(none): Connection refused btw sda3 is what partition? Home, boot...? Quote:
Quote:
Quote:
|
Please read post 13 again. I pointed out there that this is only an example and that you must use the correct partition device names for your system, not the ones used in the example. You need to find out those names and that is what you are going to use fdisk for.
Run fdisk -l and write down the correct partition numbers for the root partition and the efi system partition. The device names will be /dev/sdan where n is the partition number. So if the efi system partition is 1 and your root partition is 2, the device /dev/sda2 must be mounted somewhere on your rescue system (say on /mnt) and /dev/sda1 would then go on /mnt/boot/efi. Again, these are examples only. You should be able to understand this. |
If you are using the Kali DVD to run these commands, stop using sudo. By default when you log in to Kali you already are root. That is the default by design because of it's purpose. To give us a better idea of what you have, when you fun the: fdisk -l (Lower Case Letter L) how about posting the actual output here?
From your earlier posts, the problems you are having are because you have a windows UEFI install with a Legacy/CSM install of Kali. If for some reason, you don't or can't install Kali UEFI, the best you can hope for is to be able to switch to CSM/Legacy in the BIOS to boot Kali and to UEFI to boot windows. You asked earlier about deleting Grub from the MBR. The page below explains that. Make sure you scroll down the page to the section: Option #2: Command to delete mbr only so you don't delete your partition table. You should be able to boot windows without making this change by setting the BIOS to boot UEFI. You'll need to have someone more familiar with UEFI confirm this. https://www.cyberciti.biz/faq/linux-...rd-dd-command/ If you get this straightened out and still want to learn computer forensics, I would suggest you install Kali to a flash drive. Detailed instructions on there site and should eliminate a lot of these problems. |
It is possible to convert a legacy mbr system to boot with uefi instead. I remember reading a HOWTO on doing this immediately after installation by remounting the hard drive on the installation image, mounting the efi system partition on it, and then installing GRUB in its proper location on the esp. Unfortunately I haven't been able to find that item again.
The existing GRUB stub in the mbr can be left in place. It doesn't do any harm because a UEFI running in native mode ignores the mbr. I've read a lot of warnings against mixing UEFI native and legacy booting on a permanent basis. Sooner or later you're going to use the wrong method with bad results. |
Quote:
Quote:
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
Quote:
|
Quote:
|
If you have a boot partition, start by mounting it on the empty /boot directory of your root partition. Then create /boot/efi in it. Then mount the esp on /boot/efi.
|
Quote:
Quote:
Quote:
|
Quote:
Quote:
|
Quote:
|
Quote:
Your saying Grub is that 446 bytes of MBR? If Grub occupies that 446 bytes of the primary portion in MBR then what was occupying that 446 bytes of space prior to Grub's arrival? Quote:
|
No, you mount the efi partition on /boot/efi as I have described, and then use the ordinary Linux file management tools to find out what is in that directory. The whole point of uefi booting is that all boot code is in normal files that can be inspected from out of any operating system, and not in special "magical spaces" like the mbr.
You need some very basic education. Try reading this. |
Quote:
|
Quote:
|
Quote:
If I'm in root and I did type sudo does it effect what I'm coding? How do I reboot or save and exit when I want to wrap things up from within command line? using live cd or through accessing command line through GRUB? I tried: reboot, shutdown and number of other things. |
Quote:
Wether or not #sudo command does something different or not I do not know it is just over kill - root user does not need sudo command. Quote:
nano has its own save commands. VI has its own save commands cat has its own save commands etc... depending on what level you went to and how you got there. If everything is saved properly 'exit' will boot you out of it, three finger salute may work, hard shut down defiantly works. just got a keep in mind posable consequences from that one. anyone else? |
Quote:
Quote:
Quote:
|
Quote:
Quote:
Since you indicate you can boot windows UEFI and you are having all this difficulty getting Kali to work, you might be better off installing Kali on a flash drive. Their site has very detailed instructions on doing that and you could then format the old Kali partitions to be used for data. |
All times are GMT -5. The time now is 11:14 PM. |