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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-05-2017, 07:34 AM
|
#1
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Rep: 
|
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
Last edited by Safeway44; 04-05-2017 at 07:38 AM.
|
|
|
04-05-2017, 10:08 AM
|
#2
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
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
sudo mkdir /mnt/boot/efi # Create a directory to mount the ESP in
sudo mount /dev/sda3 /mnt/boot/efi # Mount the ESP
sudo grub-install --root-directory=/mnt /dev/sda # Run the grub install
Basically you boot from the CD, mount your normal root partition, mount the efi system partition on the root partition's /boot/efi directory and then install grub there.
Last edited by hazel; 04-05-2017 at 11:57 AM.
|
|
1 members found this post helpful.
|
04-05-2017, 03:13 PM
|
#3
|
Member
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154
Rep: 
|
Quote:
Originally Posted by Safeway44
Kali iso is a recent download and it's meant to be UEFI friendly. Kali is loading fine. Thanks
|
What is Kali? Can you tell us more about what it is?
Once a new OS is installed, it is sometimes necessary to run from the terminal.
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'.
|
|
|
04-05-2017, 04:07 PM
|
#4
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,385
|
It's an operating system designed specifically and only for penetration testing/computer forensics and is basically meant for experts. Obviously, it can be used by people wishing to learn/study computer forensics and is absolutely not recommended as a standard Desktop distribution as explained at their site below.
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:
As this is a UEFI system is MBR even required? I
|
If you are using UEFI, you should not have any boot code in the MBR and mixing the two is going to lead to boot problems. If you can boot either by making a change in the BIOS, that's the best you can do if you can't get Kali to install uefi. I'd suggest taking a close look at the Kali documentation on installing UEFI.
|
|
|
04-05-2017, 04:27 PM
|
#5
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
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.  but that gpt thing well then....
|
|
|
04-05-2017, 04:52 PM
|
#6
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by BW-userx
sounds like you did a different boot method for each one ...
|
Agreed.
Quote:
, I'd suggest installing Linux by the same means windows boots ...
|
Also agreed. Several previous posts suggest solutions. ...
Quote:
... kiss is involved here, get their greatest hits album on apple cares today. ...
|
... smirk ... that's worth a Deuce ...
Cheers ...
Last edited by Rickkkk; 04-06-2017 at 10:15 PM.
|
|
|
04-06-2017, 07:50 PM
|
#7
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep: 
|
Quote:
Originally Posted by hazel
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.
|
Quote:
Originally Posted by hazel
Basically you boot from the CD,
|
Should I be in legacy or UEFI when I do this? The CD won't do anything when its in UEFI with the iso in it.
Quote:
Originally Posted by hazel
mount your normal root partition,
|
Am I in terminal when I do this? What screen should I be seeing on my screen to execute this? Do I use Gparted?
|
|
|
04-06-2017, 07:52 PM
|
#8
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep: 
|
Quote:
Originally Posted by yancek
If you are using UEFI, you should not have any boot code in the MBR and mixing the two is going to lead to boot problems.
|
I recall placing Grub in MBR when prompted during install, I should have said no. How do I remove it from MBR?
|
|
|
04-06-2017, 07:54 PM
|
#9
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
kiss is involved here, get their greatest hits album on apple cares today.
|
No thanks, I just want to Gpart all night and everyday 
|
|
|
04-06-2017, 10:17 PM
|
#10
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by Safeway44
No thanks, I just want to Gpart all night and everyday 
|
... I think we're hitting Rock Bottom ...
... OK I'll stop.
|
|
|
04-07-2017, 02:02 AM
|
#11
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
Quote:
Originally Posted by Safeway44
Should I be in legacy or UEFI when I do this? The CD won't do anything when its in UEFI with the iso in it.
|
At this stage, you'll have to boot the CD in bios mode. The point is to change that for the future.
Quote:
Am I in terminal when I do this?
|
Yes. These are console commands.
Quote:
What screen should I be seeing on my screen to execute this?
|
I have no idea. I've never used Kali. And if you know so little about Linux as to ask these questions, you should not be using Kali either. It's really not a good distro for learning.
Definitely not! gparted is a partitioning tool. There's probably nothing wrong with your partitioning scheme. You just need to install grub where the uefi expects to find bootloader code, i.e. in the efi system partition.
|
|
1 members found this post helpful.
|
04-15-2017, 07:22 AM
|
#12
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep: 
|
I started with root@(none)
Quote:
Originally Posted by hazel
sudo mount /dev/sda1 /mnt # Mount the root filesystem in /mnt
|
Quote:
Originally Posted by hazel
sudo mkdir /mnt/boot/efi # Create a directory to mount the ESP in
|
I typed it in and got: "already exists"
Quote:
Originally Posted by hazel
sudo mount /dev/sda3 /mnt/boot/efi # Mount the ESP
|
I typed it in and got:
"sudo: unable to resolve host(none): connection refused" Which connection is that?
Quote:
Originally Posted by hazel
sudo grub-install --root-directory=/mnt /dev/sda # Run the grub install
|
Do I need to be online (connected) to install? Can it be done through Grub prompt too?
Quote:
Originally Posted by hazel
Basically you boot from the CD, mount your normal root partition, mount the efi system partition on the root partition's /boot/efi directory and then install grub there.
|
|
|
|
04-15-2017, 07:54 AM
|
#13
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
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.
Last edited by hazel; 04-15-2017 at 08:01 AM.
|
|
|
04-16-2017, 01:58 AM
|
#14
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep: 
|
Quote:
Originally Posted by hazel
Are you logging in remotely? That "connection refused" thing usually occurs when people use ssh.
|
No I am not logging in remotely. Accessing a computer that's sitting on my desk in front of me.
Quote:
Originally Posted by hazel
The one that is down as an efi system partition is the one you need to mount.
|
I ran fdisk and was able to see a list of partitions and one labelled EFI.
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:
Originally Posted by hazel
You can check if the efi system partition actually has mounted by subsequently using the mount command without any arguments.
|
Is this what you mean by no arguments?:
sudo mount
|
|
|
04-16-2017, 02:47 AM
|
#15
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
Quote:
Originally Posted by Safeway44
No I am not logging in remotely. Accessing a computer that's sitting on my desk in front of me.
I ran fdisk and was able to see a list of partitions and one labelled EFI.
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
|
That should be "-l" for "list", not a 1
Quote:
Is this what you mean by no arguments?:
sudo mount
|
Exactly, except that you don't need sudo when you use mount this way. Listing mounted partitions is a job anyone is allowed to do. The term "arguments" always refers to strings that follow a command. They provide extra information for the program.
You know, someone who is so much a beginner as you are shouldn't be using Kali at all.
|
|
|
All times are GMT -5. The time now is 12:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|